Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BMCService ¶
type BMCService struct {
// contains filtered or unexported fields
}
func (*BMCService) HandleMessage ¶ added in v0.5.0
func (b *BMCService) HandleMessage(message *nsq.Message) error
func (*BMCService) InitConsumer ¶
func (b *BMCService) InitConsumer() error
func (*BMCService) UpdateFirmware ¶
func (b *BMCService) UpdateFirmware(outBand hal.OutBand, event *MachineEvent) error
type FirmwareUpdate ¶
type MachineCommand ¶
type MachineCommand string
const ( MachineOnCmd MachineCommand = "ON" MachineOffCmd MachineCommand = "OFF" MachineResetCmd MachineCommand = "RESET" MachineCycleCmd MachineCommand = "CYCLE" MachineBiosCmd MachineCommand = "BIOS" MachineDiskCmd MachineCommand = "DISK" MachinePxeCmd MachineCommand = "PXE" MachineReinstallCmd MachineCommand = "REINSTALL" ChassisIdentifyLEDOnCmd MachineCommand = "LED-ON" ChassisIdentifyLEDOffCmd MachineCommand = "LED-OFF" UpdateFirmwareCmd MachineCommand = "UPDATE-FIRMWARE" )
FIXME these constants must move to a single location
type MachineEvent ¶
type MachineEvent struct { Type EventType `json:"type,omitempty"` OldMachineID string `json:"old,omitempty"` Cmd *MachineExecCommand `json:"cmd,omitempty"` }
type MachineExecCommand ¶
type MachineExecCommand struct { TargetMachineID string `json:"target,omitempty"` Command MachineCommand `json:"cmd,omitempty"` IPMI *IPMI `json:"ipmi,omitempty"` FirmwareUpdate *FirmwareUpdate `json:"firmwareupdate,omitempty"` }
Click to show internal directories.
Click to hide internal directories.