PHP Class AwsInspector\Model\Ec2\Instance

Inheritance: extends AwsInspector\Model\AbstractResource
Datei anzeigen Open project: AOEpeople/StackFormation Class Usage Examples

Protected Properties

Property Type Description
$multiplexSshConnection
$username

Public Methods

Method 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 ( )

Protected Methods

Method Description
getInspectorConfiguration ( $type )

Method Details

canConnectTo() public method

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

directoryExists() public method

public directoryExists ( $file, $asUser = null )

exec() public method

public exec ( $command, $asUser = null )

fileExists() public method

public fileExists ( $file, $asUser = null )

getConnectionIp() public method

public getConnectionIp ( )

getDefaultUsername() public method

public getDefaultUsername ( )

getEbsVolumes() public method

public getEbsVolumes ( ) : Collection
return AwsInspector\Model\Collection

getFileContent() public method

public getFileContent ( $file, $asUser = null )

getHttpStatusCode() public method

public getHttpStatusCode ( $url )

getInspectorConfiguration() protected method

protected getInspectorConfiguration ( $type )

getJumpHost() public method

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

getPrivateKey() public method

public getPrivateKey ( )

getSshConnection() public method

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

linkExists() public method

public linkExists ( $file, $asUser = null )

terminate() public method

public terminate ( )

Property Details

$multiplexSshConnection protected_oe property

protected $multiplexSshConnection

$username protected_oe property

protected $username