ssh

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteExecutor

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

func NewRemoteExecutor

func NewRemoteExecutor(keyFile string, user string, host string, port int) *RemoteExecutor

func (*RemoteExecutor) Close

func (exec *RemoteExecutor) Close() (err error)

func (*RemoteExecutor) Connect added in v0.1.49

func (exec *RemoteExecutor) Connect() error

func (*RemoteExecutor) Execute

func (exec *RemoteExecutor) Execute(command string) ([]byte, error)

Jump to

Keyboard shortcuts

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