Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMCService ¶
type BMCService struct {
// contains filtered or unexported fields
}
func New ¶
func New(c Config) *BMCService
func (*BMCService) InitConsumer ¶
func (b *BMCService) InitConsumer() error
func (*BMCService) UpdateFirmware ¶
func (b *BMCService) UpdateFirmware(outBand hal.OutBand, event *MachineEvent)
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" )
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"`
Params []string `json:"params,omitempty"`
IPMI *IPMI `json:"ipmi,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.