v1

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: AGPL-3.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

View Source
const (
	BootService_Dhcp_FullMethodName              = "/api.v1.BootService/Dhcp"
	BootService_Boot_FullMethodName              = "/api.v1.BootService/Boot"
	BootService_SuperUserPassword_FullMethodName = "/api.v1.BootService/SuperUserPassword"
	BootService_Register_FullMethodName          = "/api.v1.BootService/Register"
	BootService_Wait_FullMethodName              = "/api.v1.BootService/Wait"
	BootService_Report_FullMethodName            = "/api.v1.BootService/Report"
	BootService_AbortReinstall_FullMethodName    = "/api.v1.BootService/AbortReinstall"
)
View Source
const (
	EventService_Send_FullMethodName = "/api.v1.EventService/Send"
)

Variables

View Source
var BootService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.BootService",
	HandlerType: (*BootServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Dhcp",
			Handler:    _BootService_Dhcp_Handler,
		},
		{
			MethodName: "Boot",
			Handler:    _BootService_Boot_Handler,
		},
		{
			MethodName: "SuperUserPassword",
			Handler:    _BootService_SuperUserPassword_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _BootService_Register_Handler,
		},
		{
			MethodName: "Report",
			Handler:    _BootService_Report_Handler,
		},
		{
			MethodName: "AbortReinstall",
			Handler:    _BootService_AbortReinstall_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Wait",
			Handler:       _BootService_Wait_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/v1/boot.proto",
}

BootService_ServiceDesc is the grpc.ServiceDesc for BootService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _EventService_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/event.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v1_boot_proto protoreflect.FileDescriptor
View Source
var File_api_v1_event_proto protoreflect.FileDescriptor

Functions

func RegisterBootServiceServer added in v0.18.0

func RegisterBootServiceServer(s grpc.ServiceRegistrar, srv BootServiceServer)

func RegisterEventServiceServer added in v0.17.0

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

Types

type BootInfo added in v0.18.0

