remoteshell

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const StartTimeout = 1 * time.Minute
View Source
const WaitTimeout = 30 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	User string
	Host string
}

func (*Executor) Execute

func (e *Executor) Execute(script models.Script) models.ScriptResult

func (*Executor) String

func (e *Executor) String() string

func (*Executor) Type

func (e *Executor) Type() models.ScriptType

type Result

type Result struct {
	E       *Executor
	Command string
	Start   time.Time
	End     time.Time
	Out     []byte
	Code    int
}

func (*Result) EndTime

func (r *Result) EndTime() time.Time

func (*Result) ExitCode

func (r *Result) ExitCode() int

func (*Result) Host

func (r *Result) Host() string

func (*Result) Output

func (r *Result) Output() []byte

func (*Result) StartTime

func (r *Result) StartTime() time.Time

func (*Result) String

func (r *Result) String() string

Jump to

Keyboard shortcuts

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