outofband

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: 35 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	ErrFirmwareTempFile          = errors.New("error firmware temp file")
	ErrSaveAction                = errors.New("error occurred in action state save")
	ErrActionTypeAssertion       = errors.New("error occurred in action object type assertion")
	ErrContextCancelled          = errors.New("context canceled")
	ErrUnexpected                = errors.New("unexpected error occurred")
	ErrInstalledFirmwareNotEqual = errors.New("installed and expected firmware not equal")
	ErrInstalledVersionUnknown   = errors.New("installed version unknown")
	ErrComponentNotFound         = errors.New("component not identified for firmware install")
	ErrRequireHostPoweredOff     = errors.New("expected host to be powered off")
)
View Source
var (
	ErrBMCQuery                    = errors.New("error occurred in bmc query")
	ErrMaxBMCQueryAttempts         = errors.New("reached maximum BMC query attempts")
	ErrTaskNotFound                = errors.New("task not found")
	ErrFirmwareInstallFailed       = errors.New("firmware install failed")
	ErrFirmwareTaskStateUnexpected = errors.New("BMC returned unexpected firmware task state")
	ErrQueryorMethod               = errors.New("BMC queryor method error")

	ErrFirmwareInstallProvider = errors.New("firmware install provider not identified")
)

Functions

func GraphSteps

func GraphSteps(ctx context.Context, g *dot.Graph) error

func NewDeviceQueryor

func NewDeviceQueryor(ctx context.Context, asset *rtypes.Server, logger *logrus.Entry) device.OutofbandQueryor

NewDeviceQueryor returns a bmc queryor that implements the DeviceQueryor interface

Types

type ActionHandler

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

func (*ActionHandler) ComposeAction

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

type ErrBmcQuery

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

func (*ErrBmcQuery) Error

func (e *ErrBmcQuery) Error() string

Jump to

Keyboard shortcuts

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