Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewSshClient ¶
func NewSshClient() *Client
func NewSshClientKey ¶
func NewSshClientKey(username string, rsaKeyPair RsaKeyPair, host string) *Client
type CryptoBytes ¶
type CryptoBytes []byte
func (CryptoBytes) MarshalYAML ¶
func (c CryptoBytes) MarshalYAML() (interface{}, error)
func (*CryptoBytes) UnmarshalYAML ¶
func (c *CryptoBytes) UnmarshalYAML(unmarshal func(interface{}) error) error
type ExecutionError ¶
func (*ExecutionError) ToError ¶
func (e *ExecutionError) ToError() error
type ExecutionResult ¶
type ExecutionResult struct { Output string // contains filtered or unexported fields }
func (*ExecutionResult) Code ¶
func (r *ExecutionResult) Code() int
func (*ExecutionResult) Error ¶
func (r *ExecutionResult) Error() error
func (ExecutionResult) IsError ¶
func (r ExecutionResult) IsError() bool
type RsaKeyPair ¶
type RsaKeyPair struct { PrivateKey CryptoBytes `json:"privateKey" yaml:"privateKey"` PublicKey CryptoBytes `json:"publicKey" yaml:"publicKey"` }
func GenerateRsaKeyPair ¶
func GenerateRsaKeyPair() (RsaKeyPair, error)
func (*RsaKeyPair) Empty ¶
func (r *RsaKeyPair) Empty() bool
Click to show internal directories.
Click to hide internal directories.