package
3.2.4
Repository: https://github.com/ystia/yorc.git
Documentation: pkg.go.dev

# Functions

GetDefaultKey returns Yorc's default private Key.
GetKeysFromCredentialsAttribute returns a map of PrivateKey by analysing a given credentials attribute of a given capability.
GetKeysFromCredentialsDataType returns a map of PrivateKey contained in a Credential datatype.
GetPrivateKey returns a parsed PrivateKey The argument is : - either a path to the private key file, - or the content or this private key file.
NewSSHAgent allows to return a new SSH Agent.
ReadPrivateKey returns an authentication method relying on private/public key pairs The argument is : - either a path to the private key file, - or the content or this private key file.
ReadSSHPrivateKey returns an authentication method relying on private/public key pairs.
SelectPrivateKeyOnName select a PrivateKey when several keys are available.
ToPrivateKeyContent allows to convert private key content or file to byte array.

# Constants

DefaultSSHPrivateKeyFilePath is the default SSH private Key file path used to connect to provisioned resources.

# Structs

PrivateKey represent a parsed ssh Private Key.
SSHAgent is an SSH agent.
SSHClient is a client SSH.
SSHSessionWrapper is a wrapper with a piped SSH session.

# Interfaces

Client is interface allowing running command.