ending

package
v3.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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 Interface

type Interface interface {
	GetHost() connector.Host
	GetStatus() ResultStatus
	GetErr() error
	GetStartTime() time.Time
	GetEndTime() time.Time
}

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) AppendErr

func (t *TaskResult) AppendErr(host connector.Host, err error)

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()

Jump to

Keyboard shortcuts

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