gen

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PowershelfManager_RegisterPowershelves_FullMethodName    = "/v1.PowershelfManager/RegisterPowershelves"
	PowershelfManager_GetPowershelves_FullMethodName         = "/v1.PowershelfManager/GetPowershelves"
	PowershelfManager_UpdateFirmware_FullMethodName          = "/v1.PowershelfManager/UpdateFirmware"
	PowershelfManager_GetFirmwareUpdateStatus_FullMethodName = "/v1.PowershelfManager/GetFirmwareUpdateStatus"
	PowershelfManager_ListAvailableFirmware_FullMethodName   = "/v1.PowershelfManager/ListAvailableFirmware"
	PowershelfManager_SetDryRun_FullMethodName               = "/v1.PowershelfManager/SetDryRun"
	PowershelfManager_PowerOff_FullMethodName                = "/v1.PowershelfManager/PowerOff"
	PowershelfManager_PowerOn_FullMethodName                 = "/v1.PowershelfManager/PowerOn"
)

Variables

View Source
var (
	PMCVendor_name = map[int32]string{
		0: "PMC_TYPE_UNKNOWN",
		1: "PMC_TYPE_LITEON",
	}
	PMCVendor_value = map[string]int32{
		"PMC_TYPE_UNKNOWN": 0,
		"PMC_TYPE_LITEON":  1,
	}
)

Enum value maps for PMCVendor.

View Source
var (
	StatusCode_name = map[int32]string{
		0: "SUCCESS",
		1: "INVALID_ARGUMENT",
		2: "INTERNAL_ERROR",
	}
	StatusCode_value = map[string]int32{
		"SUCCESS":          0,
		"INVALID_ARGUMENT": 1,
		"INTERNAL_ERROR":   2,
	}
)

Enum value maps for StatusCode.

View Source
var (
	PowershelfComponent_name = map[int32]string{
		0: "PMC",
		1: "PSU",
	}
	PowershelfComponent_value = map[string]int32{
		"PMC": 0,
		"PSU": 1,
	}
)

Enum value maps for PowershelfComponent.

View Source
var (
	FirmwareUpdateState_name = map[int32]string{
		0: "FIRMWARE_UPDATE_STATE_UNKNOWN",
		1: "FIRMWARE_UPDATE_STATE_QUEUED",
		2: "FIRMWARE_UPDATE_STATE_VERIFYING",
		3: "FIRMWARE_UPDATE_STATE_COMPLETED",
		4: "FIRMWARE_UPDATE_STATE_FAILED",
	}
	FirmwareUpdateState_value = map[string]int32{
		"FIRMWARE_UPDATE_STATE_UNKNOWN":   0,
		"FIRMWARE_UPDATE_STATE_QUEUED":    1,
		"FIRMWARE_UPDATE_STATE_VERIFYING": 2,
		"FIRMWARE_UPDATE_STATE_COMPLETED": 3,
		"FIRMWARE_UPDATE_STATE_FAILED":    4,
	}
)

Enum value maps for FirmwareUpdateState.

View Source
var File_powershelf_manager_proto protoreflect.FileDescriptor
View Source
var PowershelfManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.PowershelfManager",
	HandlerType: (*PowershelfManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterPowershelves",
			Handler:    _PowershelfManager_RegisterPowershelves_Handler,
		},
		{
			MethodName: "GetPowershelves",
			Handler:    _PowershelfManager_GetPowershelves_Handler,
		},
		{
			MethodName: "UpdateFirmware",
			Handler:    _PowershelfManager_UpdateFirmware_Handler,
		},
		{
			MethodName: "GetFirmwareUpdateStatus",
			Handler:    _PowershelfManager_GetFirmwareUpdateStatus_Handler,
		},
		{
			MethodName: "ListAvailableFirmware",
			Handler:    _PowershelfManager_ListAvailableFirmware_Handler,
		},
		{
			MethodName: "SetDryRun",
			Handler:    _PowershelfManager_SetDryRun_Handler,
		},
		{
			MethodName: "PowerOff",
			Handler:    _PowershelfManager_PowerOff_Handler,
		},
		{
			MethodName: "PowerOn",
			Handler:    _PowershelfManager_PowerOn_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "powershelf-manager.proto",
}

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

Functions

func RegisterPowershelfManagerServer

func RegisterPowershelfManagerServer(s grpc.ServiceRegistrar, srv PowershelfManagerServer)

Types

type AvailableFirmware

