sshutil

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SSHTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHCommand

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

func New

func New(host, username, password, privateKeyPath, privateKeyPathPassword string) *SSHCommand

func (*SSHCommand) Copy

func (cmd *SSHCommand) Copy(src, dst string) error

func (*SSHCommand) CopyDir

func (cmd *SSHCommand) CopyDir(src, dst string) error

func (*SSHCommand) CopyFile

func (cmd *SSHCommand) CopyFile(src, dst string) error

func (*SSHCommand) Exec

func (cmd *SSHCommand) Exec(command string) ([]byte, error)

func (*SSHCommand) ExecShell

func (cmd *SSHCommand) ExecShell(shell string) error

func (*SSHCommand) Scp

func (cmd *SSHCommand) Scp(src, dst string) error

Jump to

Keyboard shortcuts

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