ssh

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHRunner

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

func CreateRunner

func CreateRunner(driver drivers.Driver) *SSHRunner

func CreateRunnerWithPrivateKey

func CreateRunnerWithPrivateKey(driver drivers.Driver, privateKey string) *SSHRunner

func (*SSHRunner) CopyData

func (runner *SSHRunner) CopyData(data []byte, destFilename string) error

func (*SSHRunner) Run

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

Create a host using the driver's config

func (*SSHRunner) RunPrivate

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

func (*SSHRunner) SetPrivateKeyPath

func (runner *SSHRunner) SetPrivateKeyPath(path string)

func (*SSHRunner) SetTextContentAsRoot

func (runner *SSHRunner) SetTextContentAsRoot(destFilename string, content string, mode os.FileMode) error

Jump to

Keyboard shortcuts

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