Свойство | Тип | Описание | |
---|---|---|---|
$cloudKeyName | string | Name of Ssh Key in cloud | |
$cloudLocation | string | Cloud Location | |
$envId | integer | The identifier of the client's environment | |
$farmId | integer | The identifier of the farm | |
$id | integer | The identifier of Ssh Key | |
$platform | string | Platform | |
$privateKey | string | Private Key | |
$publicKey | string | Public Key | |
$type | string | Type of Ssh key |
Метод | Описание | |
---|---|---|
generateKeypair ( ) : array | Generate private and public key | |
generatePublicKey ( ) : string | Generate public key | |
getEnvironmentPlatforms ( $envId ) : array | Get list of platforms where ssh keys are available on environment | |
getPuttyPrivateKey ( ) : string | Convert private key to putty format | |
hasAccessPermissions ( $user, $environment = null, $modify = null ) | ||
isUsed ( ) : boolean | Check if key is used by any farm role | |
loadGlobalByFarmId ( integer $envId, string $platform, string $cloudLocation, integer $farmId = null ) : |
Find global key by FarmID | |
loadGlobalByName ( integer $envId, string $platform, string $cloudLocation, string $name ) : |
Find global key by Name |
Метод | Описание | |
---|---|---|
getSshKeygenValue ( array $args, string $tmpFileContents, boolean $readTmpFile = false ) : string | External call to ssh-keygen utility |
public generateKeypair ( ) : array | ||
Результат | array |
public generatePublicKey ( ) : string | ||
Результат | string |
public getEnvironmentPlatforms ( $envId ) : array | ||
$envId | ||
Результат | array |
public getPuttyPrivateKey ( ) : string | ||
Результат | string |
public hasAccessPermissions ( $user, $environment = null, $modify = null ) |
public string $cloudKeyName | ||
Результат | string |
public int $envId | ||
Результат | integer |