ssh

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteCommandRunner added in v1.16.0

func NewRemoteCommandRunner(runner *Runner) crcos.CommandRunner

Types

type Runner added in v1.14.0

type Runner struct {
	// contains filtered or unexported fields
}

func CreateRunner

func CreateRunner(ip string, port int, privateKeys ...string) *Runner

func (*Runner) CopyData added in v1.14.0

func (runner *Runner) CopyData(data []byte, destFilename string, mode os.FileMode) error

func (*Runner) CopyFile added in v1.15.0

func (runner *Runner) CopyFile(srcFilename string, destFilename string, mode os.FileMode) error

func (*Runner) Run added in v1.14.0

func (runner *Runner) Run(command string) (string, error)

Create a host using the driver's config

func (*Runner) RunPrivate added in v1.14.0

func (runner *Runner) RunPrivate(command string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL