ssh

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHExecutor

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

func NewSSHExecutorServer

func NewSSHExecutorServer(host string, port int, user, password string, cfg *config.Config, log *logrus.Logger) *SSHExecutor

func (*SSHExecutor) Close

func (s *SSHExecutor) Close() error

func (*SSHExecutor) Connect

func (s *SSHExecutor) Connect(timeout time.Duration) error

func (*SSHExecutor) Execute

func (s *SSHExecutor) Execute(command string) (string, string, error)

func (*SSHExecutor) PrepareStreams

func (s *SSHExecutor) PrepareStreams(session *ssh.Session, rsOut, rsErr io.Writer) (stdout io.Reader, stderr io.Reader, err error)

Jump to

Keyboard shortcuts

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