Documentation
¶
Index ¶
- Constants
- type Executor
- func (e *Executor) Execute() bool
- func (e *Executor) GetCommand() string
- func (e *Executor) GetCommandArgs() []string
- func (e *Executor) GetError() error
- func (e *Executor) GetExecutionTime() int64
- func (e *Executor) GetOutput() string
- func (e *Executor) GetTimeout() int
- func (e *Executor) IsSuccess() bool
- func (e *Executor) SetCommand(com string)
- func (e *Executor) SetCommandArgs(comArgs []string)
- func (e *Executor) SetTimeout(timeout int)
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) GetCommand ¶
func (*Executor) GetCommandArgs ¶
func (*Executor) GetExecutionTime ¶
func (*Executor) GetTimeout ¶
func (*Executor) SetCommand ¶
func (*Executor) SetCommandArgs ¶
func (*Executor) SetTimeout ¶
Click to show internal directories.
Click to hide internal directories.