type AvailableFirmware struct {
	PmcMacAddress string                       `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	Upgrades      []*ComponentFirmwareUpgrades `protobuf:"bytes,2,rep,name=upgrades,proto3" json:"upgrades,omitempty"`
	// contains filtered or unexported fields
}

func (*AvailableFirmware) Descriptor deprecated

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

Deprecated: Use AvailableFirmware.ProtoReflect.Descriptor instead.

func (*AvailableFirmware) GetPmcMacAddress

func (x *AvailableFirmware) GetPmcMacAddress() string

func (*AvailableFirmware) GetUpgrades

func (x *AvailableFirmware) GetUpgrades() []*ComponentFirmwareUpgrades

func (*AvailableFirmware) ProtoMessage

func (*AvailableFirmware) ProtoMessage()

func (*AvailableFirmware) ProtoReflect

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

func (*AvailableFirmware) Reset

func (x *AvailableFirmware) Reset()

func (*AvailableFirmware) String

func (x *AvailableFirmware) String() string

type CanUpdateFirmwareResponse

type CanUpdateFirmwareResponse struct {
	CanUpdate bool `protobuf:"varint,1,opt,name=can_update,json=canUpdate,proto3" json:"can_update,omitempty"`
	// contains filtered or unexported fields
}

func (*CanUpdateFirmwareResponse) Descriptor deprecated

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

Deprecated: Use CanUpdateFirmwareResponse.ProtoReflect.Descriptor instead.

func (*CanUpdateFirmwareResponse) GetCanUpdate

func (x *CanUpdateFirmwareResponse) GetCanUpdate() bool

func (*CanUpdateFirmwareResponse) ProtoMessage

func (*CanUpdateFirmwareResponse) ProtoMessage()

func (*CanUpdateFirmwareResponse) ProtoReflect

func (*CanUpdateFirmwareResponse) Reset

func (x *CanUpdateFirmwareResponse) Reset()

func (*CanUpdateFirmwareResponse) String

func (x *CanUpdateFirmwareResponse) String() string

type Chassis

type Chassis struct {
	SerialNumber string `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	Model        string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	Manufacturer string `protobuf:"bytes,3,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	// contains filtered or unexported fields
}

Chassis contains chassis identity and model/manufacturer fields.

func (*Chassis) Descriptor deprecated

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

Deprecated: Use Chassis.ProtoReflect.Descriptor instead.

func (*Chassis) GetManufacturer

func (x *Chassis) GetManufacturer() string

func (*Chassis) GetModel

func (x *Chassis) GetModel() string

func (*Chassis) GetSerialNumber

func (x *Chassis) GetSerialNumber() string

func (*Chassis) ProtoMessage

func (*Chassis) ProtoMessage()

func (*Chassis) ProtoReflect

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

func (*Chassis) Reset

func (x *Chassis) Reset()

func (*Chassis) String

func (x *Chassis) String() string

type ComponentFirmwareUpgrades

type ComponentFirmwareUpgrades struct {
	Component PowershelfComponent `protobuf:"varint,1,opt,name=component,proto3,enum=v1.PowershelfComponent" json:"component,omitempty"`
	Upgrades  []*FirmwareVersion  `protobuf:"bytes,2,rep,name=upgrades,proto3" json:"upgrades,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentFirmwareUpgrades) Descriptor deprecated

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

Deprecated: Use ComponentFirmwareUpgrades.ProtoReflect.Descriptor instead.

func (*ComponentFirmwareUpgrades) GetComponent

func (*ComponentFirmwareUpgrades) GetUpgrades

func (x *ComponentFirmwareUpgrades) GetUpgrades() []*FirmwareVersion

func (*ComponentFirmwareUpgrades) ProtoMessage

func (*ComponentFirmwareUpgrades) ProtoMessage()

func (*ComponentFirmwareUpgrades) ProtoReflect

func (*ComponentFirmwareUpgrades) Reset

func (x *ComponentFirmwareUpgrades) Reset()

func (*ComponentFirmwareUpgrades) String

func (x *ComponentFirmwareUpgrades) String() string

type Credentials

type Credentials struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Credentials wraps around a username and password

func (*Credentials) Descriptor deprecated

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

Deprecated: Use Credentials.ProtoReflect.Descriptor instead.

func (*Credentials) GetPassword

func (x *Credentials) GetPassword() string

func (*Credentials) GetUsername

func (x *Credentials) GetUsername() string

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) ProtoReflect

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

func (*Credentials) Reset

func (x *Credentials) Reset()

func (*Credentials) String

func (x *Credentials) String() string

type FirmwareUpdateQuery

type FirmwareUpdateQuery struct {
	PmcMacAddress string              `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	Component     PowershelfComponent `protobuf:"varint,2,opt,name=component,proto3,enum=v1.PowershelfComponent" json:"component,omitempty"`
	// contains filtered or unexported fields
}

FirmwareUpdateQuery specifies a single PMC MAC and component to query.

func (*FirmwareUpdateQuery) Descriptor deprecated

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

Deprecated: Use FirmwareUpdateQuery.ProtoReflect.Descriptor instead.

func (*FirmwareUpdateQuery) GetComponent

func (x *FirmwareUpdateQuery) GetComponent() PowershelfComponent

func (*FirmwareUpdateQuery) GetPmcMacAddress

func (x *FirmwareUpdateQuery) GetPmcMacAddress() string

func (*FirmwareUpdateQuery) ProtoMessage

func (*FirmwareUpdateQuery) ProtoMessage()

func (*FirmwareUpdateQuery) ProtoReflect

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

func (*FirmwareUpdateQuery) Reset

func (x *FirmwareUpdateQuery) Reset()

func (*FirmwareUpdateQuery) String

func (x *FirmwareUpdateQuery) String() string

type FirmwareUpdateState

type FirmwareUpdateState int32

FirmwareUpdateState represents the state of a firmware update operation.

const (
	FirmwareUpdateState_FIRMWARE_UPDATE_STATE_UNKNOWN   FirmwareUpdateState = 0
	FirmwareUpdateState_FIRMWARE_UPDATE_STATE_QUEUED    FirmwareUpdateState = 1
	FirmwareUpdateState_FIRMWARE_UPDATE_STATE_VERIFYING FirmwareUpdateState = 2
	FirmwareUpdateState_FIRMWARE_UPDATE_STATE_COMPLETED FirmwareUpdateState = 3
	FirmwareUpdateState_FIRMWARE_UPDATE_STATE_FAILED    FirmwareUpdateState = 4
)

func (FirmwareUpdateState) Descriptor

func (FirmwareUpdateState) Enum

func (FirmwareUpdateState) EnumDescriptor deprecated

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

Deprecated: Use FirmwareUpdateState.Descriptor instead.

func (FirmwareUpdateState) Number

func (FirmwareUpdateState) String

func (x FirmwareUpdateState) String() string

func (FirmwareUpdateState) Type

type FirmwareUpdateStatus

type FirmwareUpdateStatus struct {
	PmcMacAddress string              `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	Component     PowershelfComponent `protobuf:"varint,2,opt,name=component,proto3,enum=v1.PowershelfComponent" json:"component,omitempty"`
	State         FirmwareUpdateState `protobuf:"varint,3,opt,name=state,proto3,enum=v1.FirmwareUpdateState" json:"state,omitempty"`
	Status        StatusCode          `protobuf:"varint,4,opt,name=status,proto3,enum=v1.StatusCode" json:"status,omitempty"` // Request status (SUCCESS if found, error otherwise)
	Error         string              `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`                       // Request error message (e.g., "not found")
	// contains filtered or unexported fields
}

FirmwareUpdateStatus contains the status of a firmware update operation.

