inband

package
v0.0.0-...-19f5c96 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreInstall  model.StepGroup = "PreInstall"
	PostInstall model.StepGroup = "PostInstall"
	Install     model.StepGroup = "Install"
	PowerState  model.StepGroup = "PowerState"
)

Variables

View Source
var (
	ErrInstalledFirmwareNotEqual = errors.New("installed and expected firmware not equal")
	ErrInstalledFirmwareEqual    = errors.New("installed and expected firmware are equal, no action necessary")
	ErrInstalledVersionUnknown   = errors.New("installed version unknown")
	ErrComponentNotFound         = errors.New("component not identified for firmware install")
	ErrRequireHostPoweredOff     = errors.New("expected host to be powered off")
)

Functions

func AssignStepHandlers

func AssignStepHandlers(action *model.Action, actionCtx *runner.ActionHandlerContext) error

Assign action step handlers to a previously initialized action

This is mainly for resumed actions which were loaded from active Task object the store (KV) since the actions were previously composed, now they just have to be assigned the step handler methods.

func NewDeviceQueryor

func NewDeviceQueryor(logger *logrus.Entry) device.InbandQueryor

NewDeviceQueryor returns a server queryor that implements the DeviceQueryor interface

Types

type ActionHandler

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

func (*ActionHandler) ComposeAction

func (i *ActionHandler) ComposeAction(ctx context.Context, actionCtx *runner.ActionHandlerContext) (*model.Action, error)

Jump to

Keyboard shortcuts

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