Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter(log *slog.Logger, eventClient v1.EventServiceClient, machineID string) *EventEmitter
func (*EventEmitter) Emit ¶
func (e *EventEmitter) Emit(eventType ProvisioningEventType, message string)
type ProvisioningEventType ¶
type ProvisioningEventType string
ProvisioningEventType indicates an event emitted by a machine during the provisioning sequence FIXME factor out to metal-lib
const ( ProvisioningEventAlive ProvisioningEventType = "Alive" ProvisioningEventCrashed ProvisioningEventType = "Crashed" ProvisioningEventResetFailCount ProvisioningEventType = "Reset Fail Count" ProvisioningEventPXEBooting ProvisioningEventType = "PXE Booting" ProvisioningEventPlannedReboot ProvisioningEventType = "Planned Reboot" ProvisioningEventPreparing ProvisioningEventType = "Preparing" ProvisioningEventRegistering ProvisioningEventType = "Registering" ProvisioningEventWaiting ProvisioningEventType = "Waiting" ProvisioningEventInstalling ProvisioningEventType = "Installing" ProvisioningEventBootingNewKernel ProvisioningEventType = "Booting New Kernel" ProvisioningEventPhonedHome ProvisioningEventType = "Phoned Home" )
The enums for the machine provisioning events.
Click to show internal directories.
Click to hide internal directories.