Documentation ¶
Index ¶
- Variables
- func GenerateSSHKey(path string) error
- type Client
- type KeyPair
- type NativeClient
- type Runner
- func (runner *Runner) Close()
- func (runner *Runner) CopyData(data []byte, destFilename string, mode os.FileMode) error
- func (runner *Runner) CopyFile(srcFilename string, destFilename string, mode os.FileMode) error
- func (runner *Runner) Run(cmd string, args ...string) (string, string, error)
- func (runner *Runner) RunPrivate(cmd string, args ...string) (string, string, error)
- func (runner *Runner) RunPrivileged(reason string, cmdAndArgs ...string) (string, string, error)
- func (runner *Runner) WaitForConnectivity(ctx context.Context, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateSSHKey ¶ added in v1.20.0
GenerateSSHKey generates SSH keypair based on path of the private key The public key would be generated to the same path with ".pub" added
Types ¶
type KeyPair ¶ added in v1.20.0
func NewKeyPair ¶ added in v1.20.0
NewKeyPair generates a new SSH keypair This will return a private & public key encoded as DER.
type NativeClient ¶ added in v1.20.0
type NativeClient struct { User string Hostname string Port int Keys []string // contains filtered or unexported fields }
func (*NativeClient) Close ¶ added in v1.20.0
func (client *NativeClient) Close()
type Runner ¶ added in v1.14.0
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) RunPrivate ¶ added in v1.14.0
func (*Runner) RunPrivileged ¶ added in v1.20.0
Click to show internal directories.
Click to hide internal directories.