PHP 클래스 Scalr\Model\Entity\SshKey

부터: 5.5 (30.04.2015)
저자: Igor Vodiasov ([email protected])
상속: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\AccessPermissionsInterface
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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 ) : SshKey | null Find global key by FarmID
loadGlobalByName ( integer $envId, string $platform, string $cloudLocation, string $name ) : SshKey | null Find global key by Name

비공개 메소드들

메소드 설명
getSshKeygenValue ( array $args, string $tmpFileContents, boolean $readTmpFile = false ) : string External call to ssh-keygen utility

메소드 상세

generateKeypair() 공개 메소드

Generate private and public key
public generateKeypair ( ) : array
리턴 array

generatePublicKey() 공개 메소드

Generate public key
public generatePublicKey ( ) : string
리턴 string

getEnvironmentPlatforms() 공개 메소드

Get list of platforms where ssh keys are available on environment
public getEnvironmentPlatforms ( $envId ) : array
$envId
리턴 array

getPuttyPrivateKey() 공개 메소드

Convert private key to putty format
public getPuttyPrivateKey ( ) : string
리턴 string

hasAccessPermissions() 공개 메소드

또한 보기: Scalr\DataType\AccessPermissionsInterface::hasAccessPermissions()
public hasAccessPermissions ( $user, $environment = null, $modify = null )

isUsed() 공개 메소드

Check if key is used by any farm role
public isUsed ( ) : boolean
리턴 boolean

loadGlobalByFarmId() 공개 메소드

Find global key by FarmID
public loadGlobalByFarmId ( integer $envId, string $platform, string $cloudLocation, integer $farmId = null ) : SshKey | null
$envId integer
$platform string
$cloudLocation string
$farmId integer optional
리턴 SshKey | null

loadGlobalByName() 공개 메소드

Find global key by Name
public loadGlobalByName ( integer $envId, string $platform, string $cloudLocation, string $name ) : SshKey | null
$envId integer
$platform string
$cloudLocation string
$name string
리턴 SshKey | null

프로퍼티 상세

$cloudKeyName 공개적으로 프로퍼티

Name of Ssh Key in cloud
public string $cloudKeyName
리턴 string

$cloudLocation 공개적으로 프로퍼티

Cloud Location
public string $cloudLocation
리턴 string

$envId 공개적으로 프로퍼티

The identifier of the client's environment
public int $envId
리턴 integer

$farmId 공개적으로 프로퍼티

The identifier of the farm
public int $farmId
리턴 integer

$id 공개적으로 프로퍼티

The identifier of Ssh Key
public int $id
리턴 integer

$platform 공개적으로 프로퍼티

Platform
public string $platform
리턴 string

$privateKey 공개적으로 프로퍼티

Private Key
public string $privateKey
리턴 string

$publicKey 공개적으로 프로퍼티

Public Key
public string $publicKey
리턴 string

$type 공개적으로 프로퍼티

Type of Ssh key
public string $type
리턴 string