Documentation ¶
Index ¶
- Variables
- type ActionResult
- type Interface
- type ModuleResult
- type ResultStatus
- type TaskResult
- func (t *TaskResult) AppendErr(host connector.Host, err error)
- func (t *TaskResult) AppendSkip(host connector.Host)
- func (t *TaskResult) AppendSuccess(host connector.Host)
- func (t *TaskResult) CombineErr() error
- func (t *TaskResult) ErrResult()
- func (t *TaskResult) IsFailed() bool
- func (t *TaskResult) NormalResult()
- func (t *TaskResult) SkippedResult()
Constants ¶
This section is empty.
Variables ¶
View Source
var EnumList = []ResultStatus{ NULL, SKIPPED, SUCCESS, FAILED, }
Functions ¶
This section is empty.
Types ¶
type ActionResult ¶
type ActionResult struct { Host connector.Host Status ResultStatus Error error StartTime time.Time EndTime time.Time }
func (*ActionResult) GetEndTime ¶
func (a *ActionResult) GetEndTime() time.Time
func (*ActionResult) GetErr ¶
func (a *ActionResult) GetErr() error
func (*ActionResult) GetHost ¶
func (a *ActionResult) GetHost() connector.Host
func (*ActionResult) GetStartTime ¶
func (a *ActionResult) GetStartTime() time.Time
func (*ActionResult) GetStatus ¶
func (a *ActionResult) GetStatus() ResultStatus
type ModuleResult ¶
type ModuleResult struct { HostResults map[string]Interface CombineResult error Status ResultStatus StartTime time.Time EndTime time.Time }
func NewModuleResult ¶
func NewModuleResult() *ModuleResult
func (*ModuleResult) AppendHostResult ¶
func (m *ModuleResult) AppendHostResult(p Interface)
func (*ModuleResult) ErrResult ¶
func (m *ModuleResult) ErrResult(combineErr error)
func (*ModuleResult) IsFailed ¶
func (m *ModuleResult) IsFailed() bool
func (*ModuleResult) LocalErrResult ¶
func (m *ModuleResult) LocalErrResult(err error)
func (*ModuleResult) NormalResult ¶
func (m *ModuleResult) NormalResult()
type ResultStatus ¶
type ResultStatus int
const ( NULL ResultStatus = -99 SKIPPED ResultStatus = iota - 2 SUCCESS FAILED )
func GetByCode ¶
func GetByCode(code int) ResultStatus
func (ResultStatus) String ¶
func (r ResultStatus) String() string
type TaskResult ¶
type TaskResult struct { ActionResults []*ActionResult Status ResultStatus StartTime time.Time EndTime time.Time // contains filtered or unexported fields }
func NewTaskResult ¶
func NewTaskResult() *TaskResult
func (*TaskResult) AppendSkip ¶
func (t *TaskResult) AppendSkip(host connector.Host)
func (*TaskResult) AppendSuccess ¶
func (t *TaskResult) AppendSuccess(host connector.Host)
func (*TaskResult) CombineErr ¶
func (t *TaskResult) CombineErr() error
func (*TaskResult) ErrResult ¶
func (t *TaskResult) ErrResult()
func (*TaskResult) IsFailed ¶
func (t *TaskResult) IsFailed() bool
func (*TaskResult) NormalResult ¶
func (t *TaskResult) NormalResult()
func (*TaskResult) SkippedResult ¶
func (t *TaskResult) SkippedResult()
Click to show internal directories.
Click to hide internal directories.