infrav2

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProvisioningEventType_name = map[int32]string{
		0:  "PROVISIONING_EVENT_TYPE_UNSPECIFIED",
		1:  "PROVISIONING_EVENT_TYPE_ALIVE",
		2:  "PROVISIONING_EVENT_TYPE_CRASHED",
		3:  "PROVISIONING_EVENT_TYPE_PXE_BOOTING",
		4:  "PROVISIONING_EVENT_TYPE_PLANNED_REBOOT",
		5:  "PROVISIONING_EVENT_TYPE_PREPARING",
		6:  "PROVISIONING_EVENT_TYPE_REGISTERING",
		7:  "PROVISIONING_EVENT_TYPE_WAITING",
		8:  "PROVISIONING_EVENT_TYPE_INSTALLING",
		9:  "PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL",
		10: "PROVISIONING_EVENT_TYPE_PHONED_HOME",
		11: "PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM",
	}
	ProvisioningEventType_value = map[string]int32{
		"PROVISIONING_EVENT_TYPE_UNSPECIFIED":        0,
		"PROVISIONING_EVENT_TYPE_ALIVE":              1,
		"PROVISIONING_EVENT_TYPE_CRASHED":            2,
		"PROVISIONING_EVENT_TYPE_PXE_BOOTING":        3,
		"PROVISIONING_EVENT_TYPE_PLANNED_REBOOT":     4,
		"PROVISIONING_EVENT_TYPE_PREPARING":          5,
		"PROVISIONING_EVENT_TYPE_REGISTERING":        6,
		"PROVISIONING_EVENT_TYPE_WAITING":            7,
		"PROVISIONING_EVENT_TYPE_INSTALLING":         8,
		"PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL": 9,
		"PROVISIONING_EVENT_TYPE_PHONED_HOME":        10,
		"PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM":    11,
	}
)

Enum value maps for ProvisioningEventType.

View Source
var File_metalstack_infra_v2_bmc_proto protoreflect.FileDescriptor
View Source
var File_metalstack_infra_v2_event_proto protoreflect.FileDescriptor
View Source
var File_metalstack_infra_v2_switch_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EventServiceSendRequest added in v0.0.36

