PHP Class AwsInspector\Model\Ec2\Instance

Inheritance: extends AwsInspector\Model\AbstractResource
Afficher le fichier Open project: AOEpeople/StackFormation Class Usage Examples

Protected Properties

Свойство Type Description
$multiplexSshConnection
$username

Méthodes publiques

Méthode Description
canConnectTo ( $hostname, $port, $timeout = 1 )
directoryExists ( $file, $asUser = null )
exec ( $command, $asUser = null )
fileExists ( $file, $asUser = null )
getConnectionIp ( )
getDefaultUsername ( )
getEbsVolumes ( ) : Collection
getFileContent ( $file, $asUser = null )
getHttpStatusCode ( $url )
getJumpHost ( ) : Instance | null Get jump host (bastion server)
getPrivateKey ( )
getSshConnection ( $multiplex = null ) : Connection Get SSH connection
linkExists ( $file, $asUser = null )
terminate ( )

Méthodes protégées

Méthode Description
getInspectorConfiguration ( $type )

Method Details

canConnectTo() public méthode

public canConnectTo ( $hostname, $port, $timeout = 1 )

directoryExists() public méthode

public directoryExists ( $file, $asUser = null )

exec() public méthode

public exec ( $command, $asUser = null )

fileExists() public méthode

public fileExists ( $file, $asUser = null )

getConnectionIp() public méthode

public getConnectionIp ( )

getDefaultUsername() public méthode

public getDefaultUsername ( )

getEbsVolumes() public méthode

public getEbsVolumes ( ) : Collection
Résultat AwsInspector\Model\Collection

getFileContent() public méthode

public getFileContent ( $file, $asUser = null )

getHttpStatusCode() public méthode

public getHttpStatusCode ( $url )

getInspectorConfiguration() protected méthode

protected getInspectorConfiguration ( $type )

getJumpHost() public méthode

Overwrite this method in your inheriting class and return a \AwsInspector\Model\Ec2\Instance representing your bastion server
public getJumpHost ( ) : Instance | null
Résultat Instance | null

getPrivateKey() public méthode

public getPrivateKey ( )

getSshConnection() public méthode

Get SSH connection
public getSshConnection ( $multiplex = null ) : Connection
Résultat AwsInspector\Ssh\Connection

linkExists() public méthode

public linkExists ( $file, $asUser = null )

terminate() public méthode

public terminate ( )

Property Details

$multiplexSshConnection protected_oe property

protected $multiplexSshConnection

$username protected_oe property

protected $username