Documentation ¶
Index ¶
Constants ¶
View Source
const ( IsOn = "ison" PowerOn = "poweron" PowerOff = "poweroff" PowerCycle = "powercycle" PowerCycleBmc = "powercyclebmc" Reseat = "reseat" PxeOnce = "pxeonce" Screenshot = "screenshot" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionFn ¶ added in v1.2.0
type ActionFn func() ActionResult
type ActionResult ¶ added in v1.2.0
func NewActionResult ¶ added in v1.2.0
func NewActionResult(action string, status bool, message string, err error) ActionResult
type ExecutionPlan ¶ added in v1.2.0
type ExecutionPlan struct {
// contains filtered or unexported fields
}
func (*ExecutionPlan) Run ¶ added in v1.2.0
func (p *ExecutionPlan) Run() ([]ActionResult, error)
type Executor ¶ added in v1.2.0
type Executor interface { Validate(string) error Run(string) ActionResult Cleanup() }
type ExecutorFactory ¶ added in v1.2.0
type PlanMaker ¶ added in v1.2.0
type PlanMaker struct {
// contains filtered or unexported fields
}
func NewPlanMaker ¶ added in v1.2.0
func NewPlanMaker(executorFactories ...ExecutorFactory) *PlanMaker
Click to show internal directories.
Click to hide internal directories.