executor

package
v0.0.0-...-e457aa1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const COMMAND_TIMEOUT = "Command timed out"
View Source
const EMPTY_COMMAND = "Can't execute empty command"
View Source
const ERROR_WHILE_EXECUTING_COMMAND = "Error while executing command"

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func (*Executor) Execute

func (e *Executor) Execute() bool

func (*Executor) GetCommand

func (e *Executor) GetCommand() string

func (*Executor) GetCommandArgs

func (e *Executor) GetCommandArgs() []string

func (*Executor) GetError

func (e *Executor) GetError() error

func (*Executor) GetExecutionTime

func (e *Executor) GetExecutionTime() int64

func (*Executor) GetOutput

func (e *Executor) GetOutput() string

func (*Executor) GetTimeout

func (e *Executor) GetTimeout() int

func (*Executor) IsSuccess

func (e *Executor) IsSuccess() bool

func (*Executor) SetCommand

func (e *Executor) SetCommand(com string)

func (*Executor) SetCommandArgs

func (e *Executor) SetCommandArgs(comArgs []string)

func (*Executor) SetTimeout

func (e *Executor) SetTimeout(timeout int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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