type BootInfo struct {
	ImageId      string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	PrimaryDisk  string `protobuf:"bytes,2,opt,name=primary_disk,json=primaryDisk,proto3" json:"primary_disk,omitempty"`
	OsPartition  string `protobuf:"bytes,3,opt,name=os_partition,json=osPartition,proto3" json:"os_partition,omitempty"`
	Initrd       string `protobuf:"bytes,4,opt,name=initrd,proto3" json:"initrd,omitempty"`
	Cmdline      string `protobuf:"bytes,5,opt,name=cmdline,proto3" json:"cmdline,omitempty"`
	Kernel       string `protobuf:"bytes,6,opt,name=kernel,proto3" json:"kernel,omitempty"`
	BootloaderId string `protobuf:"bytes,8,opt,name=bootloader_id,json=bootloaderId,proto3" json:"bootloader_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BootInfo) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootInfo.ProtoReflect.Descriptor instead.

func (*BootInfo) GetBootloaderId added in v0.18.0

func (x *BootInfo) GetBootloaderId() string

func (*BootInfo) GetCmdline added in v0.18.0

func (x *BootInfo) GetCmdline() string

func (*BootInfo) GetImageId added in v0.18.0

func (x *BootInfo) GetImageId() string

func (*BootInfo) GetInitrd added in v0.18.0

func (x *BootInfo) GetInitrd() string

func (*BootInfo) GetKernel added in v0.18.0

func (x *BootInfo) GetKernel() string

func (*BootInfo) GetOsPartition added in v0.18.0

func (x *BootInfo) GetOsPartition() string

func (*BootInfo) GetPrimaryDisk added in v0.18.0

func (x *BootInfo) GetPrimaryDisk() string

func (*BootInfo) ProtoMessage added in v0.18.0

func (*BootInfo) ProtoMessage()

func (*BootInfo) ProtoReflect added in v0.18.0

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

func (*BootInfo) Reset added in v0.18.0

func (x *BootInfo) Reset()

func (*BootInfo) String added in v0.18.0

func (x *BootInfo) String() string

type BootServiceAbortReinstallRequest added in v0.18.0

type BootServiceAbortReinstallRequest struct {
	Uuid             string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	PrimaryDiskWiped bool   `protobuf:"varint,2,opt,name=primary_disk_wiped,json=primaryDiskWiped,proto3" json:"primary_disk_wiped,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceAbortReinstallRequest) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceAbortReinstallRequest.ProtoReflect.Descriptor instead.

func (*BootServiceAbortReinstallRequest) GetPrimaryDiskWiped added in v0.18.0

func (x *BootServiceAbortReinstallRequest) GetPrimaryDiskWiped() bool

func (*BootServiceAbortReinstallRequest) GetUuid added in v0.18.0

func (*BootServiceAbortReinstallRequest) ProtoMessage added in v0.18.0

func (*BootServiceAbortReinstallRequest) ProtoMessage()

func (*BootServiceAbortReinstallRequest) ProtoReflect added in v0.18.0

func (*BootServiceAbortReinstallRequest) Reset added in v0.18.0

func (*BootServiceAbortReinstallRequest) String added in v0.18.0

type BootServiceAbortReinstallResponse added in v0.18.0

type BootServiceAbortReinstallResponse struct {
	BootInfo *BootInfo `protobuf:"bytes,1,opt,name=boot_info,json=bootInfo,proto3" json:"boot_info,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceAbortReinstallResponse) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceAbortReinstallResponse.ProtoReflect.Descriptor instead.

func (*BootServiceAbortReinstallResponse) GetBootInfo added in v0.18.0

func (x *BootServiceAbortReinstallResponse) GetBootInfo() *BootInfo

func (*BootServiceAbortReinstallResponse) ProtoMessage added in v0.18.0

func (*BootServiceAbortReinstallResponse) ProtoMessage()

func (*BootServiceAbortReinstallResponse) ProtoReflect added in v0.18.0

func (*BootServiceAbortReinstallResponse) Reset added in v0.18.0

func (*BootServiceAbortReinstallResponse) String added in v0.18.0

type BootServiceBootRequest added in v0.18.0

type BootServiceBootRequest struct {
	Mac         string `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	PartitionId string `protobuf:"bytes,2,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceBootRequest) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceBootRequest.ProtoReflect.Descriptor instead.

func (*BootServiceBootRequest) GetMac added in v0.18.0

func (x *BootServiceBootRequest) GetMac() string

func (*BootServiceBootRequest) GetPartitionId added in v0.18.0

func (x *BootServiceBootRequest) GetPartitionId() string

func (*BootServiceBootRequest) ProtoMessage added in v0.18.0

func (*BootServiceBootRequest) ProtoMessage()

func (*BootServiceBootRequest) ProtoReflect added in v0.18.0

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

func (*BootServiceBootRequest) Reset added in v0.18.0

func (x *BootServiceBootRequest) Reset()

func (*BootServiceBootRequest) String added in v0.18.0

func (x *BootServiceBootRequest) String() string

type BootServiceBootResponse added in v0.18.0

type BootServiceBootResponse struct {
	Kernel       string   `protobuf:"bytes,1,opt,name=kernel,proto3" json:"kernel,omitempty"`
	InitRamDisks []string `protobuf:"bytes,2,rep,name=init_ram_disks,json=initRamDisks,proto3" json:"init_ram_disks,omitempty"`
	Cmdline      *string  `protobuf:"bytes,3,opt,name=cmdline,proto3,oneof" json:"cmdline,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceBootResponse) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceBootResponse.ProtoReflect.Descriptor instead.

func (*BootServiceBootResponse) GetCmdline added in v0.18.0

func (x *BootServiceBootResponse) GetCmdline() string

func (*BootServiceBootResponse) GetInitRamDisks added in v0.18.0

func (x *BootServiceBootResponse) GetInitRamDisks() []string

func (*BootServiceBootResponse) GetKernel added in v0.18.0

func (x *BootServiceBootResponse) GetKernel() string

func (*BootServiceBootResponse) ProtoMessage added in v0.18.0

func (*BootServiceBootResponse) ProtoMessage()

func (*BootServiceBootResponse) ProtoReflect added in v0.18.0

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

func (*BootServiceBootResponse) Reset added in v0.18.0

func (x *BootServiceBootResponse) Reset()

func (*BootServiceBootResponse) String added in v0.18.0

func (x *BootServiceBootResponse) String() string

type BootServiceClient added in v0.18.0

type BootServiceClient interface {
	// Dhcp is the first dhcp request (option 97). A ProvisioningEventPXEBooting is fired
	Dhcp(ctx context.Context, in *BootServiceDhcpRequest, opts ...grpc.CallOption) (*BootServiceDhcpResponse, error)
	// Boot is called from pixie once the machine got the first dhcp response and ipxie asks for subsequent kernel and initrd
	Boot(ctx context.Context, in *BootServiceBootRequest, opts ...grpc.CallOption) (*BootServiceBootResponse, error)
	// SuperUserPassword metal-hammer takes the configured root password for the bmc from metal-api and configure the bmc accordingly
	SuperUserPassword(ctx context.Context, in *BootServiceSuperUserPasswordRequest, opts ...grpc.CallOption) (*BootServiceSuperUserPasswordResponse, error)
	// Register is called from metal-hammer after hardware inventory is finished, tells metal-api all glory details about that machine
	Register(ctx context.Context, in *BootServiceRegisterRequest, opts ...grpc.CallOption) (*BootServiceRegisterResponse, error)
	// Wait is a hanging call that waits until the machine gets allocated by a user
	Wait(ctx context.Context, in *BootServiceWaitRequest, opts ...grpc.CallOption) (BootService_WaitClient, error)
	// Report tells metal-api installation was either successful or failed
	Report(ctx context.Context, in *BootServiceReportRequest, opts ...grpc.CallOption) (*BootServiceReportResponse, error)
	// If reinstall failed and tell metal-api to restore to previous state
	AbortReinstall(ctx context.Context, in *BootServiceAbortReinstallRequest, opts ...grpc.CallOption) (*BootServiceAbortReinstallResponse, error)
}

BootServiceClient is the client API for BootService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBootServiceClient added in v0.18.0

func NewBootServiceClient(cc grpc.ClientConnInterface) BootServiceClient

type BootServiceDhcpRequest added in v0.18.0

type BootServiceDhcpRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceDhcpRequest) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceDhcpRequest.ProtoReflect.Descriptor instead.

func (*BootServiceDhcpRequest) GetUuid added in v0.18.0

func (x *BootServiceDhcpRequest) GetUuid() string

func (*BootServiceDhcpRequest) ProtoMessage added in v0.18.0

func (*BootServiceDhcpRequest) ProtoMessage()

func (*BootServiceDhcpRequest) ProtoReflect added in v0.18.0

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

func (*BootServiceDhcpRequest) Reset added in v0.18.0

func (x *BootServiceDhcpRequest) Reset()

func (*BootServiceDhcpRequest) String added in v0.18.0

func (x *BootServiceDhcpRequest) String() string

type BootServiceDhcpResponse added in v0.18.0

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

func (*BootServiceDhcpResponse) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceDhcpResponse.ProtoReflect.Descriptor instead.

func (*BootServiceDhcpResponse) ProtoMessage added in v0.18.0

func (*BootServiceDhcpResponse) ProtoMessage()

func (*BootServiceDhcpResponse) ProtoReflect added in v0.18.0

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

func (*BootServiceDhcpResponse) Reset added in v0.18.0

func (x *BootServiceDhcpResponse) Reset()

func (*BootServiceDhcpResponse) String added in v0.18.0

func (x *BootServiceDhcpResponse) String() string

type BootServiceRegisterRequest added in v0.18.0

type BootServiceRegisterRequest struct {
	Uuid               string           `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Hardware           *MachineHardware `protobuf:"bytes,2,opt,name=hardware,proto3" json:"hardware,omitempty"`
	Bios               *MachineBIOS     `protobuf:"bytes,3,opt,name=bios,proto3" json:"bios,omitempty"`
	Ipmi               *MachineIPMI     `protobuf:"bytes,4,opt,name=ipmi,proto3" json:"ipmi,omitempty"`
	Tags               []string         `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	MetalHammerVersion string           `protobuf:"bytes,6,opt,name=metal_hammer_version,json=metalHammerVersion,proto3" json:"metal_hammer_version,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceRegisterRequest) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceRegisterRequest.ProtoReflect.Descriptor instead.

func (*BootServiceRegisterRequest) GetBios added in v0.18.0

func (*BootServiceRegisterRequest) GetHardware added in v0.18.0

func (x *BootServiceRegisterRequest) GetHardware() *MachineHardware

func (*BootServiceRegisterRequest) GetIpmi added in v0.18.0

func (*BootServiceRegisterRequest) GetMetalHammerVersion added in v0.18.0

func (x *BootServiceRegisterRequest) GetMetalHammerVersion() string

func (*BootServiceRegisterRequest) GetTags added in v0.18.0

func (x *BootServiceRegisterRequest) GetTags() []string

func (*BootServiceRegisterRequest) GetUuid added in v0.18.0

func (x *BootServiceRegisterRequest) GetUuid() string

func (*BootServiceRegisterRequest) ProtoMessage added in v0.18.0

func (*BootServiceRegisterRequest) ProtoMessage()

func (*BootServiceRegisterRequest) ProtoReflect added in v0.18.0

func (*BootServiceRegisterRequest) Reset added in v0.18.0

func (x *BootServiceRegisterRequest) Reset()

func (*BootServiceRegisterRequest) String added in v0.18.0

func (x *BootServiceRegisterRequest) String() string

type BootServiceRegisterResponse added in v0.18.0

type BootServiceRegisterResponse struct {
	Uuid        string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Size        string `protobuf:"bytes,2,opt,name=size,proto3" json:"size,omitempty"`
	PartitionId string `protobuf:"bytes,3,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceRegisterResponse) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceRegisterResponse.ProtoReflect.Descriptor instead.

func (*BootServiceRegisterResponse) GetPartitionId added in v0.18.0

func (x *BootServiceRegisterResponse) GetPartitionId() string

func (*BootServiceRegisterResponse) GetSize added in v0.18.0

func (x *BootServiceRegisterResponse) GetSize() string

func (*BootServiceRegisterResponse) GetUuid added in v0.18.0

func (x *BootServiceRegisterResponse) GetUuid() string

func (*BootServiceRegisterResponse) ProtoMessage added in v0.18.0

func (*BootServiceRegisterResponse) ProtoMessage()

func (*BootServiceRegisterResponse) ProtoReflect added in v0.18.0

func (*BootServiceRegisterResponse) Reset added in v0.18.0

func (x *BootServiceRegisterResponse) Reset()

func (*BootServiceRegisterResponse) String added in v0.18.0

func (x *BootServiceRegisterResponse) String() string

type BootServiceReportRequest added in v0.18.0

type BootServiceReportRequest struct {
	Uuid            string    `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ConsolePassword string    `protobuf:"bytes,2,opt,name=console_password,json=consolePassword,proto3" json:"console_password,omitempty"`
	BootInfo        *BootInfo `protobuf:"bytes,3,opt,name=boot_info,json=bootInfo,proto3" json:"boot_info,omitempty"`
	Success         bool      `protobuf:"varint,4,opt,name=success,proto3" json:"success,omitempty"`
	Message         string    `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceReportRequest) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceReportRequest.ProtoReflect.Descriptor instead.

func (*BootServiceReportRequest) GetBootInfo added in v0.18.0

func (x *BootServiceReportRequest) GetBootInfo() *BootInfo

func (*BootServiceReportRequest) GetConsolePassword added in v0.18.0

func (x *BootServiceReportRequest) GetConsolePassword() string

func (*BootServiceReportRequest) GetMessage added in v0.18.0

func (x *BootServiceReportRequest) GetMessage() string

func (*BootServiceReportRequest) GetSuccess added in v0.18.0

func (x *BootServiceReportRequest) GetSuccess() bool

func (*BootServiceReportRequest) GetUuid added in v0.18.0

func (x *BootServiceReportRequest) GetUuid() string

func (*BootServiceReportRequest) ProtoMessage added in v0.18.0

func (*BootServiceReportRequest) ProtoMessage()

func (*BootServiceReportRequest) ProtoReflect added in v0.18.0

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

func (*BootServiceReportRequest) Reset added in v0.18.0

func (x *BootServiceReportRequest) Reset()

func (*BootServiceReportRequest) String added in v0.18.0

func (x *BootServiceReportRequest) String() string

type BootServiceReportResponse added in v0.18.0

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

func (*BootServiceReportResponse) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceReportResponse.ProtoReflect.Descriptor instead.

func (*BootServiceReportResponse) ProtoMessage added in v0.18.0

func (*BootServiceReportResponse) ProtoMessage()

func (*BootServiceReportResponse) ProtoReflect added in v0.18.0

func (*BootServiceReportResponse) Reset added in v0.18.0

func (x *BootServiceReportResponse) Reset()

func (*BootServiceReportResponse) String added in v0.18.0

func (x *BootServiceReportResponse) String() string

type BootServiceServer added in v0.18.0

type BootServiceServer interface {
	// Dhcp is the first dhcp request (option 97). A ProvisioningEventPXEBooting is fired
	Dhcp(context.Context, *BootServiceDhcpRequest) (*BootServiceDhcpResponse, error)
	// Boot is called from pixie once the machine got the first dhcp response and ipxie asks for subsequent kernel and initrd
	Boot(context.Context, *BootServiceBootRequest) (*BootServiceBootResponse, error)
	// SuperUserPassword metal-hammer takes the configured root password for the bmc from metal-api and configure the bmc accordingly
	SuperUserPassword(context.Context, *BootServiceSuperUserPasswordRequest) (*BootServiceSuperUserPasswordResponse, error)
	// Register is called from metal-hammer after hardware inventory is finished, tells metal-api all glory details about that machine
	Register(context.Context, *BootServiceRegisterRequest) (*BootServiceRegisterResponse, error)
	// Wait is a hanging call that waits until the machine gets allocated by a user
	Wait(*BootServiceWaitRequest, BootService_WaitServer) error
	// Report tells metal-api installation was either successful or failed
	Report(context.Context, *BootServiceReportRequest) (*BootServiceReportResponse, error)
	// If reinstall failed and tell metal-api to restore to previous state
	AbortReinstall(context.Context, *BootServiceAbortReinstallRequest) (*BootServiceAbortReinstallResponse, error)
}

BootServiceServer is the server API for BootService service. All implementations should embed UnimplementedBootServiceServer for forward compatibility

type BootServiceSuperUserPasswordRequest added in v0.18.0

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

func (*BootServiceSuperUserPasswordRequest) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceSuperUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*BootServiceSuperUserPasswordRequest) ProtoMessage added in v0.18.0

func (*BootServiceSuperUserPasswordRequest) ProtoMessage()

func (*BootServiceSuperUserPasswordRequest) ProtoReflect added in v0.18.0

func (*BootServiceSuperUserPasswordRequest) Reset added in v0.18.0

func (*BootServiceSuperUserPasswordRequest) String added in v0.18.0

type BootServiceSuperUserPasswordResponse added in v0.18.0

type BootServiceSuperUserPasswordResponse struct {
	FeatureDisabled   bool   `protobuf:"varint,1,opt,name=feature_disabled,json=featureDisabled,proto3" json:"feature_disabled,omitempty"`
	SuperUserPassword string `protobuf:"bytes,2,opt,name=super_user_password,json=superUserPassword,proto3" json:"super_user_password,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceSuperUserPasswordResponse) Descriptor deprecated added in v0.18.0

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

Deprecated: Use BootServiceSuperUserPasswordResponse.ProtoReflect.Descriptor instead.

func (*BootServiceSuperUserPasswordResponse) GetFeatureDisabled added in v0.18.0

func (x *BootServiceSuperUserPasswordResponse) GetFeatureDisabled() bool

func (*BootServiceSuperUserPasswordResponse) GetSuperUserPassword added in v0.18.0

func (x *BootServiceSuperUserPasswordResponse) GetSuperUserPassword() string

func (*BootServiceSuperUserPasswordResponse) ProtoMessage added in v0.18.0

func (*BootServiceSuperUserPasswordResponse) ProtoMessage()

func (*BootServiceSuperUserPasswordResponse) ProtoReflect added in v0.18.0

func (*BootServiceSuperUserPasswordResponse) Reset added in v0.18.0

func (*BootServiceSuperUserPasswordResponse) String added in v0.18.0

type BootServiceWaitRequest added in v0.18.2

type BootServiceWaitRequest struct {
	MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BootServiceWaitRequest) Descriptor deprecated added in v0.18.2

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

Deprecated: Use BootServiceWaitRequest.ProtoReflect.Descriptor instead.

func (*BootServiceWaitRequest) GetMachineId added in v0.18.2

func (x *BootServiceWaitRequest) GetMachineId() string

func (*BootServiceWaitRequest) ProtoMessage added in v0.18.2

func (*BootServiceWaitRequest) ProtoMessage()

func (*BootServiceWaitRequest) ProtoReflect added in v0.18.2

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

func (*BootServiceWaitRequest) Reset added in v0.18.2

func (x *BootServiceWaitRequest) Reset()

func (*BootServiceWaitRequest) String added in v0.18.2

func (x *BootServiceWaitRequest) String() string

type BootServiceWaitResponse added in v0.18.2

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

func (*BootServiceWaitResponse) Descriptor deprecated added in v0.18.2

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

Deprecated: Use BootServiceWaitResponse.ProtoReflect.Descriptor instead.

func (*BootServiceWaitResponse) ProtoMessage added in v0.18.2

func (*BootServiceWaitResponse) ProtoMessage()

func (*BootServiceWaitResponse) ProtoReflect added in v0.18.2

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

func (*BootServiceWaitResponse) Reset added in v0.18.2

func (x *BootServiceWaitResponse) Reset()

func (*BootServiceWaitResponse) String added in v0.18.2

func (x *BootServiceWaitResponse) String() string

type BootService_WaitClient added in v0.18.2

type BootService_WaitClient interface {
	Recv() (*BootServiceWaitResponse, error)
	grpc.ClientStream
}

type BootService_WaitServer added in v0.18.2

type BootService_WaitServer interface {
	Send(*BootServiceWaitResponse) error
	grpc.ServerStream
}

type EventServiceClient added in v0.17.0

type EventServiceClient interface {
	Send(ctx context.Context, in *EventServiceSendRequest, opts ...grpc.CallOption) (*EventServiceSendResponse, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewEventServiceClient added in v0.17.0

func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient

type EventServiceSendRequest added in v0.17.0

type EventServiceSendRequest struct {
	Events map[string]*MachineProvisioningEvent `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

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

Deprecated: Use EventServiceSendRequest.ProtoReflect.Descriptor instead.

func (*EventServiceSendRequest) GetEvents added in v0.17.0

func (*EventServiceSendRequest) ProtoMessage added in v0.17.0

func (*EventServiceSendRequest) ProtoMessage()

func (*EventServiceSendRequest) ProtoReflect added in v0.17.0

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

func (*EventServiceSendRequest) Reset added in v0.17.0

func (x *EventServiceSendRequest) Reset()

func (*EventServiceSendRequest) String added in v0.17.0

func (x *EventServiceSendRequest) String() string

type EventServiceSendResponse added in v0.17.0

type EventServiceSendResponse struct {

	// number of events stored
	Events uint64 `protobuf:"varint,1,opt,name=events,proto3" json:"events,omitempty"`
	// slice of machineIDs for which event was not published
	Failed []string `protobuf:"bytes,2,rep,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use EventServiceSendResponse.ProtoReflect.Descriptor instead.

func (*EventServiceSendResponse) GetEvents added in v0.17.0

func (x *EventServiceSendResponse) GetEvents() uint64

func (*EventServiceSendResponse) GetFailed added in v0.17.0

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

func (*EventServiceSendResponse) ProtoMessage added in v0.17.0

func (*EventServiceSendResponse) ProtoMessage()

func (*EventServiceSendResponse) ProtoReflect added in v0.17.0

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

func (*EventServiceSendResponse) Reset added in v0.17.0

func (x *EventServiceSendResponse) Reset()

func (*EventServiceSendResponse) String added in v0.17.0

func (x *EventServiceSendResponse) String() string

type EventServiceServer added in v0.17.0

type EventServiceServer interface {
	Send(context.Context, *EventServiceSendRequest) (*EventServiceSendResponse, error)
}

EventServiceServer is the server API for EventService service. All implementations should embed UnimplementedEventServiceServer for forward compatibility

type MachineBIOS added in v0.18.0

type MachineBIOS struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Vendor  string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Date    string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineBIOS) Descriptor deprecated added in v0.18.0

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

Deprecated: Use MachineBIOS.ProtoReflect.Descriptor instead.

func (*MachineBIOS) GetDate added in v0.18.0

func (x *MachineBIOS) GetDate() string

func (*MachineBIOS) GetVendor added in v0.18.0

func (x *MachineBIOS) GetVendor() string

func (*MachineBIOS) GetVersion added in v0.18.0

func (x *MachineBIOS) GetVersion() string

func (*MachineBIOS) ProtoMessage added in v0.18.0

func (*MachineBIOS) ProtoMessage()

func (*MachineBIOS) ProtoReflect added in v0.18.0

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

func (*MachineBIOS) Reset added in v0.18.0

func (x *MachineBIOS) Reset()

func (*MachineBIOS) String added in v0.18.0

func (x *MachineBIOS) String() string

type MachineBlockDevice added in v0.18.0

type MachineBlockDevice struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineBlockDevice) Descriptor deprecated added in v0.18.0

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

Deprecated: Use MachineBlockDevice.ProtoReflect.Descriptor instead.

func (*MachineBlockDevice) GetName added in v0.18.0

func (x *MachineBlockDevice) GetName() string

func (*MachineBlockDevice) GetSize added in v0.18.0

func (x *MachineBlockDevice) GetSize() uint64

func (*MachineBlockDevice) ProtoMessage added in v0.18.0

func (*MachineBlockDevice) ProtoMessage()

func (*MachineBlockDevice) ProtoReflect added in v0.18.0

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

func (*MachineBlockDevice) Reset added in v0.18.0

func (x *MachineBlockDevice) Reset()

func (*MachineBlockDevice) String added in v0.18.0

func (x *MachineBlockDevice) String() string

type MachineCPU added in v0.29.0

type MachineCPU struct {
	Vendor  string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Model   string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	Cores   uint32 `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"`
	Threads uint32 `protobuf:"varint,4,opt,name=threads,proto3" json:"threads,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineCPU) Descriptor deprecated added in v0.29.0

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

Deprecated: Use MachineCPU.ProtoReflect.Descriptor instead.

func (*MachineCPU) GetCores added in v0.29.0

func (x *MachineCPU) GetCores() uint32

func (*MachineCPU) GetModel added in v0.29.0

func (x *MachineCPU) GetModel() string

func (*MachineCPU) GetThreads added in v0.29.0

func (x *MachineCPU) GetThreads() uint32

func (*MachineCPU) GetVendor added in v0.29.0

func (x *MachineCPU) GetVendor() string

func (*MachineCPU) ProtoMessage added in v0.29.0

func (*MachineCPU) ProtoMessage()

func (*MachineCPU) ProtoReflect added in v0.29.0

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

func (*MachineCPU) Reset added in v0.29.0

func (x *MachineCPU) Reset()

func (*MachineCPU) String added in v0.29.0

func (x *MachineCPU) String() string

type MachineFRU added in v0.18.0

type MachineFRU struct {
	ChassisPartNumber   *string `protobuf:"bytes,1,opt,name=chassis_part_number,json=chassisPartNumber,proto3,oneof" json:"chassis_part_number,omitempty"`
	ChassisPartSerial   *string `protobuf:"bytes,2,opt,name=chassis_part_serial,json=chassisPartSerial,proto3,oneof" json:"chassis_part_serial,omitempty"`
	BoardMfg            *string `protobuf:"bytes,3,opt,name=board_mfg,json=boardMfg,proto3,oneof" json:"board_mfg,omitempty"`
	BoardMfgSerial      *string `protobuf:"bytes,4,opt,name=board_mfg_serial,json=boardMfgSerial,proto3,oneof" json:"board_mfg_serial,omitempty"`
	BoardPartNumber     *string `protobuf:"bytes,5,opt,name=board_part_number,json=boardPartNumber,proto3,oneof" json:"board_part_number,omitempty"`
	ProductManufacturer *string `protobuf:"bytes,6,opt,name=product_manufacturer,json=productManufacturer,proto3,oneof" json:"product_manufacturer,omitempty"`
	ProductPartNumber   *string `protobuf:"bytes,7,opt,name=product_part_number,json=productPartNumber,proto3,oneof" json:"product_part_number,omitempty"`
	ProductSerial       *string `protobuf:"bytes,8,opt,name=product_serial,json=productSerial,proto3,oneof" json:"product_serial,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineFRU) Descriptor deprecated added in v0.18.0

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

Deprecated: Use MachineFRU.ProtoReflect.Descriptor instead.

func (*MachineFRU) GetBoardMfg added in v0.18.0

func (x *MachineFRU) GetBoardMfg() string

func (*MachineFRU) GetBoardMfgSerial added in v0.18.0

func (x *MachineFRU) GetBoardMfgSerial() string

func (*MachineFRU) GetBoardPartNumber added in v0.18.0

func (x *MachineFRU) GetBoardPartNumber() string

func (*MachineFRU) GetChassisPartNumber added in v0.18.0

func (x *MachineFRU) GetChassisPartNumber() string

func (*MachineFRU) GetChassisPartSerial added in v0.18.0

func (x *MachineFRU) GetChassisPartSerial() string

func (*MachineFRU) GetProductManufacturer added in v0.18.0

func (x *MachineFRU) GetProductManufacturer() string

func (*MachineFRU) GetProductPartNumber added in v0.18.0

func (x *MachineFRU) GetProductPartNumber() string

func (*MachineFRU) GetProductSerial added in v0.18.0

func (x *MachineFRU) GetProductSerial() string

func (*MachineFRU) ProtoMessage added in v0.18.0

func (*MachineFRU) ProtoMessage()

func (*MachineFRU) ProtoReflect added in v0.18.0

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

func (*MachineFRU) Reset added in v0.18.0

func (x *MachineFRU) Reset()

func (*MachineFRU) String added in v0.18.0

func (x *MachineFRU) String() string

type MachineGPU added in v0.29.0

type MachineGPU struct {
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Model  string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineGPU) Descriptor deprecated added in v0.29.0

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

Deprecated: Use MachineGPU.ProtoReflect.Descriptor instead.

func (*MachineGPU) GetModel added in v0.29.0

func (x *MachineGPU) GetModel() string

func (*MachineGPU) GetVendor added in v0.29.0

func (x *MachineGPU) GetVendor() string

func (*MachineGPU) ProtoMessage added in v0.29.0

func (*MachineGPU) ProtoMessage()

func (*MachineGPU) ProtoReflect added in v0.29.0

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

func (*MachineGPU) Reset added in v0.29.0

func (x *MachineGPU) Reset()

func (*MachineGPU) String added in v0.29.0

func (x *MachineGPU) String() string

type MachineHardware added in v0.18.0

type MachineHardware struct {
	Memory uint64                `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
	Disks  []*MachineBlockDevice `protobuf:"bytes,3,rep,name=disks,proto3" json:"disks,omitempty"`
	Nics   []*MachineNic         `protobuf:"bytes,4,rep,name=nics,proto3" json:"nics,omitempty"`
	Cpus   []*MachineCPU         `protobuf:"bytes,5,rep,name=cpus,proto3" json:"cpus,omitempty"`
	Gpus   []*MachineGPU         `protobuf:"bytes,6,rep,name=gpus,proto3" json:"gpus,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineHardware) Descriptor deprecated added in v0.18.0

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

Deprecated: Use MachineHardware.ProtoReflect.Descriptor instead.

func (*MachineHardware) GetCpus added in v0.29.0

func (x *MachineHardware) GetCpus() []*MachineCPU

func (*MachineHardware) GetDisks added in v0.18.0

func (x *MachineHardware) GetDisks() []*MachineBlockDevice

func (*MachineHardware) GetGpus added in v0.29.0

func (x *MachineHardware) GetGpus() []*MachineGPU

func (*MachineHardware) GetMemory added in v0.18.0

func (x *MachineHardware) GetMemory() uint64

func (*MachineHardware) GetNics added in v0.18.0

func (x *MachineHardware) GetNics() []*MachineNic

func (*MachineHardware) ProtoMessage added in v0.18.0

func (*MachineHardware) ProtoMessage()

func (*MachineHardware) ProtoReflect added in v0.18.0

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

func (*MachineHardware) Reset added in v0.18.0

func (x *MachineHardware) Reset()

func (*MachineHardware) String added in v0.18.0

func (x *MachineHardware) String() string

type MachineIPMI added in v0.18.0

type MachineIPMI struct {
	Address    string      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Mac        string      `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"`
	User       string      `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Password   string      `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Interface  string      `protobuf:"bytes,5,opt,name=interface,proto3" json:"interface,omitempty"`
	Fru        *MachineFRU `protobuf:"bytes,6,opt,name=fru,proto3" json:"fru,omitempty"`
	BmcVersion string      `protobuf:"bytes,7,opt,name=bmc_version,json=bmcVersion,proto3" json:"bmc_version,omitempty"`
	PowerState string      `protobuf:"bytes,8,opt,name=power_state,json=powerState,proto3" json:"power_state,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineIPMI) Descriptor deprecated added in v0.18.0

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

Deprecated: Use MachineIPMI.ProtoReflect.Descriptor instead.

func (*MachineIPMI) GetAddress added in v0.18.0

func (x *MachineIPMI) GetAddress() string

func (*MachineIPMI) GetBmcVersion added in v0.18.0

func (x *MachineIPMI) GetBmcVersion() string

func (*MachineIPMI) GetFru added in v0.18.0

func (x *MachineIPMI) GetFru() *MachineFRU

func (*MachineIPMI) GetInterface added in v0.18.0

func (x *MachineIPMI) GetInterface() string

func (*MachineIPMI) GetMac added in v0.18.0

func (x *MachineIPMI) GetMac() string

func (*MachineIPMI) GetPassword added in v0.18.0

func (x *MachineIPMI) GetPassword() string

func (*MachineIPMI) GetPowerState added in v0.18.0

func (x *MachineIPMI) GetPowerState() string

func (*MachineIPMI) GetUser added in v0.18.0

func (x *MachineIPMI) GetUser() string

func (*MachineIPMI) ProtoMessage added in v0.18.0

func (*MachineIPMI) ProtoMessage()

func (*MachineIPMI) ProtoReflect added in v0.18.0

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

func (*MachineIPMI) Reset added in v0.18.0

func (x *MachineIPMI) Reset()

func (*MachineIPMI) String added in v0.18.0

func (x *MachineIPMI) String() string

type MachineNic added in v0.18.0

type MachineNic struct {
	Mac        string        `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Name       string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Neighbors  []*MachineNic `protobuf:"bytes,3,rep,name=neighbors,proto3" json:"neighbors,omitempty"`
	Hostname   string        `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Identifier string        `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineNic) Descriptor deprecated added in v0.18.0

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

Deprecated: Use MachineNic.ProtoReflect.Descriptor instead.

func (*MachineNic) GetHostname added in v0.22.2

func (x *MachineNic) GetHostname() string

func (*MachineNic) GetIdentifier added in v0.22.2

func (x *MachineNic) GetIdentifier() string

func (*MachineNic) GetMac added in v0.18.0

func (x *MachineNic) GetMac() string

func (*MachineNic) GetName added in v0.18.0

func (x *MachineNic) GetName() string

func (*MachineNic) GetNeighbors added in v0.18.0

func (x *MachineNic) GetNeighbors() []*MachineNic

func (*MachineNic) ProtoMessage added in v0.18.0

func (*MachineNic) ProtoMessage()

func (*MachineNic) ProtoReflect added in v0.18.0

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

func (*MachineNic) Reset added in v0.18.0

func (x *MachineNic) Reset()

func (*MachineNic) String added in v0.18.0

func (x *MachineNic) String() string

type MachineProvisioningEvent added in v0.17.0

type MachineProvisioningEvent struct {

	// timestamp when the event occurred
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// the event type
	// must be one of metal.ProvisioningEventType, otherwise event will be skipped
	// TODO should be migrated to be an enum
	Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	// an additional message describing the event more detailed
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use MachineProvisioningEvent.ProtoReflect.Descriptor instead.

func (*MachineProvisioningEvent) GetEvent added in v0.17.0

func (x *MachineProvisioningEvent) GetEvent() string

func (*MachineProvisioningEvent) GetMessage added in v0.17.0

func (x *MachineProvisioningEvent) GetMessage() string

func (*MachineProvisioningEvent) GetTime added in v0.17.0

func (*MachineProvisioningEvent) ProtoMessage added in v0.17.0

func (*MachineProvisioningEvent) ProtoMessage()

func (*MachineProvisioningEvent) ProtoReflect added in v0.17.0

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

func (*MachineProvisioningEvent) Reset added in v0.17.0

func (x *MachineProvisioningEvent) Reset()

func (*MachineProvisioningEvent) String added in v0.17.0

func (x *MachineProvisioningEvent) String() string

type UnimplementedBootServiceServer added in v0.18.0

type UnimplementedBootServiceServer struct {
}

UnimplementedBootServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedBootServiceServer) AbortReinstall added in v0.18.0

func (UnimplementedBootServiceServer) Boot added in v0.18.0

func (UnimplementedBootServiceServer) Dhcp added in v0.18.0

func (UnimplementedBootServiceServer) Register added in v0.18.0

func (UnimplementedBootServiceServer) Report added in v0.18.0

func (UnimplementedBootServiceServer) SuperUserPassword added in v0.18.0

func (UnimplementedBootServiceServer) Wait added in v0.18.2

type UnimplementedEventServiceServer added in v0.17.0

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEventServiceServer) Send added in v0.17.0

type UnsafeBootServiceServer added in v0.18.0

type UnsafeBootServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBootServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BootServiceServer will result in compilation errors.

type UnsafeEventServiceServer added in v0.18.0

type UnsafeEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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