ssh

package
v0.0.0-...-3513a05 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransportSSH

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

func NewKey

func NewKey(user, key_path, host string, port int) (*TransportSSH, error)

func NewPass

func NewPass(user, pass, host string, port int) (*TransportSSH, error)

func (*TransportSSH) Check

func (tr *TransportSSH) Check() (kernel, arch string, err error)

func (*TransportSSH) Copy

func (tr *TransportSSH) Copy(content io.Reader, dst string, mode os.FileMode) (err error)

func (*TransportSSH) Execute

func (tr *TransportSSH) Execute(cmd string, stdout, stderr io.Writer) (err error)

func (*TransportSSH) ExecuteInput

func (tr *TransportSSH) ExecuteInput(cmd string, stdin io.Reader, stdout, stderr io.Writer) (err error)

Jump to

Keyboard shortcuts

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