executor

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordEmpty = errors.New("password is empty")
)

Functions

This section is empty.

Types

type ExecuteCloser

type ExecuteCloser interface {
	Execute(command string) (string, error)
	Close() error
}

type Executor

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

func NewExecutor

func NewExecutor(address, password string, timeout int, skipErrors bool) (*Executor, error)

func (*Executor) Close

func (e *Executor) Close() error

func (*Executor) Execute

func (e *Executor) Execute(command string) (string, error)

Jump to

Keyboard shortcuts

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