PHP 클래스 AwsInspector\Ssh\Connection

저자: Fabrizio Branca
파일 보기 프로젝트 열기: aoepeople/stackformation 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$host string
$jumpHost AwsInspector\Model\Ec2\Instance
$multiplex boolean
$multiplexedConnections array
$privateKey PrivateKey
$username string

공개 메소드들

메소드 설명
__construct ( $username, $host, PrivateKey $privateKey = null, Instance $jumpHost = null, boolean $multiplex = false ) Connection constructor.
__toString ( )
closeMuxConnections ( ) Close all multiplexed connections
connect ( ) Interactive connection
exec ( string $command, string $asUser = null ) : array Execute command on this connection
getHost ( ) : string
getJumpHost ( ) : Instance
getPrivateKey ( ) : PrivateKey
getUsername ( ) : string
isMultiplex ( ) : boolean
tunnel ( $configuration ) Interactive connection

메소드 상세

__construct() 공개 메소드

Connection constructor.
public __construct ( $username, $host, PrivateKey $privateKey = null, Instance $jumpHost = null, boolean $multiplex = false )
$username
$host
$privateKey PrivateKey
$jumpHost AwsInspector\Model\Ec2\Instance
$multiplex boolean

__toString() 공개 메소드

public __toString ( )

closeMuxConnections() 공개 정적인 메소드

Close all multiplexed connections
public static closeMuxConnections ( )

connect() 공개 메소드

Interactive connection
public connect ( )

exec() 공개 메소드

Execute command on this connection
public exec ( string $command, string $asUser = null ) : array
$command string
$asUser string
리턴 array

getHost() 공개 메소드

public getHost ( ) : string
리턴 string

getJumpHost() 공개 메소드

public getJumpHost ( ) : Instance
리턴 AwsInspector\Model\Ec2\Instance

getPrivateKey() 공개 메소드

public getPrivateKey ( ) : PrivateKey
리턴 PrivateKey

getUsername() 공개 메소드

public getUsername ( ) : string
리턴 string

isMultiplex() 공개 메소드

public isMultiplex ( ) : boolean
리턴 boolean

tunnel() 공개 메소드

Interactive connection
public tunnel ( $configuration )

프로퍼티 상세

$host 보호되어 있는 프로퍼티

protected string $host
리턴 string

$jumpHost 보호되어 있는 프로퍼티

protected Instance,AwsInspector\Model\Ec2 $jumpHost
리턴 AwsInspector\Model\Ec2\Instance

$multiplex 보호되어 있는 프로퍼티

protected bool $multiplex
리턴 boolean

$multiplexedConnections 보호되어 있는 정적으로 프로퍼티

protected static array $multiplexedConnections
리턴 array

$privateKey 보호되어 있는 프로퍼티

protected PrivateKey,AwsInspector\Ssh $privateKey
리턴 PrivateKey

$username 보호되어 있는 프로퍼티

protected string $username
리턴 string