func (*FirmwareUpdateStatus) Descriptor deprecated

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

Deprecated: Use FirmwareUpdateStatus.ProtoReflect.Descriptor instead.

func (*FirmwareUpdateStatus) GetComponent

func (x *FirmwareUpdateStatus) GetComponent() PowershelfComponent

func (*FirmwareUpdateStatus) GetError

func (x *FirmwareUpdateStatus) GetError() string

func (*FirmwareUpdateStatus) GetPmcMacAddress

func (x *FirmwareUpdateStatus) GetPmcMacAddress() string

func (*FirmwareUpdateStatus) GetState

func (*FirmwareUpdateStatus) GetStatus

func (x *FirmwareUpdateStatus) GetStatus() StatusCode

func (*FirmwareUpdateStatus) ProtoMessage

func (*FirmwareUpdateStatus) ProtoMessage()

func (*FirmwareUpdateStatus) ProtoReflect

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

func (*FirmwareUpdateStatus) Reset

func (x *FirmwareUpdateStatus) Reset()

func (*FirmwareUpdateStatus) String

func (x *FirmwareUpdateStatus) String() string

type FirmwareVersion

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

func (*FirmwareVersion) Descriptor deprecated

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

Deprecated: Use FirmwareVersion.ProtoReflect.Descriptor instead.

func (*FirmwareVersion) GetVersion

func (x *FirmwareVersion) GetVersion() string

func (*FirmwareVersion) ProtoMessage

func (*FirmwareVersion) ProtoMessage()

func (*FirmwareVersion) ProtoReflect

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

func (*FirmwareVersion) Reset

func (x *FirmwareVersion) Reset()

func (*FirmwareVersion) String

func (x *FirmwareVersion) String() string

type GetFirmwareUpdateStatusRequest

type GetFirmwareUpdateStatusRequest struct {
	Queries []*FirmwareUpdateQuery `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"`
	// contains filtered or unexported fields
}

GetFirmwareUpdateStatusRequest queries the status of firmware updates for specific PMC(s) and component(s).

func (*GetFirmwareUpdateStatusRequest) Descriptor deprecated

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

Deprecated: Use GetFirmwareUpdateStatusRequest.ProtoReflect.Descriptor instead.

func (*GetFirmwareUpdateStatusRequest) GetQueries

func (*GetFirmwareUpdateStatusRequest) ProtoMessage

func (*GetFirmwareUpdateStatusRequest) ProtoMessage()

func (*GetFirmwareUpdateStatusRequest) ProtoReflect

func (*GetFirmwareUpdateStatusRequest) Reset

func (x *GetFirmwareUpdateStatusRequest) Reset()

func (*GetFirmwareUpdateStatusRequest) String

type GetFirmwareUpdateStatusResponse

type GetFirmwareUpdateStatusResponse struct {
	Statuses []*FirmwareUpdateStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"`
	// contains filtered or unexported fields
}

GetFirmwareUpdateStatusResponse contains the status of the requested firmware updates.

func (*GetFirmwareUpdateStatusResponse) Descriptor deprecated

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

Deprecated: Use GetFirmwareUpdateStatusResponse.ProtoReflect.Descriptor instead.

func (*GetFirmwareUpdateStatusResponse) GetStatuses

func (*GetFirmwareUpdateStatusResponse) ProtoMessage

func (*GetFirmwareUpdateStatusResponse) ProtoMessage()

func (*GetFirmwareUpdateStatusResponse) ProtoReflect

func (*GetFirmwareUpdateStatusResponse) Reset

func (*GetFirmwareUpdateStatusResponse) String

type GetPowershelvesResponse

type GetPowershelvesResponse struct {
	Powershelves []*PowerShelf `protobuf:"bytes,1,rep,name=powershelves,proto3" json:"powershelves,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPowershelvesResponse) Descriptor deprecated

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

Deprecated: Use GetPowershelvesResponse.ProtoReflect.Descriptor instead.

func (*GetPowershelvesResponse) GetPowershelves

func (x *GetPowershelvesResponse) GetPowershelves() []*PowerShelf

func (*GetPowershelvesResponse) ProtoMessage

func (*GetPowershelvesResponse) ProtoMessage()

func (*GetPowershelvesResponse) ProtoReflect

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

func (*GetPowershelvesResponse) Reset

func (x *GetPowershelvesResponse) Reset()

func (*GetPowershelvesResponse) String

func (x *GetPowershelvesResponse) String() string

type ListAvailableFirmwareResponse

type ListAvailableFirmwareResponse struct {
	Upgrades []*AvailableFirmware `protobuf:"bytes,1,rep,name=upgrades,proto3" json:"upgrades,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAvailableFirmwareResponse) Descriptor deprecated

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

Deprecated: Use ListAvailableFirmwareResponse.ProtoReflect.Descriptor instead.

func (*ListAvailableFirmwareResponse) GetUpgrades

func (*ListAvailableFirmwareResponse) ProtoMessage

func (*ListAvailableFirmwareResponse) ProtoMessage()

func (*ListAvailableFirmwareResponse) ProtoReflect

func (*ListAvailableFirmwareResponse) Reset

func (x *ListAvailableFirmwareResponse) Reset()

func (*ListAvailableFirmwareResponse) String

type PMCVendor

type PMCVendor int32

PMCVendor enumerates supported PMC vendors.

const (
	PMCVendor_PMC_TYPE_UNKNOWN PMCVendor = 0
	PMCVendor_PMC_TYPE_LITEON  PMCVendor = 1
)

func (PMCVendor) Descriptor

func (PMCVendor) Descriptor() protoreflect.EnumDescriptor

func (PMCVendor) Enum

func (x PMCVendor) Enum() *PMCVendor

func (PMCVendor) EnumDescriptor deprecated

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

Deprecated: Use PMCVendor.Descriptor instead.

func (PMCVendor) Number

func (x PMCVendor) Number() protoreflect.EnumNumber

func (PMCVendor) String

func (x PMCVendor) String() string

func (PMCVendor) Type

type PowerControlResponse

type PowerControlResponse struct {
	Responses []*PowershelfResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*PowerControlResponse) Descriptor deprecated

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

Deprecated: Use PowerControlResponse.ProtoReflect.Descriptor instead.

func (*PowerControlResponse) GetResponses

func (x *PowerControlResponse) GetResponses() []*PowershelfResponse

func (*PowerControlResponse) ProtoMessage

func (*PowerControlResponse) ProtoMessage()

func (*PowerControlResponse) ProtoReflect

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

func (*PowerControlResponse) Reset

func (x *PowerControlResponse) Reset()

func (*PowerControlResponse) String

func (x *PowerControlResponse) String() string

type PowerManagementController

type PowerManagementController struct {
	MacAddress      string    `protobuf:"bytes,1,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	IpAddress       string    `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Vendor          PMCVendor `protobuf:"varint,3,opt,name=vendor,proto3,enum=v1.PMCVendor" json:"vendor,omitempty"`
	SerialNumber    string    `protobuf:"bytes,4,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	Model           string    `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
	Manufacturer    string    `protobuf:"bytes,6,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	PartNumber      string    `protobuf:"bytes,7,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
	FirmwareVersion string    `protobuf:"bytes,8,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"`
	HardwareVersion string    `protobuf:"bytes,9,opt,name=hardware_version,json=hardwareVersion,proto3" json:"hardware_version,omitempty"`
	// contains filtered or unexported fields
}

PowerManagementController contains PMC identity and metadata (some fields enriched from Redfish Manager).

func (*PowerManagementController) Descriptor deprecated

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

Deprecated: Use PowerManagementController.ProtoReflect.Descriptor instead.

func (*PowerManagementController) GetFirmwareVersion

func (x *PowerManagementController) GetFirmwareVersion() string

func (*PowerManagementController) GetHardwareVersion

func (x *PowerManagementController) GetHardwareVersion() string

func (*PowerManagementController) GetIpAddress

func (x *PowerManagementController) GetIpAddress() string

func (*PowerManagementController) GetMacAddress

func (x *PowerManagementController) GetMacAddress() string

func (*PowerManagementController) GetManufacturer

func (x *PowerManagementController) GetManufacturer() string

func (*PowerManagementController) GetModel

func (x *PowerManagementController) GetModel() string

func (*PowerManagementController) GetPartNumber

func (x *PowerManagementController) GetPartNumber() string

func (*PowerManagementController) GetSerialNumber

func (x *PowerManagementController) GetSerialNumber() string

func (*PowerManagementController) GetVendor

func (x *PowerManagementController) GetVendor() PMCVendor

func (*PowerManagementController) ProtoMessage

func (*PowerManagementController) ProtoMessage()

func (*PowerManagementController) ProtoReflect

func (*PowerManagementController) Reset

func (x *PowerManagementController) Reset()

func (*PowerManagementController) String

func (x *PowerManagementController) String() string

type PowerShelf

type PowerShelf struct {
	Pmc     *PowerManagementController `protobuf:"bytes,1,opt,name=pmc,proto3" json:"pmc,omitempty"`
	Chassis *Chassis                   `protobuf:"bytes,2,opt,name=chassis,proto3" json:"chassis,omitempty"`
	// TODO: system
	Psus []*PowerSupplyUnit `protobuf:"bytes,3,rep,name=psus,proto3" json:"psus,omitempty"`
	// contains filtered or unexported fields
}

func (*PowerShelf) Descriptor deprecated

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

Deprecated: Use PowerShelf.ProtoReflect.Descriptor instead.

func (*PowerShelf) GetChassis

func (x *PowerShelf) GetChassis() *Chassis

func (*PowerShelf) GetPmc

func (*PowerShelf) GetPsus

func (x *PowerShelf) GetPsus() []*PowerSupplyUnit

func (*PowerShelf) ProtoMessage

func (*PowerShelf) ProtoMessage()

func (*PowerShelf) ProtoReflect

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

func (*PowerShelf) Reset

func (x *PowerShelf) Reset()

func (*PowerShelf) String

func (x *PowerShelf) String() string

type PowerSupplyUnit

type PowerSupplyUnit struct {
	CapacityWatts   string    `protobuf:"bytes,1,opt,name=capacity_watts,json=capacityWatts,proto3" json:"capacity_watts,omitempty"`
	FirmwareVersion string    `protobuf:"bytes,2,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"`
	HardwareVersion string    `protobuf:"bytes,3,opt,name=hardware_version,json=hardwareVersion,proto3" json:"hardware_version,omitempty"`
	Id              string    `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	Manufacturer    string    `protobuf:"bytes,5,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	Model           string    `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"`
	Name            string    `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	PowerState      bool      `protobuf:"varint,8,opt,name=power_state,json=powerState,proto3" json:"power_state,omitempty"`
	Sensors         []*Sensor `protobuf:"bytes,9,rep,name=sensors,proto3" json:"sensors,omitempty"`
	SerialNumber    string    `protobuf:"bytes,10,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	// contains filtered or unexported fields
}

PowerSupplyUnit contains power supply hardware/firmware and sensor data.

func (*PowerSupplyUnit) Descriptor deprecated

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

Deprecated: Use PowerSupplyUnit.ProtoReflect.Descriptor instead.

func (*PowerSupplyUnit) GetCapacityWatts

func (x *PowerSupplyUnit) GetCapacityWatts() string

func (*PowerSupplyUnit) GetFirmwareVersion

func (x *PowerSupplyUnit) GetFirmwareVersion() string

func (*PowerSupplyUnit) GetHardwareVersion

func (x *PowerSupplyUnit) GetHardwareVersion() string

func (*PowerSupplyUnit) GetId

func (x *PowerSupplyUnit) GetId() string

func (*PowerSupplyUnit) GetManufacturer

func (x *PowerSupplyUnit) GetManufacturer() string

func (*PowerSupplyUnit) GetModel

func (x *PowerSupplyUnit) GetModel() string

func (*PowerSupplyUnit) GetName

func (x *PowerSupplyUnit) GetName() string

func (*PowerSupplyUnit) GetPowerState

func (x *PowerSupplyUnit) GetPowerState() bool

func (*PowerSupplyUnit) GetSensors

func (x *PowerSupplyUnit) GetSensors() []*Sensor

func (*PowerSupplyUnit) GetSerialNumber

func (x *PowerSupplyUnit) GetSerialNumber() string

func (*PowerSupplyUnit) ProtoMessage

func (*PowerSupplyUnit) ProtoMessage()

func (*PowerSupplyUnit) ProtoReflect

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

func (*PowerSupplyUnit) Reset

func (x *PowerSupplyUnit) Reset()

func (*PowerSupplyUnit) String

func (x *PowerSupplyUnit) String() string

type PowershelfComponent

type PowershelfComponent int32
const (
	PowershelfComponent_PMC PowershelfComponent = 0
	PowershelfComponent_PSU PowershelfComponent = 1
)

func (PowershelfComponent) Descriptor

func (PowershelfComponent) Enum

func (PowershelfComponent) EnumDescriptor deprecated

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

Deprecated: Use PowershelfComponent.Descriptor instead.

func (PowershelfComponent) Number

func (PowershelfComponent) String

func (x PowershelfComponent) String() string

func (PowershelfComponent) Type

type PowershelfManagerClient

type PowershelfManagerClient interface {
	// Registration
	// RegisterPowershelves registers the specified powershelves and persists their PMC credentials.
	RegisterPowershelves(ctx context.Context, in *RegisterPowershelvesRequest, opts ...grpc.CallOption) (*RegisterPowershelvesResponse, error)
	// Inventory Management
	// GetPowershelves returns powershelf information for all the powershelves requested.
	GetPowershelves(ctx context.Context, in *PowershelfRequest, opts ...grpc.CallOption) (*GetPowershelvesResponse, error)
	// Firmware Management
	// UpdateFirmware performs a firmware upgrade (supports dry-run).
	UpdateFirmware(ctx context.Context, in *UpdateFirmwareRequest, opts ...grpc.CallOption) (*UpdateFirmwareResponse, error)
	// GetFirmwareUpdateStatus returns the status of firmware updates for the specified PMC(s) and component(s).
	GetFirmwareUpdateStatus(ctx context.Context, in *GetFirmwareUpdateStatusRequest, opts ...grpc.CallOption) (*GetFirmwareUpdateStatusResponse, error)
	// ListAvailableFirmware lists the firmware versions that are available for a given powershelf.
	ListAvailableFirmware(ctx context.Context, in *PowershelfRequest, opts ...grpc.CallOption) (*ListAvailableFirmwareResponse, error)
	// SetDryRun configures whether the firmware manager is in Dry Run mode.
	SetDryRun(ctx context.Context, in *SetDryRunRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Power Control
	// Power OFF the rack
	PowerOff(ctx context.Context, in *PowershelfRequest, opts ...grpc.CallOption) (*PowerControlResponse, error)
	// Power ON the rack
	PowerOn(ctx context.Context, in *PowershelfRequest, opts ...grpc.CallOption) (*PowerControlResponse, error)
}

PowershelfManagerClient is the client API for PowershelfManager 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.

PowershelfManager exposes registration, inventory, firmware management, and power control RPCs for power shelves via their PMCs.

type PowershelfManagerServer

type PowershelfManagerServer interface {
	// Registration
	// RegisterPowershelves registers the specified powershelves and persists their PMC credentials.
	RegisterPowershelves(context.Context, *RegisterPowershelvesRequest) (*RegisterPowershelvesResponse, error)
	// Inventory Management
	// GetPowershelves returns powershelf information for all the powershelves requested.
	GetPowershelves(context.Context, *PowershelfRequest) (*GetPowershelvesResponse, error)
	// Firmware Management
	// UpdateFirmware performs a firmware upgrade (supports dry-run).
	UpdateFirmware(context.Context, *UpdateFirmwareRequest) (*UpdateFirmwareResponse, error)
	// GetFirmwareUpdateStatus returns the status of firmware updates for the specified PMC(s) and component(s).
	GetFirmwareUpdateStatus(context.Context, *GetFirmwareUpdateStatusRequest) (*GetFirmwareUpdateStatusResponse, error)
	// ListAvailableFirmware lists the firmware versions that are available for a given powershelf.
	ListAvailableFirmware(context.Context, *PowershelfRequest) (*ListAvailableFirmwareResponse, error)
	// SetDryRun configures whether the firmware manager is in Dry Run mode.
	SetDryRun(context.Context, *SetDryRunRequest) (*emptypb.Empty, error)
	// Power Control
	// Power OFF the rack
	PowerOff(context.Context, *PowershelfRequest) (*PowerControlResponse, error)
	// Power ON the rack
	PowerOn(context.Context, *PowershelfRequest) (*PowerControlResponse, error)
}

PowershelfManagerServer is the server API for PowershelfManager service. All implementations should embed UnimplementedPowershelfManagerServer for forward compatibility.

PowershelfManager exposes registration, inventory, firmware management, and power control RPCs for power shelves via their PMCs.

type PowershelfRequest

type PowershelfRequest struct {
	PmcMacs []string `protobuf:"bytes,1,rep,name=pmc_macs,json=pmcMacs,proto3" json:"pmc_macs,omitempty"`
	// contains filtered or unexported fields
}

func (*PowershelfRequest) Descriptor deprecated

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

Deprecated: Use PowershelfRequest.ProtoReflect.Descriptor instead.

func (*PowershelfRequest) GetPmcMacs

func (x *PowershelfRequest) GetPmcMacs() []string

func (*PowershelfRequest) ProtoMessage

func (*PowershelfRequest) ProtoMessage()

func (*PowershelfRequest) ProtoReflect

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

func (*PowershelfRequest) Reset

func (x *PowershelfRequest) Reset()

func (*PowershelfRequest) String

func (x *PowershelfRequest) String() string

type PowershelfResponse

type PowershelfResponse struct {
	PmcMacAddress string     `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	Status        StatusCode `protobuf:"varint,2,opt,name=status,proto3,enum=v1.StatusCode" json:"status,omitempty"`
	Error         string     `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*PowershelfResponse) Descriptor deprecated

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

Deprecated: Use PowershelfResponse.ProtoReflect.Descriptor instead.

func (*PowershelfResponse) GetError

func (x *PowershelfResponse) GetError() string

func (*PowershelfResponse) GetPmcMacAddress

func (x *PowershelfResponse) GetPmcMacAddress() string

func (*PowershelfResponse) GetStatus

func (x *PowershelfResponse) GetStatus() StatusCode

func (*PowershelfResponse) ProtoMessage

func (*PowershelfResponse) ProtoMessage()

func (*PowershelfResponse) ProtoReflect

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

func (*PowershelfResponse) Reset

func (x *PowershelfResponse) Reset()

func (*PowershelfResponse) String

func (x *PowershelfResponse) String() string

type RegisterPowershelfRequest

type RegisterPowershelfRequest struct {
	PmcMacAddress  string       `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	PmcIpAddress   string       `protobuf:"bytes,2,opt,name=pmc_ip_address,json=pmcIpAddress,proto3" json:"pmc_ip_address,omitempty"`
	PmcVendor      PMCVendor    `protobuf:"varint,3,opt,name=pmc_vendor,json=pmcVendor,proto3,enum=v1.PMCVendor" json:"pmc_vendor,omitempty"`
	PmcCredentials *Credentials `protobuf:"bytes,4,opt,name=pmc_credentials,json=pmcCredentials,proto3" json:"pmc_credentials,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterPowershelfRequest) Descriptor deprecated

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

Deprecated: Use RegisterPowershelfRequest.ProtoReflect.Descriptor instead.

func (*RegisterPowershelfRequest) GetPmcCredentials

func (x *RegisterPowershelfRequest) GetPmcCredentials() *Credentials

func (*RegisterPowershelfRequest) GetPmcIpAddress

func (x *RegisterPowershelfRequest) GetPmcIpAddress() string

func (*RegisterPowershelfRequest) GetPmcMacAddress

func (x *RegisterPowershelfRequest) GetPmcMacAddress() string

func (*RegisterPowershelfRequest) GetPmcVendor

func (x *RegisterPowershelfRequest) GetPmcVendor() PMCVendor

func (*RegisterPowershelfRequest) ProtoMessage

func (*RegisterPowershelfRequest) ProtoMessage()

func (*RegisterPowershelfRequest) ProtoReflect

func (*RegisterPowershelfRequest) Reset

func (x *RegisterPowershelfRequest) Reset()

func (*RegisterPowershelfRequest) String

func (x *RegisterPowershelfRequest) String() string

type RegisterPowershelfResponse

type RegisterPowershelfResponse struct {
	PmcMacAddress string                 `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	IsNew         bool                   `protobuf:"varint,2,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"`
	Created       *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
	Status        StatusCode             `protobuf:"varint,4,opt,name=status,proto3,enum=v1.StatusCode" json:"status,omitempty"`
	Error         string                 `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterPowershelfResponse) Descriptor deprecated

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

Deprecated: Use RegisterPowershelfResponse.ProtoReflect.Descriptor instead.

func (*RegisterPowershelfResponse) GetCreated

func (*RegisterPowershelfResponse) GetError

func (x *RegisterPowershelfResponse) GetError() string

func (*RegisterPowershelfResponse) GetIsNew

func (x *RegisterPowershelfResponse) GetIsNew() bool

func (*RegisterPowershelfResponse) GetPmcMacAddress

func (x *RegisterPowershelfResponse) GetPmcMacAddress() string

func (*RegisterPowershelfResponse) GetStatus

func (x *RegisterPowershelfResponse) GetStatus() StatusCode

func (*RegisterPowershelfResponse) ProtoMessage

func (*RegisterPowershelfResponse) ProtoMessage()

func (*RegisterPowershelfResponse) ProtoReflect

func (*RegisterPowershelfResponse) Reset

func (x *RegisterPowershelfResponse) Reset()

func (*RegisterPowershelfResponse) String

func (x *RegisterPowershelfResponse) String() string

type RegisterPowershelvesRequest

type RegisterPowershelvesRequest struct {
	RegistrationRequests []*RegisterPowershelfRequest `protobuf:"bytes,1,rep,name=registration_requests,json=registrationRequests,proto3" json:"registration_requests,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterPowershelvesRequest) Descriptor deprecated

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

Deprecated: Use RegisterPowershelvesRequest.ProtoReflect.Descriptor instead.

func (*RegisterPowershelvesRequest) GetRegistrationRequests

func (x *RegisterPowershelvesRequest) GetRegistrationRequests() []*RegisterPowershelfRequest

func (*RegisterPowershelvesRequest) ProtoMessage

func (*RegisterPowershelvesRequest) ProtoMessage()

func (*RegisterPowershelvesRequest) ProtoReflect

func (*RegisterPowershelvesRequest) Reset

func (x *RegisterPowershelvesRequest) Reset()

func (*RegisterPowershelvesRequest) String

func (x *RegisterPowershelvesRequest) String() string

type RegisterPowershelvesResponse

type RegisterPowershelvesResponse struct {
	Responses []*RegisterPowershelfResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterPowershelvesResponse) Descriptor deprecated

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

Deprecated: Use RegisterPowershelvesResponse.ProtoReflect.Descriptor instead.

func (*RegisterPowershelvesResponse) GetResponses

func (*RegisterPowershelvesResponse) ProtoMessage

func (*RegisterPowershelvesResponse) ProtoMessage()

func (*RegisterPowershelvesResponse) ProtoReflect

func (*RegisterPowershelvesResponse) Reset

func (x *RegisterPowershelvesResponse) Reset()

func (*RegisterPowershelvesResponse) String

type Sensor

type Sensor struct {
	Id              string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name            string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Reading         float32           `protobuf:"fixed32,3,opt,name=reading,proto3" json:"reading,omitempty"`
	ReadingRangeMax float64           `protobuf:"fixed64,4,opt,name=reading_range_max,json=readingRangeMax,proto3" json:"reading_range_max,omitempty"`
	ReadingRangeMin float32           `protobuf:"fixed32,5,opt,name=reading_range_min,json=readingRangeMin,proto3" json:"reading_range_min,omitempty"`
	ReadingType     string            `protobuf:"bytes,6,opt,name=reading_type,json=readingType,proto3" json:"reading_type,omitempty"`
	ReadingUnits    string            `protobuf:"bytes,7,opt,name=reading_units,json=readingUnits,proto3" json:"reading_units,omitempty"`
	Thresholds      *SensorThresholds `protobuf:"bytes,8,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
	// contains filtered or unexported fields
}

Sensor captures a single sensor reading, thresholds, and units.

func (*Sensor) Descriptor deprecated

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

Deprecated: Use Sensor.ProtoReflect.Descriptor instead.

func (*Sensor) GetId

func (x *Sensor) GetId() string

func (*Sensor) GetName

func (x *Sensor) GetName() string

func (*Sensor) GetReading

func (x *Sensor) GetReading() float32

func (*Sensor) GetReadingRangeMax

func (x *Sensor) GetReadingRangeMax() float64

func (*Sensor) GetReadingRangeMin

func (x *Sensor) GetReadingRangeMin() float32

func (*Sensor) GetReadingType

func (x *Sensor) GetReadingType() string

func (*Sensor) GetReadingUnits

func (x *Sensor) GetReadingUnits() string

func (*Sensor) GetThresholds

func (x *Sensor) GetThresholds() *SensorThresholds

func (*Sensor) ProtoMessage

func (*Sensor) ProtoMessage()

func (*Sensor) ProtoReflect

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

func (*Sensor) Reset

func (x *Sensor) Reset()

func (*Sensor) String

func (x *Sensor) String() string

type SensorThreshold

type SensorThreshold struct {
	Reading float32 `protobuf:"fixed32,1,opt,name=reading,proto3" json:"reading,omitempty"`
	// contains filtered or unexported fields
}

func (*SensorThreshold) Descriptor deprecated

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

Deprecated: Use SensorThreshold.ProtoReflect.Descriptor instead.

func (*SensorThreshold) GetReading

func (x *SensorThreshold) GetReading() float32

func (*SensorThreshold) ProtoMessage

func (*SensorThreshold) ProtoMessage()

func (*SensorThreshold) ProtoReflect

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

func (*SensorThreshold) Reset

func (x *SensorThreshold) Reset()

func (*SensorThreshold) String

func (x *SensorThreshold) String() string

type SensorThresholds

type SensorThresholds struct {
	LowerCaution  *SensorThreshold `protobuf:"bytes,1,opt,name=lower_caution,json=lowerCaution,proto3" json:"lower_caution,omitempty"`
	LowerCritical *SensorThreshold `protobuf:"bytes,2,opt,name=lower_critical,json=lowerCritical,proto3" json:"lower_critical,omitempty"`
	UpperCaution  *SensorThreshold `protobuf:"bytes,3,opt,name=upper_caution,json=upperCaution,proto3" json:"upper_caution,omitempty"`
	UpperCritical *SensorThreshold `protobuf:"bytes,4,opt,name=upper_critical,json=upperCritical,proto3" json:"upper_critical,omitempty"`
	// contains filtered or unexported fields
}

func (*SensorThresholds) Descriptor deprecated

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

Deprecated: Use SensorThresholds.ProtoReflect.Descriptor instead.

func (*SensorThresholds) GetLowerCaution

func (x *SensorThresholds) GetLowerCaution() *SensorThreshold

func (*SensorThresholds) GetLowerCritical

func (x *SensorThresholds) GetLowerCritical() *SensorThreshold

func (*SensorThresholds) GetUpperCaution

func (x *SensorThresholds) GetUpperCaution() *SensorThreshold

func (*SensorThresholds) GetUpperCritical

func (x *SensorThresholds) GetUpperCritical() *SensorThreshold

func (*SensorThresholds) ProtoMessage

func (*SensorThresholds) ProtoMessage()

func (*SensorThresholds) ProtoReflect

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

func (*SensorThresholds) Reset

func (x *SensorThresholds) Reset()

func (*SensorThresholds) String

func (x *SensorThresholds) String() string

type SetDryRunRequest

type SetDryRunRequest struct {
	DryRun bool `protobuf:"varint,1,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDryRunRequest) Descriptor deprecated

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

Deprecated: Use SetDryRunRequest.ProtoReflect.Descriptor instead.

func (*SetDryRunRequest) GetDryRun

func (x *SetDryRunRequest) GetDryRun() bool

func (*SetDryRunRequest) ProtoMessage

func (*SetDryRunRequest) ProtoMessage()

func (*SetDryRunRequest) ProtoReflect

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

func (*SetDryRunRequest) Reset

func (x *SetDryRunRequest) Reset()

func (*SetDryRunRequest) String

func (x *SetDryRunRequest) String() string

type StatusCode

type StatusCode int32
const (
	StatusCode_SUCCESS          StatusCode = 0
	StatusCode_INVALID_ARGUMENT StatusCode = 1
	StatusCode_INTERNAL_ERROR   StatusCode = 2
)

func (StatusCode) Descriptor

func (StatusCode) Descriptor() protoreflect.EnumDescriptor

func (StatusCode) Enum

func (x StatusCode) Enum() *StatusCode

func (StatusCode) EnumDescriptor deprecated

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

Deprecated: Use StatusCode.Descriptor instead.

func (StatusCode) Number

func (x StatusCode) Number() protoreflect.EnumNumber

func (StatusCode) String

func (x StatusCode) String() string

func (StatusCode) Type

type UnimplementedPowershelfManagerServer

type UnimplementedPowershelfManagerServer struct{}

UnimplementedPowershelfManagerServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPowershelfManagerServer) GetPowershelves

func (UnimplementedPowershelfManagerServer) ListAvailableFirmware

func (UnimplementedPowershelfManagerServer) PowerOff

func (UnimplementedPowershelfManagerServer) PowerOn

func (UnimplementedPowershelfManagerServer) RegisterPowershelves

func (UnimplementedPowershelfManagerServer) SetDryRun

func (UnimplementedPowershelfManagerServer) UpdateFirmware

type UnsafePowershelfManagerServer

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

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

type UpdateComponentFirmwareRequest

type UpdateComponentFirmwareRequest struct {
	Component PowershelfComponent `protobuf:"varint,1,opt,name=component,proto3,enum=v1.PowershelfComponent" json:"component,omitempty"`
	UpgradeTo *FirmwareVersion    `protobuf:"bytes,2,opt,name=upgradeTo,proto3" json:"upgradeTo,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateComponentFirmwareRequest) Descriptor deprecated

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

Deprecated: Use UpdateComponentFirmwareRequest.ProtoReflect.Descriptor instead.

func (*UpdateComponentFirmwareRequest) GetComponent

func (*UpdateComponentFirmwareRequest) GetUpgradeTo

func (*UpdateComponentFirmwareRequest) ProtoMessage

func (*UpdateComponentFirmwareRequest) ProtoMessage()

func (*UpdateComponentFirmwareRequest) ProtoReflect

func (*UpdateComponentFirmwareRequest) Reset

func (x *UpdateComponentFirmwareRequest) Reset()

func (*UpdateComponentFirmwareRequest) String

type UpdateComponentFirmwareResponse

type UpdateComponentFirmwareResponse struct {
	Component PowershelfComponent `protobuf:"varint,1,opt,name=component,proto3,enum=v1.PowershelfComponent" json:"component,omitempty"`
	Status    StatusCode          `protobuf:"varint,2,opt,name=status,proto3,enum=v1.StatusCode" json:"status,omitempty"`
	Error     string              `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateComponentFirmwareResponse) Descriptor deprecated

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

Deprecated: Use UpdateComponentFirmwareResponse.ProtoReflect.Descriptor instead.

func (*UpdateComponentFirmwareResponse) GetComponent

func (*UpdateComponentFirmwareResponse) GetError

func (*UpdateComponentFirmwareResponse) GetStatus

func (*UpdateComponentFirmwareResponse) ProtoMessage

func (*UpdateComponentFirmwareResponse) ProtoMessage()

func (*UpdateComponentFirmwareResponse) ProtoReflect

func (*UpdateComponentFirmwareResponse) Reset

func (*UpdateComponentFirmwareResponse) String

type UpdateFirmwareRequest

type UpdateFirmwareRequest struct {
	Upgrades []*UpdatePowershelfFirmwareRequest `protobuf:"bytes,1,rep,name=upgrades,proto3" json:"upgrades,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFirmwareRequest) Descriptor deprecated

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

Deprecated: Use UpdateFirmwareRequest.ProtoReflect.Descriptor instead.

func (*UpdateFirmwareRequest) GetUpgrades

func (*UpdateFirmwareRequest) ProtoMessage

func (*UpdateFirmwareRequest) ProtoMessage()

func (*UpdateFirmwareRequest) ProtoReflect

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

func (*UpdateFirmwareRequest) Reset

func (x *UpdateFirmwareRequest) Reset()

func (*UpdateFirmwareRequest) String

func (x *UpdateFirmwareRequest) String() string

type UpdateFirmwareResponse

type UpdateFirmwareResponse struct {
	Responses []*UpdatePowershelfFirmwareResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFirmwareResponse) Descriptor deprecated

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

Deprecated: Use UpdateFirmwareResponse.ProtoReflect.Descriptor instead.

func (*UpdateFirmwareResponse) GetResponses

func (*UpdateFirmwareResponse) ProtoMessage

func (*UpdateFirmwareResponse) ProtoMessage()

func (*UpdateFirmwareResponse) ProtoReflect

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

func (*UpdateFirmwareResponse) Reset

func (x *UpdateFirmwareResponse) Reset()

func (*UpdateFirmwareResponse) String

func (x *UpdateFirmwareResponse) String() string

type UpdatePowershelfFirmwareRequest

type UpdatePowershelfFirmwareRequest struct {
	PmcMacAddress string                            `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	Components    []*UpdateComponentFirmwareRequest `protobuf:"bytes,2,rep,name=components,proto3" json:"components,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePowershelfFirmwareRequest) Descriptor deprecated

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

Deprecated: Use UpdatePowershelfFirmwareRequest.ProtoReflect.Descriptor instead.

func (*UpdatePowershelfFirmwareRequest) GetComponents

func (*UpdatePowershelfFirmwareRequest) GetPmcMacAddress

func (x *UpdatePowershelfFirmwareRequest) GetPmcMacAddress() string

func (*UpdatePowershelfFirmwareRequest) ProtoMessage

func (*UpdatePowershelfFirmwareRequest) ProtoMessage()

func (*UpdatePowershelfFirmwareRequest) ProtoReflect

func (*UpdatePowershelfFirmwareRequest) Reset

func (*UpdatePowershelfFirmwareRequest) String

type UpdatePowershelfFirmwareResponse

type UpdatePowershelfFirmwareResponse struct {
	PmcMacAddress string                             `protobuf:"bytes,1,opt,name=pmc_mac_address,json=pmcMacAddress,proto3" json:"pmc_mac_address,omitempty"`
	Components    []*UpdateComponentFirmwareResponse `protobuf:"bytes,2,rep,name=components,proto3" json:"components,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePowershelfFirmwareResponse) Descriptor deprecated

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

Deprecated: Use UpdatePowershelfFirmwareResponse.ProtoReflect.Descriptor instead.

func (*UpdatePowershelfFirmwareResponse) GetComponents

func (*UpdatePowershelfFirmwareResponse) GetPmcMacAddress

func (x *UpdatePowershelfFirmwareResponse) GetPmcMacAddress() string

func (*UpdatePowershelfFirmwareResponse) ProtoMessage

func (*UpdatePowershelfFirmwareResponse) ProtoMessage()

func (*UpdatePowershelfFirmwareResponse) ProtoReflect

func (*UpdatePowershelfFirmwareResponse) Reset

func (*UpdatePowershelfFirmwareResponse) String

Jump to

Keyboard shortcuts

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