Documentation ¶
Index ¶
- Variables
- func GenerateSSHKey(path string) error
- func RemoveCRCHostEntriesFromKnownHosts() 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) CopyDataPrivileged(data []byte, destFilename string, mode os.FileMode) error
- func (runner *Runner) CopyFile(srcFilename string, destFilename string, mode os.FileMode) error
- func (runner *Runner) CopyFileFromVM(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 ¶
GenerateSSHKey generates SSH keypair based on path of the private key The public key would be generated to the same path with ".pub" added
func RemoveCRCHostEntriesFromKnownHosts ¶
func RemoveCRCHostEntriesFromKnownHosts() error
Types ¶
type KeyPair ¶
func NewKeyPair ¶
NewKeyPair generates a new SSH keypair This will return a private & public key encoded as DER.
type NativeClient ¶
type NativeClient struct { User string Hostname string Port int Keys []string // contains filtered or unexported fields }
func (*NativeClient) Close ¶
func (client *NativeClient) Close()
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) CopyDataPrivileged ¶
func (*Runner) CopyFileFromVM ¶
func (*Runner) RunPrivate ¶
func (*Runner) RunPrivileged ¶
Click to show internal directories.
Click to hide internal directories.