type EventServiceSendRequest struct {

	// Events grouped by machine IDs.
	Events map[string]*MachineProvisioningEvent `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

EventServiceSendRequest.

func (*EventServiceSendRequest) Descriptor deprecated added in v0.0.36

func (*EventServiceSendRequest) Descriptor() ([]byte, []int)

Deprecated: Use EventServiceSendRequest.ProtoReflect.Descriptor instead.

func (*EventServiceSendRequest) GetEvents added in v0.0.36

func (*EventServiceSendRequest) ProtoMessage added in v0.0.36

func (*EventServiceSendRequest) ProtoMessage()

func (*EventServiceSendRequest) ProtoReflect added in v0.0.36

func (x *EventServiceSendRequest) ProtoReflect() protoreflect.Message

func (*EventServiceSendRequest) Reset added in v0.0.36

func (x *EventServiceSendRequest) Reset()

func (*EventServiceSendRequest) String added in v0.0.36

func (x *EventServiceSendRequest) String() string

type EventServiceSendResponse added in v0.0.36

type EventServiceSendResponse struct {

	// Events counts the number of events successfully stored in the database.
	Events uint64 `protobuf:"varint,1,opt,name=events,proto3" json:"events,omitempty"`
	// Failed contains IDs of all machines whose events could not be stored in the database.
	Failed []string `protobuf:"bytes,2,rep,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

EventServiceSendResponse.

func (*EventServiceSendResponse) Descriptor deprecated added in v0.0.36

func (*EventServiceSendResponse) Descriptor() ([]byte, []int)

Deprecated: Use EventServiceSendResponse.ProtoReflect.Descriptor instead.

func (*EventServiceSendResponse) GetEvents added in v0.0.36

func (x *EventServiceSendResponse) GetEvents() uint64

func (*EventServiceSendResponse) GetFailed added in v0.0.36

func (x *EventServiceSendResponse) GetFailed() []string

func (*EventServiceSendResponse) ProtoMessage added in v0.0.36

func (*EventServiceSendResponse) ProtoMessage()

func (*EventServiceSendResponse) ProtoReflect added in v0.0.36

func (x *EventServiceSendResponse) ProtoReflect() protoreflect.Message

func (*EventServiceSendResponse) Reset added in v0.0.36

func (x *EventServiceSendResponse) Reset()

func (*EventServiceSendResponse) String added in v0.0.36

func (x *EventServiceSendResponse) String() string

type MachineProvisioningEvent added in v0.0.36

type MachineProvisioningEvent struct {

	// Time the event occurred at.
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// Event that occurred.
	Event ProvisioningEventType `protobuf:"varint,2,opt,name=event,proto3,enum=metalstack.infra.v2.ProvisioningEventType" json:"event,omitempty"`
	// Message describing the event in more detail.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

MachineProvisioningEvent contains details about an event.

func (*MachineProvisioningEvent) Descriptor deprecated added in v0.0.36

func (*MachineProvisioningEvent) Descriptor() ([]byte, []int)

Deprecated: Use MachineProvisioningEvent.ProtoReflect.Descriptor instead.

func (*MachineProvisioningEvent) GetEvent added in v0.0.36

func (*MachineProvisioningEvent) GetMessage added in v0.0.36

func (x *MachineProvisioningEvent) GetMessage() string

func (*MachineProvisioningEvent) GetTime added in v0.0.36

func (*MachineProvisioningEvent) ProtoMessage added in v0.0.36

func (*MachineProvisioningEvent) ProtoMessage()

func (*MachineProvisioningEvent) ProtoReflect added in v0.0.36

func (x *MachineProvisioningEvent) ProtoReflect() protoreflect.Message

func (*MachineProvisioningEvent) Reset added in v0.0.36

func (x *MachineProvisioningEvent) Reset()

func (*MachineProvisioningEvent) String added in v0.0.36

func (x *MachineProvisioningEvent) String() string

type ProvisioningEventType added in v0.0.36

type ProvisioningEventType int32

ProvisioningEventType is a short description of a machine event.

const (
	// PROVISIONING_EVENT_TYPE_UNSPECIFIED is unspecified.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_UNSPECIFIED ProvisioningEventType = 0
	// PROVISIONING_EVENT_TYPE_ALIVE means the machine has reported itself to the API not long ago.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_ALIVE ProvisioningEventType = 1
	// PROVISIONING_EVENT_TYPE_CRASHED means an irregularity in the machine's lifecycle.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_CRASHED ProvisioningEventType = 2
	// PROVISIONING_EVENT_TYPE_PXE_BOOTING is sent when an unprovisioned machine requests a boot image via PXE.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_PXE_BOOTING ProvisioningEventType = 3
	// PROVISIONING_EVENT_TYPE_PLANNED_REBOOT means the machine was scheduled for reboot.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_PLANNED_REBOOT ProvisioningEventType = 4
	// PROVISIONING_EVENT_TYPE_PREPARING means the metal-hammer has started.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_PREPARING ProvisioningEventType = 5
	// PROVISIONING_EVENT_TYPE_REGISTERING means the metal-hammer is attempting to register the machine at the API.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_REGISTERING ProvisioningEventType = 6
	// PROVISIONING_EVENT_TYPE_WAITING means the machine has successfully reached the state where it is waiting for allocation.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_WAITING ProvisioningEventType = 7
	// PROVISIONING_EVENT_TYPE_INSTALLING means the machine was allocated and the requested OS is being installed.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_INSTALLING ProvisioningEventType = 8
	// PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL means the machine has successfully been installed and is now booting into the new OS.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL ProvisioningEventType = 9
	// PROVISIONING_EVENT_TYPE_PHONED_HOME is sent periodically by an allocated machine to indicate its liveliness.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_PHONED_HOME ProvisioningEventType = 10
	// PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM means the machine was freed and is about to return into the pool of waiting machines.
	ProvisioningEventType_PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM ProvisioningEventType = 11
)

func (ProvisioningEventType) Descriptor added in v0.0.36

func (ProvisioningEventType) Enum added in v0.0.36

func (ProvisioningEventType) EnumDescriptor deprecated added in v0.0.36

func (ProvisioningEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProvisioningEventType.Descriptor instead.

func (ProvisioningEventType) Number added in v0.0.36

func (ProvisioningEventType) String added in v0.0.36

func (x ProvisioningEventType) String() string

func (ProvisioningEventType) Type added in v0.0.36

type SwitchServiceGetRequest added in v0.0.29

type SwitchServiceGetRequest struct {

	// Id of the switch.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

SwitchServiceGetRequest.

func (*SwitchServiceGetRequest) Descriptor deprecated added in v0.0.29

func (*SwitchServiceGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use SwitchServiceGetRequest.ProtoReflect.Descriptor instead.

func (*SwitchServiceGetRequest) GetId added in v0.0.29

func (x *SwitchServiceGetRequest) GetId() string

func (*SwitchServiceGetRequest) ProtoMessage added in v0.0.29

func (*SwitchServiceGetRequest) ProtoMessage()

func (*SwitchServiceGetRequest) ProtoReflect added in v0.0.29

func (x *SwitchServiceGetRequest) ProtoReflect() protoreflect.Message

func (*SwitchServiceGetRequest) Reset added in v0.0.29

func (x *SwitchServiceGetRequest) Reset()

func (*SwitchServiceGetRequest) String added in v0.0.29

func (x *SwitchServiceGetRequest) String() string

type SwitchServiceGetResponse added in v0.0.29

type SwitchServiceGetResponse struct {

	// Switch that was requested.
	Switch *v2.Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"`
	// contains filtered or unexported fields
}

SwitchServiceGetResponse.

func (*SwitchServiceGetResponse) Descriptor deprecated added in v0.0.29

func (*SwitchServiceGetResponse) Descriptor() ([]byte, []int)

Deprecated: Use SwitchServiceGetResponse.ProtoReflect.Descriptor instead.

func (*SwitchServiceGetResponse) GetSwitch added in v0.0.29

func (x *SwitchServiceGetResponse) GetSwitch() *v2.Switch

func (*SwitchServiceGetResponse) ProtoMessage added in v0.0.29

func (*SwitchServiceGetResponse) ProtoMessage()

func (*SwitchServiceGetResponse) ProtoReflect added in v0.0.29

func (x *SwitchServiceGetResponse) ProtoReflect() protoreflect.Message

func (*SwitchServiceGetResponse) Reset added in v0.0.29

func (x *SwitchServiceGetResponse) Reset()

func (*SwitchServiceGetResponse) String added in v0.0.29

func (x *SwitchServiceGetResponse) String() string

type SwitchServiceHeartbeatRequest added in v0.0.23

type SwitchServiceHeartbeatRequest struct {

	// Id of the switch.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Duration of the sync.
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// Error if any occurred during the sync.
	Error *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// PortStates maps port identifiers to the respective port's operational state.
	PortStates map[string]v2.SwitchPortStatus `` /* 206-byte string literal not displayed */
	// BgpPortStates maps port identifiers to the respective port's BGP state.
	BgpPortStates map[string]*v2.SwitchBGPPortState `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

SwitchServiceHeartbeatRequest.

func (*SwitchServiceHeartbeatRequest) Descriptor deprecated added in v0.0.23

func (*SwitchServiceHeartbeatRequest) Descriptor() ([]byte, []int)

Deprecated: Use SwitchServiceHeartbeatRequest.ProtoReflect.Descriptor instead.

func (*SwitchServiceHeartbeatRequest) GetBgpPortStates added in v0.0.23

func (x *SwitchServiceHeartbeatRequest) GetBgpPortStates() map[string]*v2.SwitchBGPPortState

func (*SwitchServiceHeartbeatRequest) GetDuration added in v0.0.23

func (*SwitchServiceHeartbeatRequest) GetError added in v0.0.23

func (x *SwitchServiceHeartbeatRequest) GetError() string

func (*SwitchServiceHeartbeatRequest) GetId added in v0.0.29

func (*SwitchServiceHeartbeatRequest) GetPortStates added in v0.0.23

func (*SwitchServiceHeartbeatRequest) ProtoMessage added in v0.0.23

func (*SwitchServiceHeartbeatRequest) ProtoMessage()

func (*SwitchServiceHeartbeatRequest) ProtoReflect added in v0.0.23

func (*SwitchServiceHeartbeatRequest) Reset added in v0.0.23

func (x *SwitchServiceHeartbeatRequest) Reset()

func (*SwitchServiceHeartbeatRequest) String added in v0.0.23

type SwitchServiceHeartbeatResponse added in v0.0.23

type SwitchServiceHeartbeatResponse struct {

	// Id of the switch.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// LastSync holds information about the last sync.
	LastSync *SwitchSync `protobuf:"bytes,2,opt,name=last_sync,json=lastSync,proto3" json:"last_sync,omitempty"`
	// LastSyncError holds information about the last erroneous sync.
	LastSyncError *SwitchSync `protobuf:"bytes,3,opt,name=last_sync_error,json=lastSyncError,proto3" json:"last_sync_error,omitempty"`
	// contains filtered or unexported fields
}

SwitchServiceHeartbeatResponse.

func (*SwitchServiceHeartbeatResponse) Descriptor deprecated added in v0.0.23

func (*SwitchServiceHeartbeatResponse) Descriptor() ([]byte, []int)

Deprecated: Use SwitchServiceHeartbeatResponse.ProtoReflect.Descriptor instead.

func (*SwitchServiceHeartbeatResponse) GetId added in v0.0.23

func (*SwitchServiceHeartbeatResponse) GetLastSync added in v0.0.23

func (x *SwitchServiceHeartbeatResponse) GetLastSync() *SwitchSync

func (*SwitchServiceHeartbeatResponse) GetLastSyncError added in v0.0.23

func (x *SwitchServiceHeartbeatResponse) GetLastSyncError() *SwitchSync

func (*SwitchServiceHeartbeatResponse) ProtoMessage added in v0.0.23

func (*SwitchServiceHeartbeatResponse) ProtoMessage()

func (*SwitchServiceHeartbeatResponse) ProtoReflect added in v0.0.23

func (*SwitchServiceHeartbeatResponse) Reset added in v0.0.23

func (x *SwitchServiceHeartbeatResponse) Reset()

func (*SwitchServiceHeartbeatResponse) String added in v0.0.23

type SwitchServiceRegisterRequest added in v0.0.8

type SwitchServiceRegisterRequest struct {

	// Switch to register.
	Switch *v2.Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"`
	// contains filtered or unexported fields
}

SwitchServiceRegisterRequest.

func (*SwitchServiceRegisterRequest) Descriptor deprecated added in v0.0.8

func (*SwitchServiceRegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use SwitchServiceRegisterRequest.ProtoReflect.Descriptor instead.

func (*SwitchServiceRegisterRequest) GetSwitch added in v0.0.8

func (x *SwitchServiceRegisterRequest) GetSwitch() *v2.Switch

func (*SwitchServiceRegisterRequest) ProtoMessage added in v0.0.8

func (*SwitchServiceRegisterRequest) ProtoMessage()

func (*SwitchServiceRegisterRequest) ProtoReflect added in v0.0.8

func (*SwitchServiceRegisterRequest) Reset added in v0.0.8

func (x *SwitchServiceRegisterRequest) Reset()

func (*SwitchServiceRegisterRequest) String added in v0.0.8

type SwitchServiceRegisterResponse added in v0.0.8

type SwitchServiceRegisterResponse struct {

	// Switch that was registered.
	Switch *v2.Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"`
	// contains filtered or unexported fields
}

SwitchServiceRegisterResponse.

func (*SwitchServiceRegisterResponse) Descriptor deprecated added in v0.0.8

func (*SwitchServiceRegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use SwitchServiceRegisterResponse.ProtoReflect.Descriptor instead.

func (*SwitchServiceRegisterResponse) GetSwitch added in v0.0.8

func (x *SwitchServiceRegisterResponse) GetSwitch() *v2.Switch

func (*SwitchServiceRegisterResponse) ProtoMessage added in v0.0.8

func (*SwitchServiceRegisterResponse) ProtoMessage()

func (*SwitchServiceRegisterResponse) ProtoReflect added in v0.0.8

func (*SwitchServiceRegisterResponse) Reset added in v0.0.8

func (x *SwitchServiceRegisterResponse) Reset()

func (*SwitchServiceRegisterResponse) String added in v0.0.8

type SwitchSync added in v0.0.23

type SwitchSync struct {

	// Time of the sync.
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// Duration of the sync.
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// Error if any occurred.
	Error *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

SwitchSync summarizes information about a switch sync.

func (*SwitchSync) Descriptor deprecated added in v0.0.23

func (*SwitchSync) Descriptor() ([]byte, []int)

Deprecated: Use SwitchSync.ProtoReflect.Descriptor instead.

func (*SwitchSync) GetDuration added in v0.0.23

func (x *SwitchSync) GetDuration() *durationpb.Duration

func (*SwitchSync) GetError added in v0.0.23

func (x *SwitchSync) GetError() string

func (*SwitchSync) GetTime added in v0.0.23

func (x *SwitchSync) GetTime() *timestamppb.Timestamp

func (*SwitchSync) ProtoMessage added in v0.0.23

func (*SwitchSync) ProtoMessage()

func (*SwitchSync) ProtoReflect added in v0.0.23

func (x *SwitchSync) ProtoReflect() protoreflect.Message

func (*SwitchSync) Reset added in v0.0.23

func (x *SwitchSync) Reset()

func (*SwitchSync) String added in v0.0.23

func (x *SwitchSync) String() string

type UpdateBMCInfoRequest

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

UpdateBMCInfoRequest

func (*UpdateBMCInfoRequest) Descriptor deprecated

func (*UpdateBMCInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateBMCInfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateBMCInfoRequest) ProtoMessage

func (*UpdateBMCInfoRequest) ProtoMessage()

func (*UpdateBMCInfoRequest) ProtoReflect

func (x *UpdateBMCInfoRequest) ProtoReflect() protoreflect.Message

func (*UpdateBMCInfoRequest) Reset

func (x *UpdateBMCInfoRequest) Reset()

func (*UpdateBMCInfoRequest) String

func (x *UpdateBMCInfoRequest) String() string

type UpdateBMCInfoResponse

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

UpdateBMCInfoResponse

func (*UpdateBMCInfoResponse) Descriptor deprecated

func (*UpdateBMCInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateBMCInfoResponse.ProtoReflect.Descriptor instead.

func (*UpdateBMCInfoResponse) ProtoMessage

func (*UpdateBMCInfoResponse) ProtoMessage()

func (*UpdateBMCInfoResponse) ProtoReflect

func (x *UpdateBMCInfoResponse) ProtoReflect() protoreflect.Message

func (*UpdateBMCInfoResponse) Reset

func (x *UpdateBMCInfoResponse) Reset()

func (*UpdateBMCInfoResponse) String

func (x *UpdateBMCInfoResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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