ssh

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner added in v1.14.0

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

func CreateRunner

func CreateRunner(driver drivers.Driver) *Runner

func CreateRunnerWithPrivateKey

func CreateRunnerWithPrivateKey(driver drivers.Driver, privateKey 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)

func (*Runner) SetPrivateKeyPath added in v1.14.0

func (runner *Runner) SetPrivateKeyPath(path string)

Jump to

Keyboard shortcuts

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