Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterNVSwitchManagerServer(s grpc.ServiceRegistrar, srv NVSwitchManagerServer)
- type BMCInfo
- func (*BMCInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BMCInfo) GetFirmwareVersion() string
- func (x *BMCInfo) GetIpAddress() string
- func (x *BMCInfo) GetMacAddress() string
- func (x *BMCInfo) GetManufacturer() string
- func (x *BMCInfo) GetModel() string
- func (x *BMCInfo) GetPartNumber() string
- func (x *BMCInfo) GetPort() int32
- func (x *BMCInfo) GetSerialNumber() string
- func (*BMCInfo) ProtoMessage()
- func (x *BMCInfo) ProtoReflect() protoreflect.Message
- func (x *BMCInfo) Reset()
- func (x *BMCInfo) String() string
- type CancelUpdateRequest
- func (*CancelUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelUpdateRequest) GetUpdateId() string
- func (*CancelUpdateRequest) ProtoMessage()
- func (x *CancelUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *CancelUpdateRequest) Reset()
- func (x *CancelUpdateRequest) String() string
- type CancelUpdateResponse
- func (*CancelUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CancelUpdateResponse) GetMessage() string
- func (x *CancelUpdateResponse) GetSuccess() bool
- func (*CancelUpdateResponse) ProtoMessage()
- func (x *CancelUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *CancelUpdateResponse) Reset()
- func (x *CancelUpdateResponse) String() string
- type Chassis
- func (*Chassis) Descriptor() ([]byte, []int)deprecated
- func (x *Chassis) GetManufacturer() string
- func (x *Chassis) GetModel() string
- func (x *Chassis) GetSerialNumber() string
- func (*Chassis) ProtoMessage()
- func (x *Chassis) ProtoReflect() protoreflect.Message
- func (x *Chassis) Reset()
- func (x *Chassis) String() string
- type ComponentInfo
- func (*ComponentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentInfo) GetName() string
- func (x *ComponentInfo) GetStrategy() string
- func (x *ComponentInfo) GetVersion() string
- func (*ComponentInfo) ProtoMessage()
- func (x *ComponentInfo) ProtoReflect() protoreflect.Message
- func (x *ComponentInfo) Reset()
- func (x *ComponentInfo) String() string
- type Credentials
- func (*Credentials) Descriptor() ([]byte, []int)deprecated
- func (x *Credentials) GetPassword() string
- func (x *Credentials) GetUsername() string
- func (*Credentials) ProtoMessage()
- func (x *Credentials) ProtoReflect() protoreflect.Message
- func (x *Credentials) Reset()
- func (x *Credentials) String() string
- type FirmwareBundle
- func (*FirmwareBundle) Descriptor() ([]byte, []int)deprecated
- func (x *FirmwareBundle) GetComponents() []*ComponentInfo
- func (x *FirmwareBundle) GetDescription() string
- func (x *FirmwareBundle) GetVersion() string
- func (*FirmwareBundle) ProtoMessage()
- func (x *FirmwareBundle) ProtoReflect() protoreflect.Message
- func (x *FirmwareBundle) Reset()
- func (x *FirmwareBundle) String() string
- type FirmwareUpdateInfo
- func (*FirmwareUpdateInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FirmwareUpdateInfo) GetBundleUpdateId() string
- func (x *FirmwareUpdateInfo) GetBundleVersion() string
- func (x *FirmwareUpdateInfo) GetComponent() NVSwitchComponent
- func (x *FirmwareUpdateInfo) GetCreatedAt() *timestamppb.Timestamp
- func (x *FirmwareUpdateInfo) GetErrorMessage() string
- func (x *FirmwareUpdateInfo) GetId() string
- func (x *FirmwareUpdateInfo) GetPredecessorId() string
- func (x *FirmwareUpdateInfo) GetSequenceOrder() int32
- func (x *FirmwareUpdateInfo) GetState() UpdateState
- func (x *FirmwareUpdateInfo) GetStrategy() UpdateStrategy
- func (x *FirmwareUpdateInfo) GetSwitchUuid() string
- func (x *FirmwareUpdateInfo) GetUpdatedAt() *timestamppb.Timestamp
- func (x *FirmwareUpdateInfo) GetVersionActual() string
- func (x *FirmwareUpdateInfo) GetVersionFrom() string
- func (x *FirmwareUpdateInfo) GetVersionTo() string
- func (*FirmwareUpdateInfo) ProtoMessage()
- func (x *FirmwareUpdateInfo) ProtoReflect() protoreflect.Message
- func (x *FirmwareUpdateInfo) Reset()
- func (x *FirmwareUpdateInfo) String() string
- type GetAllUpdatesResponse
- func (*GetAllUpdatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllUpdatesResponse) GetUpdates() []*FirmwareUpdateInfo
- func (*GetAllUpdatesResponse) ProtoMessage()
- func (x *GetAllUpdatesResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllUpdatesResponse) Reset()
- func (x *GetAllUpdatesResponse) String() string
- type GetNVSwitchesResponse
- func (*GetNVSwitchesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNVSwitchesResponse) GetNvswitches() []*NVSwitchTray
- func (*GetNVSwitchesResponse) ProtoMessage()
- func (x *GetNVSwitchesResponse) ProtoReflect() protoreflect.Message
- func (x *GetNVSwitchesResponse) Reset()
- func (x *GetNVSwitchesResponse) String() string
- type GetUpdateRequest
- type GetUpdateResponse
- func (*GetUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUpdateResponse) GetUpdate() *FirmwareUpdateInfo
- func (*GetUpdateResponse) ProtoMessage()
- func (x *GetUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *GetUpdateResponse) Reset()
- func (x *GetUpdateResponse) String() string
- type GetUpdatesForSwitchRequest
- func (*GetUpdatesForSwitchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUpdatesForSwitchRequest) GetSwitchUuid() string
- func (*GetUpdatesForSwitchRequest) ProtoMessage()
- func (x *GetUpdatesForSwitchRequest) ProtoReflect() protoreflect.Message
- func (x *GetUpdatesForSwitchRequest) Reset()
- func (x *GetUpdatesForSwitchRequest) String() string
- type GetUpdatesForSwitchResponse
- func (*GetUpdatesForSwitchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUpdatesForSwitchResponse) GetUpdates() []*FirmwareUpdateInfo
- func (*GetUpdatesForSwitchResponse) ProtoMessage()
- func (x *GetUpdatesForSwitchResponse) ProtoReflect() protoreflect.Message
- func (x *GetUpdatesForSwitchResponse) Reset()
- func (x *GetUpdatesForSwitchResponse) String() string
- type ListBundlesResponse
- func (*ListBundlesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBundlesResponse) GetBundles() []*FirmwareBundle
- func (*ListBundlesResponse) ProtoMessage()
- func (x *ListBundlesResponse) ProtoReflect() protoreflect.Message
- func (x *ListBundlesResponse) Reset()
- func (x *ListBundlesResponse) String() string
- type NVOSInfo
- func (*NVOSInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NVOSInfo) GetIpAddress() string
- func (x *NVOSInfo) GetMacAddress() string
- func (x *NVOSInfo) GetPort() int32
- func (x *NVOSInfo) GetVersion() string
- func (*NVOSInfo) ProtoMessage()
- func (x *NVOSInfo) ProtoReflect() protoreflect.Message
- func (x *NVOSInfo) Reset()
- func (x *NVOSInfo) String() string
- type NVSwitchComponent
- func (NVSwitchComponent) Descriptor() protoreflect.EnumDescriptor
- func (x NVSwitchComponent) Enum() *NVSwitchComponent
- func (NVSwitchComponent) EnumDescriptor() ([]byte, []int)deprecated
- func (x NVSwitchComponent) Number() protoreflect.EnumNumber
- func (x NVSwitchComponent) String() string
- func (NVSwitchComponent) Type() protoreflect.EnumType
- type NVSwitchManagerClient
- type NVSwitchManagerServer
- type NVSwitchRequest
- type NVSwitchResponse
- func (*NVSwitchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NVSwitchResponse) GetError() string
- func (x *NVSwitchResponse) GetStatus() StatusCode
- func (x *NVSwitchResponse) GetUuid() string
- func (*NVSwitchResponse) ProtoMessage()
- func (x *NVSwitchResponse) ProtoReflect() protoreflect.Message
- func (x *NVSwitchResponse) Reset()
- func (x *NVSwitchResponse) String() string
- type NVSwitchTray
- func (*NVSwitchTray) Descriptor() ([]byte, []int)deprecated
- func (x *NVSwitchTray) GetBmc() *BMCInfo
- func (x *NVSwitchTray) GetChassis() *Chassis
- func (x *NVSwitchTray) GetCpldVersion() string
- func (x *NVSwitchTray) GetNvos() *NVOSInfo
- func (x *NVSwitchTray) GetRackId() string
- func (x *NVSwitchTray) GetUuid() string
- func (x *NVSwitchTray) GetVendor() Vendor
- func (*NVSwitchTray) ProtoMessage()
- func (x *NVSwitchTray) ProtoReflect() protoreflect.Message
- func (x *NVSwitchTray) Reset()
- func (x *NVSwitchTray) String() string
- type PowerAction
- func (PowerAction) Descriptor() protoreflect.EnumDescriptor
- func (x PowerAction) Enum() *PowerAction
- func (PowerAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x PowerAction) Number() protoreflect.EnumNumber
- func (x PowerAction) String() string
- func (PowerAction) Type() protoreflect.EnumType
- type PowerControlRequest
- func (*PowerControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PowerControlRequest) GetAction() PowerAction
- func (x *PowerControlRequest) GetUuids() []string
- func (*PowerControlRequest) ProtoMessage()
- func (x *PowerControlRequest) ProtoReflect() protoreflect.Message
- func (x *PowerControlRequest) Reset()
- func (x *PowerControlRequest) String() string
- type PowerControlResponse
- func (*PowerControlResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PowerControlResponse) GetResponses() []*NVSwitchResponse
- func (*PowerControlResponse) ProtoMessage()
- func (x *PowerControlResponse) ProtoReflect() protoreflect.Message
- func (x *PowerControlResponse) Reset()
- func (x *PowerControlResponse) String() string
- type QueueUpdateRequest
- func (*QueueUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueUpdateRequest) GetBundleVersion() string
- func (x *QueueUpdateRequest) GetComponents() []NVSwitchComponent
- func (x *QueueUpdateRequest) GetSwitchUuid() string
- func (*QueueUpdateRequest) ProtoMessage()
- func (x *QueueUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *QueueUpdateRequest) Reset()
- func (x *QueueUpdateRequest) String() string
- type QueueUpdateResponse
- func (*QueueUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueueUpdateResponse) GetUpdates() []*FirmwareUpdateInfo
- func (*QueueUpdateResponse) ProtoMessage()
- func (x *QueueUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *QueueUpdateResponse) Reset()
- func (x *QueueUpdateResponse) String() string
- type QueueUpdateResult
- func (*QueueUpdateResult) Descriptor() ([]byte, []int)deprecated
- func (x *QueueUpdateResult) GetError() string
- func (x *QueueUpdateResult) GetStatus() StatusCode
- func (x *QueueUpdateResult) GetSwitchUuid() string
- func (x *QueueUpdateResult) GetUpdates() []*FirmwareUpdateInfo
- func (*QueueUpdateResult) ProtoMessage()
- func (x *QueueUpdateResult) ProtoReflect() protoreflect.Message
- func (x *QueueUpdateResult) Reset()
- func (x *QueueUpdateResult) String() string
- type QueueUpdatesRequest
- func (*QueueUpdatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueueUpdatesRequest) GetBundleVersion() string
- func (x *QueueUpdatesRequest) GetComponents() []NVSwitchComponent
- func (x *QueueUpdatesRequest) GetSwitchUuids() []string
- func (*QueueUpdatesRequest) ProtoMessage()
- func (x *QueueUpdatesRequest) ProtoReflect() protoreflect.Message
- func (x *QueueUpdatesRequest) Reset()
- func (x *QueueUpdatesRequest) String() string
- type QueueUpdatesResponse
- func (*QueueUpdatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueueUpdatesResponse) GetResults() []*QueueUpdateResult
- func (*QueueUpdatesResponse) ProtoMessage()
- func (x *QueueUpdatesResponse) ProtoReflect() protoreflect.Message
- func (x *QueueUpdatesResponse) Reset()
- func (x *QueueUpdatesResponse) String() string
- type RegisterNVSwitchRequest
- func (*RegisterNVSwitchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNVSwitchRequest) GetBmc() *Subsystem
- func (x *RegisterNVSwitchRequest) GetNvos() *Subsystem
- func (x *RegisterNVSwitchRequest) GetRackId() string
- func (x *RegisterNVSwitchRequest) GetVendor() Vendor
- func (*RegisterNVSwitchRequest) ProtoMessage()
- func (x *RegisterNVSwitchRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterNVSwitchRequest) Reset()
- func (x *RegisterNVSwitchRequest) String() string
- type RegisterNVSwitchResponse
- func (*RegisterNVSwitchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNVSwitchResponse) GetCreated() *timestamppb.Timestamp
- func (x *RegisterNVSwitchResponse) GetError() string
- func (x *RegisterNVSwitchResponse) GetIsNew() bool
- func (x *RegisterNVSwitchResponse) GetStatus() StatusCode
- func (x *RegisterNVSwitchResponse) GetUuid() string
- func (*RegisterNVSwitchResponse) ProtoMessage()
- func (x *RegisterNVSwitchResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterNVSwitchResponse) Reset()
- func (x *RegisterNVSwitchResponse) String() string
- type RegisterNVSwitchesRequest
- func (*RegisterNVSwitchesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNVSwitchesRequest) GetRegistrationRequests() []*RegisterNVSwitchRequest
- func (*RegisterNVSwitchesRequest) ProtoMessage()
- func (x *RegisterNVSwitchesRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterNVSwitchesRequest) Reset()
- func (x *RegisterNVSwitchesRequest) String() string
- type RegisterNVSwitchesResponse
- func (*RegisterNVSwitchesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNVSwitchesResponse) GetResponses() []*RegisterNVSwitchResponse
- func (*RegisterNVSwitchesResponse) ProtoMessage()
- func (x *RegisterNVSwitchesResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterNVSwitchesResponse) Reset()
- func (x *RegisterNVSwitchesResponse) String() string
- type StatusCode
- type Subsystem
- func (*Subsystem) Descriptor() ([]byte, []int)deprecated
- func (x *Subsystem) GetCredentials() *Credentials
- func (x *Subsystem) GetIpAddress() string
- func (x *Subsystem) GetMacAddress() string
- func (x *Subsystem) GetPort() int32
- func (*Subsystem) ProtoMessage()
- func (x *Subsystem) ProtoReflect() protoreflect.Message
- func (x *Subsystem) Reset()
- func (x *Subsystem) String() string
- type UnimplementedNVSwitchManagerServer
- func (UnimplementedNVSwitchManagerServer) CancelUpdate(context.Context, *CancelUpdateRequest) (*CancelUpdateResponse, error)
- func (UnimplementedNVSwitchManagerServer) GetAllUpdates(context.Context, *emptypb.Empty) (*GetAllUpdatesResponse, error)
- func (UnimplementedNVSwitchManagerServer) GetNVSwitches(context.Context, *NVSwitchRequest) (*GetNVSwitchesResponse, error)
- func (UnimplementedNVSwitchManagerServer) GetUpdate(context.Context, *GetUpdateRequest) (*GetUpdateResponse, error)
- func (UnimplementedNVSwitchManagerServer) GetUpdatesForSwitch(context.Context, *GetUpdatesForSwitchRequest) (*GetUpdatesForSwitchResponse, error)
- func (UnimplementedNVSwitchManagerServer) ListBundles(context.Context, *emptypb.Empty) (*ListBundlesResponse, error)
- func (UnimplementedNVSwitchManagerServer) PowerControl(context.Context, *PowerControlRequest) (*PowerControlResponse, error)
- func (UnimplementedNVSwitchManagerServer) QueueUpdate(context.Context, *QueueUpdateRequest) (*QueueUpdateResponse, error)
- func (UnimplementedNVSwitchManagerServer) QueueUpdates(context.Context, *QueueUpdatesRequest) (*QueueUpdatesResponse, error)
- func (UnimplementedNVSwitchManagerServer) RegisterNVSwitches(context.Context, *RegisterNVSwitchesRequest) (*RegisterNVSwitchesResponse, error)
- type UnsafeNVSwitchManagerServer
- type UpdateState
- func (UpdateState) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateState) Enum() *UpdateState
- func (UpdateState) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateState) Number() protoreflect.EnumNumber
- func (x UpdateState) String() string
- func (UpdateState) Type() protoreflect.EnumType
- type UpdateStrategy
- func (UpdateStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateStrategy) Enum() *UpdateStrategy
- func (UpdateStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateStrategy) Number() protoreflect.EnumNumber
- func (x UpdateStrategy) String() string
- func (UpdateStrategy) Type() protoreflect.EnumType
- type Vendor
Constants ¶
const ( NVSwitchManager_RegisterNVSwitches_FullMethodName = "/nsm.v1.NVSwitchManager/RegisterNVSwitches" NVSwitchManager_GetNVSwitches_FullMethodName = "/nsm.v1.NVSwitchManager/GetNVSwitches" NVSwitchManager_ListBundles_FullMethodName = "/nsm.v1.NVSwitchManager/ListBundles" NVSwitchManager_QueueUpdate_FullMethodName = "/nsm.v1.NVSwitchManager/QueueUpdate" NVSwitchManager_QueueUpdates_FullMethodName = "/nsm.v1.NVSwitchManager/QueueUpdates" NVSwitchManager_GetUpdate_FullMethodName = "/nsm.v1.NVSwitchManager/GetUpdate" NVSwitchManager_GetUpdatesForSwitch_FullMethodName = "/nsm.v1.NVSwitchManager/GetUpdatesForSwitch" NVSwitchManager_GetAllUpdates_FullMethodName = "/nsm.v1.NVSwitchManager/GetAllUpdates" NVSwitchManager_CancelUpdate_FullMethodName = "/nsm.v1.NVSwitchManager/CancelUpdate" NVSwitchManager_PowerControl_FullMethodName = "/nsm.v1.NVSwitchManager/PowerControl" )
Variables ¶
var ( Vendor_name = map[int32]string{ 0: "VENDOR_UNKNOWN", 1: "VENDOR_NVIDIA", } Vendor_value = map[string]int32{ "VENDOR_UNKNOWN": 0, "VENDOR_NVIDIA": 1, } )
Enum value maps for Vendor.
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.
var ( PowerAction_name = map[int32]string{ 0: "POWER_ACTION_UNKNOWN", 1: "POWER_ACTION_FORCE_OFF", 2: "POWER_ACTION_POWER_CYCLE", 3: "POWER_ACTION_GRACEFUL_SHUTDOWN", 4: "POWER_ACTION_ON", 5: "POWER_ACTION_FORCE_ON", 6: "POWER_ACTION_GRACEFUL_RESTART", 7: "POWER_ACTION_FORCE_RESTART", } PowerAction_value = map[string]int32{ "POWER_ACTION_UNKNOWN": 0, "POWER_ACTION_FORCE_OFF": 1, "POWER_ACTION_POWER_CYCLE": 2, "POWER_ACTION_GRACEFUL_SHUTDOWN": 3, "POWER_ACTION_ON": 4, "POWER_ACTION_FORCE_ON": 5, "POWER_ACTION_GRACEFUL_RESTART": 6, "POWER_ACTION_FORCE_RESTART": 7, } )
Enum value maps for PowerAction.
var ( NVSwitchComponent_name = map[int32]string{ 0: "NVSWITCH_COMPONENT_UNKNOWN", 1: "NVSWITCH_COMPONENT_BMC", 2: "NVSWITCH_COMPONENT_CPLD", 3: "NVSWITCH_COMPONENT_BIOS", 4: "NVSWITCH_COMPONENT_NVOS", } NVSwitchComponent_value = map[string]int32{ "NVSWITCH_COMPONENT_UNKNOWN": 0, "NVSWITCH_COMPONENT_BMC": 1, "NVSWITCH_COMPONENT_CPLD": 2, "NVSWITCH_COMPONENT_BIOS": 3, "NVSWITCH_COMPONENT_NVOS": 4, } )
Enum value maps for NVSwitchComponent.
var ( UpdateStrategy_name = map[int32]string{ 0: "UPDATE_STRATEGY_UNKNOWN", 1: "UPDATE_STRATEGY_SCRIPT", 2: "UPDATE_STRATEGY_SSH", 3: "UPDATE_STRATEGY_REDFISH", } UpdateStrategy_value = map[string]int32{ "UPDATE_STRATEGY_UNKNOWN": 0, "UPDATE_STRATEGY_SCRIPT": 1, "UPDATE_STRATEGY_SSH": 2, "UPDATE_STRATEGY_REDFISH": 3, } )
Enum value maps for UpdateStrategy.
var ( UpdateState_name = map[int32]string{ 0: "UPDATE_STATE_UNKNOWN", 1: "UPDATE_STATE_QUEUED", 2: "UPDATE_STATE_POWER_CYCLE", 3: "UPDATE_STATE_WAIT_REACHABLE", 4: "UPDATE_STATE_COPY", 5: "UPDATE_STATE_UPLOAD", 6: "UPDATE_STATE_INSTALL", 7: "UPDATE_STATE_POLL_COMPLETION", 8: "UPDATE_STATE_VERIFY", 9: "UPDATE_STATE_CLEANUP", 10: "UPDATE_STATE_COMPLETED", 11: "UPDATE_STATE_FAILED", 12: "UPDATE_STATE_CANCELLED", } UpdateState_value = map[string]int32{ "UPDATE_STATE_UNKNOWN": 0, "UPDATE_STATE_QUEUED": 1, "UPDATE_STATE_POWER_CYCLE": 2, "UPDATE_STATE_WAIT_REACHABLE": 3, "UPDATE_STATE_COPY": 4, "UPDATE_STATE_UPLOAD": 5, "UPDATE_STATE_INSTALL": 6, "UPDATE_STATE_POLL_COMPLETION": 7, "UPDATE_STATE_VERIFY": 8, "UPDATE_STATE_CLEANUP": 9, "UPDATE_STATE_COMPLETED": 10, "UPDATE_STATE_FAILED": 11, "UPDATE_STATE_CANCELLED": 12, } )
Enum value maps for UpdateState.
var File_nvswitch_manager_proto protoreflect.FileDescriptor
var NVSwitchManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nsm.v1.NVSwitchManager", HandlerType: (*NVSwitchManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterNVSwitches", Handler: _NVSwitchManager_RegisterNVSwitches_Handler, }, { MethodName: "GetNVSwitches", Handler: _NVSwitchManager_GetNVSwitches_Handler, }, { MethodName: "ListBundles", Handler: _NVSwitchManager_ListBundles_Handler, }, { MethodName: "QueueUpdate", Handler: _NVSwitchManager_QueueUpdate_Handler, }, { MethodName: "QueueUpdates", Handler: _NVSwitchManager_QueueUpdates_Handler, }, { MethodName: "GetUpdate", Handler: _NVSwitchManager_GetUpdate_Handler, }, { MethodName: "GetUpdatesForSwitch", Handler: _NVSwitchManager_GetUpdatesForSwitch_Handler, }, { MethodName: "GetAllUpdates", Handler: _NVSwitchManager_GetAllUpdates_Handler, }, { MethodName: "CancelUpdate", Handler: _NVSwitchManager_CancelUpdate_Handler, }, { MethodName: "PowerControl", Handler: _NVSwitchManager_PowerControl_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nvswitch-manager.proto", }
NVSwitchManager_ServiceDesc is the grpc.ServiceDesc for NVSwitchManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNVSwitchManagerServer ¶
func RegisterNVSwitchManagerServer(s grpc.ServiceRegistrar, srv NVSwitchManagerServer)
Types ¶
type BMCInfo ¶
type BMCInfo 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"`
SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"`
Manufacturer string `protobuf:"bytes,5,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
PartNumber string `protobuf:"bytes,6,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
FirmwareVersion string `protobuf:"bytes,7,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"`
Port int32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"` // Custom port (0 = default 443)
// contains filtered or unexported fields
}
BMCInfo contains BMC identity and metadata enriched from Redfish.
func (*BMCInfo) Descriptor
deprecated
func (*BMCInfo) GetFirmwareVersion ¶
func (*BMCInfo) GetIpAddress ¶
func (*BMCInfo) GetMacAddress ¶
func (*BMCInfo) GetManufacturer ¶
func (*BMCInfo) GetPartNumber ¶
func (*BMCInfo) GetSerialNumber ¶
func (*BMCInfo) ProtoMessage ¶
func (*BMCInfo) ProtoMessage()
func (*BMCInfo) ProtoReflect ¶
func (x *BMCInfo) ProtoReflect() protoreflect.Message
type CancelUpdateRequest ¶
type CancelUpdateRequest struct {
UpdateId string `protobuf:"bytes,1,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"`
// contains filtered or unexported fields
}
CancelUpdateRequest cancels an update.
func (*CancelUpdateRequest) Descriptor
deprecated
func (*CancelUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelUpdateRequest.ProtoReflect.Descriptor instead.
func (*CancelUpdateRequest) GetUpdateId ¶
func (x *CancelUpdateRequest) GetUpdateId() string
func (*CancelUpdateRequest) ProtoMessage ¶
func (*CancelUpdateRequest) ProtoMessage()
func (*CancelUpdateRequest) ProtoReflect ¶
func (x *CancelUpdateRequest) ProtoReflect() protoreflect.Message
func (*CancelUpdateRequest) Reset ¶
func (x *CancelUpdateRequest) Reset()
func (*CancelUpdateRequest) String ¶
func (x *CancelUpdateRequest) String() string
type CancelUpdateResponse ¶
type CancelUpdateResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
CancelUpdateResponse confirms cancellation.
func (*CancelUpdateResponse) Descriptor
deprecated
func (*CancelUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelUpdateResponse.ProtoReflect.Descriptor instead.
func (*CancelUpdateResponse) GetMessage ¶
func (x *CancelUpdateResponse) GetMessage() string
func (*CancelUpdateResponse) GetSuccess ¶
func (x *CancelUpdateResponse) GetSuccess() bool
func (*CancelUpdateResponse) ProtoMessage ¶
func (*CancelUpdateResponse) ProtoMessage()
func (*CancelUpdateResponse) ProtoReflect ¶
func (x *CancelUpdateResponse) ProtoReflect() protoreflect.Message
func (*CancelUpdateResponse) Reset ¶
func (x *CancelUpdateResponse) Reset()
func (*CancelUpdateResponse) String ¶
func (x *CancelUpdateResponse) 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 from Redfish.
func (*Chassis) Descriptor
deprecated
func (*Chassis) GetManufacturer ¶
func (*Chassis) GetSerialNumber ¶
func (*Chassis) ProtoMessage ¶
func (*Chassis) ProtoMessage()
func (*Chassis) ProtoReflect ¶
func (x *Chassis) ProtoReflect() protoreflect.Message
type ComponentInfo ¶
type ComponentInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Component name (firmware, cpld, nvos)
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Component version
Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"` // Update strategy (redfish, ssh, script)
// contains filtered or unexported fields
}
ComponentInfo describes a component within a bundle.
func (*ComponentInfo) Descriptor
deprecated
func (*ComponentInfo) Descriptor() ([]byte, []int)
Deprecated: Use ComponentInfo.ProtoReflect.Descriptor instead.
func (*ComponentInfo) GetName ¶
func (x *ComponentInfo) GetName() string
func (*ComponentInfo) GetStrategy ¶
func (x *ComponentInfo) GetStrategy() string
func (*ComponentInfo) GetVersion ¶
func (x *ComponentInfo) GetVersion() string
func (*ComponentInfo) ProtoMessage ¶
func (*ComponentInfo) ProtoMessage()
func (*ComponentInfo) ProtoReflect ¶
func (x *ComponentInfo) ProtoReflect() protoreflect.Message
func (*ComponentInfo) Reset ¶
func (x *ComponentInfo) Reset()
func (*ComponentInfo) String ¶
func (x *ComponentInfo) 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 FirmwareBundle ¶
type FirmwareBundle struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Unique bundle version identifier
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Components []*ComponentInfo `protobuf:"bytes,3,rep,name=components,proto3" json:"components,omitempty"`
// contains filtered or unexported fields
}
FirmwareBundle represents a firmware package with multiple components.
func (*FirmwareBundle) Descriptor
deprecated
func (*FirmwareBundle) Descriptor() ([]byte, []int)
Deprecated: Use FirmwareBundle.ProtoReflect.Descriptor instead.
func (*FirmwareBundle) GetComponents ¶
func (x *FirmwareBundle) GetComponents() []*ComponentInfo
func (*FirmwareBundle) GetDescription ¶
func (x *FirmwareBundle) GetDescription() string
func (*FirmwareBundle) GetVersion ¶
func (x *FirmwareBundle) GetVersion() string
func (*FirmwareBundle) ProtoMessage ¶
func (*FirmwareBundle) ProtoMessage()
func (*FirmwareBundle) ProtoReflect ¶
func (x *FirmwareBundle) ProtoReflect() protoreflect.Message
func (*FirmwareBundle) Reset ¶
func (x *FirmwareBundle) Reset()
func (*FirmwareBundle) String ¶
func (x *FirmwareBundle) String() string
type FirmwareUpdateInfo ¶
type FirmwareUpdateInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique update ID (UUID)
SwitchUuid string `protobuf:"bytes,2,opt,name=switch_uuid,json=switchUuid,proto3" json:"switch_uuid,omitempty"`
Component NVSwitchComponent `protobuf:"varint,3,opt,name=component,proto3,enum=nsm.v1.NVSwitchComponent" json:"component,omitempty"`
BundleVersion string `protobuf:"bytes,4,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"`
Strategy UpdateStrategy `protobuf:"varint,5,opt,name=strategy,proto3,enum=nsm.v1.UpdateStrategy" json:"strategy,omitempty"`
State UpdateState `protobuf:"varint,6,opt,name=state,proto3,enum=nsm.v1.UpdateState" json:"state,omitempty"`
VersionFrom string `protobuf:"bytes,7,opt,name=version_from,json=versionFrom,proto3" json:"version_from,omitempty"`
VersionTo string `protobuf:"bytes,8,opt,name=version_to,json=versionTo,proto3" json:"version_to,omitempty"`
VersionActual string `protobuf:"bytes,9,opt,name=version_actual,json=versionActual,proto3" json:"version_actual,omitempty"` // Actual version after update
ErrorMessage string `protobuf:"bytes,10,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// Sequencing fields for multi-component updates
BundleUpdateId string `protobuf:"bytes,13,opt,name=bundle_update_id,json=bundleUpdateId,proto3" json:"bundle_update_id,omitempty"` // Groups related updates (UUID, optional)
SequenceOrder int32 `protobuf:"varint,14,opt,name=sequence_order,json=sequenceOrder,proto3" json:"sequence_order,omitempty"` // Order within bundle update (1, 2, 3...)
PredecessorId string `protobuf:"bytes,15,opt,name=predecessor_id,json=predecessorId,proto3" json:"predecessor_id,omitempty"` // Must complete before this one starts (UUID, optional)
// contains filtered or unexported fields
}
FirmwareUpdateInfo contains full details of a firmware update operation.
func (*FirmwareUpdateInfo) Descriptor
deprecated
func (*FirmwareUpdateInfo) Descriptor() ([]byte, []int)
Deprecated: Use FirmwareUpdateInfo.ProtoReflect.Descriptor instead.
func (*FirmwareUpdateInfo) GetBundleUpdateId ¶
func (x *FirmwareUpdateInfo) GetBundleUpdateId() string
func (*FirmwareUpdateInfo) GetBundleVersion ¶
func (x *FirmwareUpdateInfo) GetBundleVersion() string
func (*FirmwareUpdateInfo) GetComponent ¶
func (x *FirmwareUpdateInfo) GetComponent() NVSwitchComponent
func (*FirmwareUpdateInfo) GetCreatedAt ¶
func (x *FirmwareUpdateInfo) GetCreatedAt() *timestamppb.Timestamp
func (*FirmwareUpdateInfo) GetErrorMessage ¶
func (x *FirmwareUpdateInfo) GetErrorMessage() string
func (*FirmwareUpdateInfo) GetId ¶
func (x *FirmwareUpdateInfo) GetId() string
func (*FirmwareUpdateInfo) GetPredecessorId ¶
func (x *FirmwareUpdateInfo) GetPredecessorId() string
func (*FirmwareUpdateInfo) GetSequenceOrder ¶
func (x *FirmwareUpdateInfo) GetSequenceOrder() int32
func (*FirmwareUpdateInfo) GetState ¶
func (x *FirmwareUpdateInfo) GetState() UpdateState
func (*FirmwareUpdateInfo) GetStrategy ¶
func (x *FirmwareUpdateInfo) GetStrategy() UpdateStrategy
func (*FirmwareUpdateInfo) GetSwitchUuid ¶
func (x *FirmwareUpdateInfo) GetSwitchUuid() string
func (*FirmwareUpdateInfo) GetUpdatedAt ¶
func (x *FirmwareUpdateInfo) GetUpdatedAt() *timestamppb.Timestamp
func (*FirmwareUpdateInfo) GetVersionActual ¶
func (x *FirmwareUpdateInfo) GetVersionActual() string
func (*FirmwareUpdateInfo) GetVersionFrom ¶
func (x *FirmwareUpdateInfo) GetVersionFrom() string
func (*FirmwareUpdateInfo) GetVersionTo ¶
func (x *FirmwareUpdateInfo) GetVersionTo() string
func (*FirmwareUpdateInfo) ProtoMessage ¶
func (*FirmwareUpdateInfo) ProtoMessage()
func (*FirmwareUpdateInfo) ProtoReflect ¶
func (x *FirmwareUpdateInfo) ProtoReflect() protoreflect.Message
func (*FirmwareUpdateInfo) Reset ¶
func (x *FirmwareUpdateInfo) Reset()
func (*FirmwareUpdateInfo) String ¶
func (x *FirmwareUpdateInfo) String() string
type GetAllUpdatesResponse ¶
type GetAllUpdatesResponse struct {
Updates []*FirmwareUpdateInfo `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
// contains filtered or unexported fields
}
GetAllUpdatesResponse returns all firmware updates.
func (*GetAllUpdatesResponse) Descriptor
deprecated
func (*GetAllUpdatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllUpdatesResponse.ProtoReflect.Descriptor instead.
func (*GetAllUpdatesResponse) GetUpdates ¶
func (x *GetAllUpdatesResponse) GetUpdates() []*FirmwareUpdateInfo
func (*GetAllUpdatesResponse) ProtoMessage ¶
func (*GetAllUpdatesResponse) ProtoMessage()
func (*GetAllUpdatesResponse) ProtoReflect ¶
func (x *GetAllUpdatesResponse) ProtoReflect() protoreflect.Message
func (*GetAllUpdatesResponse) Reset ¶
func (x *GetAllUpdatesResponse) Reset()
func (*GetAllUpdatesResponse) String ¶
func (x *GetAllUpdatesResponse) String() string
type GetNVSwitchesResponse ¶
type GetNVSwitchesResponse struct {
Nvswitches []*NVSwitchTray `protobuf:"bytes,1,rep,name=nvswitches,proto3" json:"nvswitches,omitempty"`
// contains filtered or unexported fields
}
func (*GetNVSwitchesResponse) Descriptor
deprecated
func (*GetNVSwitchesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNVSwitchesResponse.ProtoReflect.Descriptor instead.
func (*GetNVSwitchesResponse) GetNvswitches ¶
func (x *GetNVSwitchesResponse) GetNvswitches() []*NVSwitchTray
func (*GetNVSwitchesResponse) ProtoMessage ¶
func (*GetNVSwitchesResponse) ProtoMessage()
func (*GetNVSwitchesResponse) ProtoReflect ¶
func (x *GetNVSwitchesResponse) ProtoReflect() protoreflect.Message
func (*GetNVSwitchesResponse) Reset ¶
func (x *GetNVSwitchesResponse) Reset()
func (*GetNVSwitchesResponse) String ¶
func (x *GetNVSwitchesResponse) String() string
type GetUpdateRequest ¶
type GetUpdateRequest struct {
UpdateId string `protobuf:"bytes,1,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"`
// contains filtered or unexported fields
}
GetUpdateRequest gets a specific update by ID.
func (*GetUpdateRequest) Descriptor
deprecated
func (*GetUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUpdateRequest.ProtoReflect.Descriptor instead.
func (*GetUpdateRequest) GetUpdateId ¶
func (x *GetUpdateRequest) GetUpdateId() string
func (*GetUpdateRequest) ProtoMessage ¶
func (*GetUpdateRequest) ProtoMessage()
func (*GetUpdateRequest) ProtoReflect ¶
func (x *GetUpdateRequest) ProtoReflect() protoreflect.Message
func (*GetUpdateRequest) Reset ¶
func (x *GetUpdateRequest) Reset()
func (*GetUpdateRequest) String ¶
func (x *GetUpdateRequest) String() string
type GetUpdateResponse ¶
type GetUpdateResponse struct {
Update *FirmwareUpdateInfo `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
// contains filtered or unexported fields
}
GetUpdateResponse returns a single update.
func (*GetUpdateResponse) Descriptor
deprecated
func (*GetUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUpdateResponse.ProtoReflect.Descriptor instead.
func (*GetUpdateResponse) GetUpdate ¶
func (x *GetUpdateResponse) GetUpdate() *FirmwareUpdateInfo
func (*GetUpdateResponse) ProtoMessage ¶
func (*GetUpdateResponse) ProtoMessage()
func (*GetUpdateResponse) ProtoReflect ¶
func (x *GetUpdateResponse) ProtoReflect() protoreflect.Message
func (*GetUpdateResponse) Reset ¶
func (x *GetUpdateResponse) Reset()
func (*GetUpdateResponse) String ¶
func (x *GetUpdateResponse) String() string
type GetUpdatesForSwitchRequest ¶
type GetUpdatesForSwitchRequest struct {
SwitchUuid string `protobuf:"bytes,1,opt,name=switch_uuid,json=switchUuid,proto3" json:"switch_uuid,omitempty"`
// contains filtered or unexported fields
}
GetUpdatesForSwitchRequest gets all updates for a switch.
func (*GetUpdatesForSwitchRequest) Descriptor
deprecated
func (*GetUpdatesForSwitchRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUpdatesForSwitchRequest.ProtoReflect.Descriptor instead.
func (*GetUpdatesForSwitchRequest) GetSwitchUuid ¶
func (x *GetUpdatesForSwitchRequest) GetSwitchUuid() string
func (*GetUpdatesForSwitchRequest) ProtoMessage ¶
func (*GetUpdatesForSwitchRequest) ProtoMessage()
func (*GetUpdatesForSwitchRequest) ProtoReflect ¶
func (x *GetUpdatesForSwitchRequest) ProtoReflect() protoreflect.Message
func (*GetUpdatesForSwitchRequest) Reset ¶
func (x *GetUpdatesForSwitchRequest) Reset()
func (*GetUpdatesForSwitchRequest) String ¶
func (x *GetUpdatesForSwitchRequest) String() string
type GetUpdatesForSwitchResponse ¶
type GetUpdatesForSwitchResponse struct {
Updates []*FirmwareUpdateInfo `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
// contains filtered or unexported fields
}
GetUpdatesForSwitchResponse returns updates for a switch.
func (*GetUpdatesForSwitchResponse) Descriptor
deprecated
func (*GetUpdatesForSwitchResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUpdatesForSwitchResponse.ProtoReflect.Descriptor instead.
func (*GetUpdatesForSwitchResponse) GetUpdates ¶
func (x *GetUpdatesForSwitchResponse) GetUpdates() []*FirmwareUpdateInfo
func (*GetUpdatesForSwitchResponse) ProtoMessage ¶
func (*GetUpdatesForSwitchResponse) ProtoMessage()
func (*GetUpdatesForSwitchResponse) ProtoReflect ¶
func (x *GetUpdatesForSwitchResponse) ProtoReflect() protoreflect.Message
func (*GetUpdatesForSwitchResponse) Reset ¶
func (x *GetUpdatesForSwitchResponse) Reset()
func (*GetUpdatesForSwitchResponse) String ¶
func (x *GetUpdatesForSwitchResponse) String() string
type ListBundlesResponse ¶
type ListBundlesResponse struct {
Bundles []*FirmwareBundle `protobuf:"bytes,1,rep,name=bundles,proto3" json:"bundles,omitempty"`
// contains filtered or unexported fields
}
ListBundlesResponse returns available firmware bundles.
func (*ListBundlesResponse) Descriptor
deprecated
func (*ListBundlesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBundlesResponse.ProtoReflect.Descriptor instead.
func (*ListBundlesResponse) GetBundles ¶
func (x *ListBundlesResponse) GetBundles() []*FirmwareBundle
func (*ListBundlesResponse) ProtoMessage ¶
func (*ListBundlesResponse) ProtoMessage()
func (*ListBundlesResponse) ProtoReflect ¶
func (x *ListBundlesResponse) ProtoReflect() protoreflect.Message
func (*ListBundlesResponse) Reset ¶
func (x *ListBundlesResponse) Reset()
func (*ListBundlesResponse) String ¶
func (x *ListBundlesResponse) String() string
type NVOSInfo ¶
type NVOSInfo 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"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` // Custom port (0 = default 22)
// contains filtered or unexported fields
}
NVOSInfo contains NVOS identity and version information.
func (*NVOSInfo) Descriptor
deprecated
func (*NVOSInfo) GetIpAddress ¶
func (*NVOSInfo) GetMacAddress ¶
func (*NVOSInfo) GetVersion ¶
func (*NVOSInfo) ProtoMessage ¶
func (*NVOSInfo) ProtoMessage()
func (*NVOSInfo) ProtoReflect ¶
func (x *NVOSInfo) ProtoReflect() protoreflect.Message
type NVSwitchComponent ¶
type NVSwitchComponent int32
NVSwitchComponent enumerates the updatable components of an NV-Switch tray. Update sequence: BMC -> CPLD -> BIOS -> NVOS
const ( NVSwitchComponent_NVSWITCH_COMPONENT_UNKNOWN NVSwitchComponent = 0 NVSwitchComponent_NVSWITCH_COMPONENT_BMC NVSwitchComponent = 1 // BMC firmware via Redfish NVSwitchComponent_NVSWITCH_COMPONENT_CPLD NVSwitchComponent = 2 // CPLD via NVOS SSH NVSwitchComponent_NVSWITCH_COMPONENT_BIOS NVSwitchComponent = 3 // BIOS firmware via Redfish NVSwitchComponent_NVSWITCH_COMPONENT_NVOS NVSwitchComponent = 4 // NVOS system image via SSH )
func (NVSwitchComponent) Descriptor ¶
func (NVSwitchComponent) Descriptor() protoreflect.EnumDescriptor
func (NVSwitchComponent) Enum ¶
func (x NVSwitchComponent) Enum() *NVSwitchComponent
func (NVSwitchComponent) EnumDescriptor
deprecated
func (NVSwitchComponent) EnumDescriptor() ([]byte, []int)
Deprecated: Use NVSwitchComponent.Descriptor instead.
func (NVSwitchComponent) Number ¶
func (x NVSwitchComponent) Number() protoreflect.EnumNumber
func (NVSwitchComponent) String ¶
func (x NVSwitchComponent) String() string
func (NVSwitchComponent) Type ¶
func (NVSwitchComponent) Type() protoreflect.EnumType
type NVSwitchManagerClient ¶
type NVSwitchManagerClient interface {
// Registration
// RegisterNVSwitches registers the specified NV-Switch trays and returns service-generated UUIDs.
RegisterNVSwitches(ctx context.Context, in *RegisterNVSwitchesRequest, opts ...grpc.CallOption) (*RegisterNVSwitchesResponse, error)
// Inventory Management
// GetNVSwitches returns NV-Switch information for the specified switches.
GetNVSwitches(ctx context.Context, in *NVSwitchRequest, opts ...grpc.CallOption) (*GetNVSwitchesResponse, error)
// Firmware Management (New API)
// ListBundles returns all available firmware bundles.
ListBundles(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListBundlesResponse, error)
// QueueUpdate queues firmware updates for one or more components (or all if not specified).
QueueUpdate(ctx context.Context, in *QueueUpdateRequest, opts ...grpc.CallOption) (*QueueUpdateResponse, error)
// QueueUpdates queues firmware updates for multiple switches in a single call.
QueueUpdates(ctx context.Context, in *QueueUpdatesRequest, opts ...grpc.CallOption) (*QueueUpdatesResponse, error)
// GetUpdate returns the status of a specific firmware update by ID.
GetUpdate(ctx context.Context, in *GetUpdateRequest, opts ...grpc.CallOption) (*GetUpdateResponse, error)
// GetUpdatesForSwitch returns all firmware updates for a switch.
GetUpdatesForSwitch(ctx context.Context, in *GetUpdatesForSwitchRequest, opts ...grpc.CallOption) (*GetUpdatesForSwitchResponse, error)
// GetAllUpdates returns all firmware updates across all switches.
GetAllUpdates(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAllUpdatesResponse, error)
// CancelUpdate cancels an in-progress firmware update.
CancelUpdate(ctx context.Context, in *CancelUpdateRequest, opts ...grpc.CallOption) (*CancelUpdateResponse, error)
// Power Control
// PowerControl performs a power action (e.g. PowerCycle, GracefulShutdown) on NV-Switch trays.
PowerControl(ctx context.Context, in *PowerControlRequest, opts ...grpc.CallOption) (*PowerControlResponse, error)
}
NVSwitchManagerClient is the client API for NVSwitchManager 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.
NVSwitchManager exposes registration, inventory, firmware management, and power control RPCs for NVLink Switch trays.
func NewNVSwitchManagerClient ¶
func NewNVSwitchManagerClient(cc grpc.ClientConnInterface) NVSwitchManagerClient
type NVSwitchManagerServer ¶
type NVSwitchManagerServer interface {
// Registration
// RegisterNVSwitches registers the specified NV-Switch trays and returns service-generated UUIDs.
RegisterNVSwitches(context.Context, *RegisterNVSwitchesRequest) (*RegisterNVSwitchesResponse, error)
// Inventory Management
// GetNVSwitches returns NV-Switch information for the specified switches.
GetNVSwitches(context.Context, *NVSwitchRequest) (*GetNVSwitchesResponse, error)
// Firmware Management (New API)
// ListBundles returns all available firmware bundles.
ListBundles(context.Context, *emptypb.Empty) (*ListBundlesResponse, error)
// QueueUpdate queues firmware updates for one or more components (or all if not specified).
QueueUpdate(context.Context, *QueueUpdateRequest) (*QueueUpdateResponse, error)
// QueueUpdates queues firmware updates for multiple switches in a single call.
QueueUpdates(context.Context, *QueueUpdatesRequest) (*QueueUpdatesResponse, error)
// GetUpdate returns the status of a specific firmware update by ID.
GetUpdate(context.Context, *GetUpdateRequest) (*GetUpdateResponse, error)
// GetUpdatesForSwitch returns all firmware updates for a switch.
GetUpdatesForSwitch(context.Context, *GetUpdatesForSwitchRequest) (*GetUpdatesForSwitchResponse, error)
// GetAllUpdates returns all firmware updates across all switches.
GetAllUpdates(context.Context, *emptypb.Empty) (*GetAllUpdatesResponse, error)
// CancelUpdate cancels an in-progress firmware update.
CancelUpdate(context.Context, *CancelUpdateRequest) (*CancelUpdateResponse, error)
// Power Control
// PowerControl performs a power action (e.g. PowerCycle, GracefulShutdown) on NV-Switch trays.
PowerControl(context.Context, *PowerControlRequest) (*PowerControlResponse, error)
}
NVSwitchManagerServer is the server API for NVSwitchManager service. All implementations should embed UnimplementedNVSwitchManagerServer for forward compatibility.
NVSwitchManager exposes registration, inventory, firmware management, and power control RPCs for NVLink Switch trays.
type NVSwitchRequest ¶
type NVSwitchRequest struct {
Uuids []string `protobuf:"bytes,1,rep,name=uuids,proto3" json:"uuids,omitempty"` // Switch UUIDs
// contains filtered or unexported fields
}
NVSwitchRequest identifies switches by their UUID.
func (*NVSwitchRequest) Descriptor
deprecated
func (*NVSwitchRequest) Descriptor() ([]byte, []int)
Deprecated: Use NVSwitchRequest.ProtoReflect.Descriptor instead.
func (*NVSwitchRequest) GetUuids ¶
func (x *NVSwitchRequest) GetUuids() []string
func (*NVSwitchRequest) ProtoMessage ¶
func (*NVSwitchRequest) ProtoMessage()
func (*NVSwitchRequest) ProtoReflect ¶
func (x *NVSwitchRequest) ProtoReflect() protoreflect.Message
func (*NVSwitchRequest) Reset ¶
func (x *NVSwitchRequest) Reset()
func (*NVSwitchRequest) String ¶
func (x *NVSwitchRequest) String() string
type NVSwitchResponse ¶
type NVSwitchResponse struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Status StatusCode `protobuf:"varint,2,opt,name=status,proto3,enum=nsm.v1.StatusCode" json:"status,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*NVSwitchResponse) Descriptor
deprecated
func (*NVSwitchResponse) Descriptor() ([]byte, []int)
Deprecated: Use NVSwitchResponse.ProtoReflect.Descriptor instead.
func (*NVSwitchResponse) GetError ¶
func (x *NVSwitchResponse) GetError() string
func (*NVSwitchResponse) GetStatus ¶
func (x *NVSwitchResponse) GetStatus() StatusCode
func (*NVSwitchResponse) GetUuid ¶
func (x *NVSwitchResponse) GetUuid() string
func (*NVSwitchResponse) ProtoMessage ¶
func (*NVSwitchResponse) ProtoMessage()
func (*NVSwitchResponse) ProtoReflect ¶
func (x *NVSwitchResponse) ProtoReflect() protoreflect.Message
func (*NVSwitchResponse) Reset ¶
func (x *NVSwitchResponse) Reset()
func (*NVSwitchResponse) String ¶
func (x *NVSwitchResponse) String() string
type NVSwitchTray ¶
type NVSwitchTray struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // Service-generated UUID
Vendor Vendor `protobuf:"varint,2,opt,name=vendor,proto3,enum=nsm.v1.Vendor" json:"vendor,omitempty"`
Bmc *BMCInfo `protobuf:"bytes,3,opt,name=bmc,proto3" json:"bmc,omitempty"` // BMC subsystem info
Nvos *NVOSInfo `protobuf:"bytes,4,opt,name=nvos,proto3" json:"nvos,omitempty"` // NVOS subsystem info
Chassis *Chassis `protobuf:"bytes,5,opt,name=chassis,proto3" json:"chassis,omitempty"`
CpldVersion string `protobuf:"bytes,6,opt,name=cpld_version,json=cpldVersion,proto3" json:"cpld_version,omitempty"`
RackId string `protobuf:"bytes,7,opt,name=rack_id,json=rackId,proto3" json:"rack_id,omitempty"` // Optional rack identifier for grouping switches
// contains filtered or unexported fields
}
NVSwitchTray represents a complete NV-Switch tray.
func (*NVSwitchTray) Descriptor
deprecated
func (*NVSwitchTray) Descriptor() ([]byte, []int)
Deprecated: Use NVSwitchTray.ProtoReflect.Descriptor instead.
func (*NVSwitchTray) GetBmc ¶
func (x *NVSwitchTray) GetBmc() *BMCInfo
func (*NVSwitchTray) GetChassis ¶
func (x *NVSwitchTray) GetChassis() *Chassis
func (*NVSwitchTray) GetCpldVersion ¶
func (x *NVSwitchTray) GetCpldVersion() string
func (*NVSwitchTray) GetNvos ¶
func (x *NVSwitchTray) GetNvos() *NVOSInfo
func (*NVSwitchTray) GetRackId ¶
func (x *NVSwitchTray) GetRackId() string
func (*NVSwitchTray) GetUuid ¶
func (x *NVSwitchTray) GetUuid() string
func (*NVSwitchTray) GetVendor ¶
func (x *NVSwitchTray) GetVendor() Vendor
func (*NVSwitchTray) ProtoMessage ¶
func (*NVSwitchTray) ProtoMessage()
func (*NVSwitchTray) ProtoReflect ¶
func (x *NVSwitchTray) ProtoReflect() protoreflect.Message
func (*NVSwitchTray) Reset ¶
func (x *NVSwitchTray) Reset()
func (*NVSwitchTray) String ¶
func (x *NVSwitchTray) String() string
type PowerAction ¶
type PowerAction int32
PowerAction enumerates the Redfish ComputerSystem.Reset actions supported by NV-Switch trays.
const ( PowerAction_POWER_ACTION_UNKNOWN PowerAction = 0 PowerAction_POWER_ACTION_FORCE_OFF PowerAction = 1 PowerAction_POWER_ACTION_POWER_CYCLE PowerAction = 2 PowerAction_POWER_ACTION_GRACEFUL_SHUTDOWN PowerAction = 3 PowerAction_POWER_ACTION_ON PowerAction = 4 PowerAction_POWER_ACTION_FORCE_ON PowerAction = 5 PowerAction_POWER_ACTION_GRACEFUL_RESTART PowerAction = 6 PowerAction_POWER_ACTION_FORCE_RESTART PowerAction = 7 )
func (PowerAction) Descriptor ¶
func (PowerAction) Descriptor() protoreflect.EnumDescriptor
func (PowerAction) Enum ¶
func (x PowerAction) Enum() *PowerAction
func (PowerAction) EnumDescriptor
deprecated
func (PowerAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use PowerAction.Descriptor instead.
func (PowerAction) Number ¶
func (x PowerAction) Number() protoreflect.EnumNumber
func (PowerAction) String ¶
func (x PowerAction) String() string
func (PowerAction) Type ¶
func (PowerAction) Type() protoreflect.EnumType
type PowerControlRequest ¶
type PowerControlRequest struct {
Uuids []string `protobuf:"bytes,1,rep,name=uuids,proto3" json:"uuids,omitempty"`
Action PowerAction `protobuf:"varint,2,opt,name=action,proto3,enum=nsm.v1.PowerAction" json:"action,omitempty"`
// contains filtered or unexported fields
}
PowerControlRequest specifies the switches and the power action to perform.
func (*PowerControlRequest) Descriptor
deprecated
func (*PowerControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use PowerControlRequest.ProtoReflect.Descriptor instead.
func (*PowerControlRequest) GetAction ¶
func (x *PowerControlRequest) GetAction() PowerAction
func (*PowerControlRequest) GetUuids ¶
func (x *PowerControlRequest) GetUuids() []string
func (*PowerControlRequest) ProtoMessage ¶
func (*PowerControlRequest) ProtoMessage()
func (*PowerControlRequest) ProtoReflect ¶
func (x *PowerControlRequest) ProtoReflect() protoreflect.Message
func (*PowerControlRequest) Reset ¶
func (x *PowerControlRequest) Reset()
func (*PowerControlRequest) String ¶
func (x *PowerControlRequest) String() string
type PowerControlResponse ¶
type PowerControlResponse struct {
Responses []*NVSwitchResponse `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() []*NVSwitchResponse
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 QueueUpdateRequest ¶
type QueueUpdateRequest struct {
SwitchUuid string `protobuf:"bytes,1,opt,name=switch_uuid,json=switchUuid,proto3" json:"switch_uuid,omitempty"` // UUID of the NV-Switch to update
BundleVersion string `protobuf:"bytes,2,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"` // Version of the firmware bundle
Components []NVSwitchComponent `protobuf:"varint,3,rep,packed,name=components,proto3,enum=nsm.v1.NVSwitchComponent" json:"components,omitempty"` // Components to update (empty = all)
// contains filtered or unexported fields
}
QueueUpdateRequest queues firmware updates for one or more components. If components is empty, all components in the bundle are updated in sequence.
func (*QueueUpdateRequest) Descriptor
deprecated
func (*QueueUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueueUpdateRequest.ProtoReflect.Descriptor instead.
func (*QueueUpdateRequest) GetBundleVersion ¶
func (x *QueueUpdateRequest) GetBundleVersion() string
func (*QueueUpdateRequest) GetComponents ¶
func (x *QueueUpdateRequest) GetComponents() []NVSwitchComponent
func (*QueueUpdateRequest) GetSwitchUuid ¶
func (x *QueueUpdateRequest) GetSwitchUuid() string
func (*QueueUpdateRequest) ProtoMessage ¶
func (*QueueUpdateRequest) ProtoMessage()
func (*QueueUpdateRequest) ProtoReflect ¶
func (x *QueueUpdateRequest) ProtoReflect() protoreflect.Message
func (*QueueUpdateRequest) Reset ¶
func (x *QueueUpdateRequest) Reset()
func (*QueueUpdateRequest) String ¶
func (x *QueueUpdateRequest) String() string
type QueueUpdateResponse ¶
type QueueUpdateResponse struct {
Updates []*FirmwareUpdateInfo `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
// contains filtered or unexported fields
}
QueueUpdateResponse returns the queued updates.
func (*QueueUpdateResponse) Descriptor
deprecated
func (*QueueUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueueUpdateResponse.ProtoReflect.Descriptor instead.
func (*QueueUpdateResponse) GetUpdates ¶
func (x *QueueUpdateResponse) GetUpdates() []*FirmwareUpdateInfo
func (*QueueUpdateResponse) ProtoMessage ¶
func (*QueueUpdateResponse) ProtoMessage()
func (*QueueUpdateResponse) ProtoReflect ¶
func (x *QueueUpdateResponse) ProtoReflect() protoreflect.Message
func (*QueueUpdateResponse) Reset ¶
func (x *QueueUpdateResponse) Reset()
func (*QueueUpdateResponse) String ¶
func (x *QueueUpdateResponse) String() string
type QueueUpdateResult ¶
type QueueUpdateResult struct {
SwitchUuid string `protobuf:"bytes,1,opt,name=switch_uuid,json=switchUuid,proto3" json:"switch_uuid,omitempty"` // UUID of the switch
Status StatusCode `protobuf:"varint,2,opt,name=status,proto3,enum=nsm.v1.StatusCode" json:"status,omitempty"` // SUCCESS or error
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // Error message if status != SUCCESS
Updates []*FirmwareUpdateInfo `protobuf:"bytes,4,rep,name=updates,proto3" json:"updates,omitempty"` // Queued updates if successful
// contains filtered or unexported fields
}
QueueUpdateResult contains the result for a single switch update.
func (*QueueUpdateResult) Descriptor
deprecated
func (*QueueUpdateResult) Descriptor() ([]byte, []int)
Deprecated: Use QueueUpdateResult.ProtoReflect.Descriptor instead.
func (*QueueUpdateResult) GetError ¶
func (x *QueueUpdateResult) GetError() string
func (*QueueUpdateResult) GetStatus ¶
func (x *QueueUpdateResult) GetStatus() StatusCode
func (*QueueUpdateResult) GetSwitchUuid ¶
func (x *QueueUpdateResult) GetSwitchUuid() string
func (*QueueUpdateResult) GetUpdates ¶
func (x *QueueUpdateResult) GetUpdates() []*FirmwareUpdateInfo
func (*QueueUpdateResult) ProtoMessage ¶
func (*QueueUpdateResult) ProtoMessage()
func (*QueueUpdateResult) ProtoReflect ¶
func (x *QueueUpdateResult) ProtoReflect() protoreflect.Message
func (*QueueUpdateResult) Reset ¶
func (x *QueueUpdateResult) Reset()
func (*QueueUpdateResult) String ¶
func (x *QueueUpdateResult) String() string
type QueueUpdatesRequest ¶
type QueueUpdatesRequest struct {
SwitchUuids []string `protobuf:"bytes,1,rep,name=switch_uuids,json=switchUuids,proto3" json:"switch_uuids,omitempty"` // UUIDs of NV-Switches to update
BundleVersion string `protobuf:"bytes,2,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"` // Version of the firmware bundle
Components []NVSwitchComponent `protobuf:"varint,3,rep,packed,name=components,proto3,enum=nsm.v1.NVSwitchComponent" json:"components,omitempty"` // Components to update (empty = all)
// contains filtered or unexported fields
}
QueueUpdatesRequest queues firmware updates for multiple switches.
func (*QueueUpdatesRequest) Descriptor
deprecated
func (*QueueUpdatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueueUpdatesRequest.ProtoReflect.Descriptor instead.
func (*QueueUpdatesRequest) GetBundleVersion ¶
func (x *QueueUpdatesRequest) GetBundleVersion() string
func (*QueueUpdatesRequest) GetComponents ¶
func (x *QueueUpdatesRequest) GetComponents() []NVSwitchComponent
func (*QueueUpdatesRequest) GetSwitchUuids ¶
func (x *QueueUpdatesRequest) GetSwitchUuids() []string
func (*QueueUpdatesRequest) ProtoMessage ¶
func (*QueueUpdatesRequest) ProtoMessage()
func (*QueueUpdatesRequest) ProtoReflect ¶
func (x *QueueUpdatesRequest) ProtoReflect() protoreflect.Message
func (*QueueUpdatesRequest) Reset ¶
func (x *QueueUpdatesRequest) Reset()
func (*QueueUpdatesRequest) String ¶
func (x *QueueUpdatesRequest) String() string
type QueueUpdatesResponse ¶
type QueueUpdatesResponse struct {
Results []*QueueUpdateResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
QueueUpdatesResponse returns the results for each switch.
func (*QueueUpdatesResponse) Descriptor
deprecated
func (*QueueUpdatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueueUpdatesResponse.ProtoReflect.Descriptor instead.
func (*QueueUpdatesResponse) GetResults ¶
func (x *QueueUpdatesResponse) GetResults() []*QueueUpdateResult
func (*QueueUpdatesResponse) ProtoMessage ¶
func (*QueueUpdatesResponse) ProtoMessage()
func (*QueueUpdatesResponse) ProtoReflect ¶
func (x *QueueUpdatesResponse) ProtoReflect() protoreflect.Message
func (*QueueUpdatesResponse) Reset ¶
func (x *QueueUpdatesResponse) Reset()
func (*QueueUpdatesResponse) String ¶
func (x *QueueUpdatesResponse) String() string
type RegisterNVSwitchRequest ¶
type RegisterNVSwitchRequest struct {
Vendor Vendor `protobuf:"varint,1,opt,name=vendor,proto3,enum=nsm.v1.Vendor" json:"vendor,omitempty"`
// BMC subsystem (4 fields)
Bmc *Subsystem `protobuf:"bytes,2,opt,name=bmc,proto3" json:"bmc,omitempty"`
// NVOS subsystem (4 fields)
Nvos *Subsystem `protobuf:"bytes,3,opt,name=nvos,proto3" json:"nvos,omitempty"`
// Optional rack identifier for grouping switches
RackId string `protobuf:"bytes,4,opt,name=rack_id,json=rackId,proto3" json:"rack_id,omitempty"`
// contains filtered or unexported fields
}
RegisterNVSwitchRequest contains all fields needed to register a switch.
func (*RegisterNVSwitchRequest) Descriptor
deprecated
func (*RegisterNVSwitchRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNVSwitchRequest.ProtoReflect.Descriptor instead.
func (*RegisterNVSwitchRequest) GetBmc ¶
func (x *RegisterNVSwitchRequest) GetBmc() *Subsystem
func (*RegisterNVSwitchRequest) GetNvos ¶
func (x *RegisterNVSwitchRequest) GetNvos() *Subsystem
func (*RegisterNVSwitchRequest) GetRackId ¶
func (x *RegisterNVSwitchRequest) GetRackId() string
func (*RegisterNVSwitchRequest) GetVendor ¶
func (x *RegisterNVSwitchRequest) GetVendor() Vendor
func (*RegisterNVSwitchRequest) ProtoMessage ¶
func (*RegisterNVSwitchRequest) ProtoMessage()
func (*RegisterNVSwitchRequest) ProtoReflect ¶
func (x *RegisterNVSwitchRequest) ProtoReflect() protoreflect.Message
func (*RegisterNVSwitchRequest) Reset ¶
func (x *RegisterNVSwitchRequest) Reset()
func (*RegisterNVSwitchRequest) String ¶
func (x *RegisterNVSwitchRequest) String() string
type RegisterNVSwitchResponse ¶
type RegisterNVSwitchResponse struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // Service-generated UUID for the registered switch
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=nsm.v1.StatusCode" json:"status,omitempty"`
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterNVSwitchResponse) Descriptor
deprecated
func (*RegisterNVSwitchResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNVSwitchResponse.ProtoReflect.Descriptor instead.
func (*RegisterNVSwitchResponse) GetCreated ¶
func (x *RegisterNVSwitchResponse) GetCreated() *timestamppb.Timestamp
func (*RegisterNVSwitchResponse) GetError ¶
func (x *RegisterNVSwitchResponse) GetError() string
func (*RegisterNVSwitchResponse) GetIsNew ¶
func (x *RegisterNVSwitchResponse) GetIsNew() bool
func (*RegisterNVSwitchResponse) GetStatus ¶
func (x *RegisterNVSwitchResponse) GetStatus() StatusCode
func (*RegisterNVSwitchResponse) GetUuid ¶
func (x *RegisterNVSwitchResponse) GetUuid() string
func (*RegisterNVSwitchResponse) ProtoMessage ¶
func (*RegisterNVSwitchResponse) ProtoMessage()
func (*RegisterNVSwitchResponse) ProtoReflect ¶
func (x *RegisterNVSwitchResponse) ProtoReflect() protoreflect.Message
func (*RegisterNVSwitchResponse) Reset ¶
func (x *RegisterNVSwitchResponse) Reset()
func (*RegisterNVSwitchResponse) String ¶
func (x *RegisterNVSwitchResponse) String() string
type RegisterNVSwitchesRequest ¶
type RegisterNVSwitchesRequest struct {
RegistrationRequests []*RegisterNVSwitchRequest `protobuf:"bytes,1,rep,name=registration_requests,json=registrationRequests,proto3" json:"registration_requests,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterNVSwitchesRequest) Descriptor
deprecated
func (*RegisterNVSwitchesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNVSwitchesRequest.ProtoReflect.Descriptor instead.
func (*RegisterNVSwitchesRequest) GetRegistrationRequests ¶
func (x *RegisterNVSwitchesRequest) GetRegistrationRequests() []*RegisterNVSwitchRequest
func (*RegisterNVSwitchesRequest) ProtoMessage ¶
func (*RegisterNVSwitchesRequest) ProtoMessage()
func (*RegisterNVSwitchesRequest) ProtoReflect ¶
func (x *RegisterNVSwitchesRequest) ProtoReflect() protoreflect.Message
func (*RegisterNVSwitchesRequest) Reset ¶
func (x *RegisterNVSwitchesRequest) Reset()
func (*RegisterNVSwitchesRequest) String ¶
func (x *RegisterNVSwitchesRequest) String() string
type RegisterNVSwitchesResponse ¶
type RegisterNVSwitchesResponse struct {
Responses []*RegisterNVSwitchResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterNVSwitchesResponse) Descriptor
deprecated
func (*RegisterNVSwitchesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNVSwitchesResponse.ProtoReflect.Descriptor instead.
func (*RegisterNVSwitchesResponse) GetResponses ¶
func (x *RegisterNVSwitchesResponse) GetResponses() []*RegisterNVSwitchResponse
func (*RegisterNVSwitchesResponse) ProtoMessage ¶
func (*RegisterNVSwitchesResponse) ProtoMessage()
func (*RegisterNVSwitchesResponse) ProtoReflect ¶
func (x *RegisterNVSwitchesResponse) ProtoReflect() protoreflect.Message
func (*RegisterNVSwitchesResponse) Reset ¶
func (x *RegisterNVSwitchesResponse) Reset()
func (*RegisterNVSwitchesResponse) String ¶
func (x *RegisterNVSwitchesResponse) 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 ¶
func (StatusCode) Type() protoreflect.EnumType
type Subsystem ¶
type Subsystem 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"`
Credentials *Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"`
Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` // Optional custom port (0 = default: 443 for BMC, 22 for NVOS)
// contains filtered or unexported fields
}
Subsystem represents a network-accessible subsystem with MAC, IP, port, and credentials.
func (*Subsystem) Descriptor
deprecated
func (*Subsystem) GetCredentials ¶
func (x *Subsystem) GetCredentials() *Credentials
func (*Subsystem) GetIpAddress ¶
func (*Subsystem) GetMacAddress ¶
func (*Subsystem) ProtoMessage ¶
func (*Subsystem) ProtoMessage()
func (*Subsystem) ProtoReflect ¶
func (x *Subsystem) ProtoReflect() protoreflect.Message
type UnimplementedNVSwitchManagerServer ¶
type UnimplementedNVSwitchManagerServer struct{}
UnimplementedNVSwitchManagerServer 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 (UnimplementedNVSwitchManagerServer) CancelUpdate ¶
func (UnimplementedNVSwitchManagerServer) CancelUpdate(context.Context, *CancelUpdateRequest) (*CancelUpdateResponse, error)
func (UnimplementedNVSwitchManagerServer) GetAllUpdates ¶
func (UnimplementedNVSwitchManagerServer) GetAllUpdates(context.Context, *emptypb.Empty) (*GetAllUpdatesResponse, error)
func (UnimplementedNVSwitchManagerServer) GetNVSwitches ¶
func (UnimplementedNVSwitchManagerServer) GetNVSwitches(context.Context, *NVSwitchRequest) (*GetNVSwitchesResponse, error)
func (UnimplementedNVSwitchManagerServer) GetUpdate ¶
func (UnimplementedNVSwitchManagerServer) GetUpdate(context.Context, *GetUpdateRequest) (*GetUpdateResponse, error)
func (UnimplementedNVSwitchManagerServer) GetUpdatesForSwitch ¶
func (UnimplementedNVSwitchManagerServer) GetUpdatesForSwitch(context.Context, *GetUpdatesForSwitchRequest) (*GetUpdatesForSwitchResponse, error)
func (UnimplementedNVSwitchManagerServer) ListBundles ¶
func (UnimplementedNVSwitchManagerServer) ListBundles(context.Context, *emptypb.Empty) (*ListBundlesResponse, error)
func (UnimplementedNVSwitchManagerServer) PowerControl ¶
func (UnimplementedNVSwitchManagerServer) PowerControl(context.Context, *PowerControlRequest) (*PowerControlResponse, error)
func (UnimplementedNVSwitchManagerServer) QueueUpdate ¶
func (UnimplementedNVSwitchManagerServer) QueueUpdate(context.Context, *QueueUpdateRequest) (*QueueUpdateResponse, error)
func (UnimplementedNVSwitchManagerServer) QueueUpdates ¶
func (UnimplementedNVSwitchManagerServer) QueueUpdates(context.Context, *QueueUpdatesRequest) (*QueueUpdatesResponse, error)
func (UnimplementedNVSwitchManagerServer) RegisterNVSwitches ¶
func (UnimplementedNVSwitchManagerServer) RegisterNVSwitches(context.Context, *RegisterNVSwitchesRequest) (*RegisterNVSwitchesResponse, error)
type UnsafeNVSwitchManagerServer ¶
type UnsafeNVSwitchManagerServer interface {
// contains filtered or unexported methods
}
UnsafeNVSwitchManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NVSwitchManagerServer will result in compilation errors.
type UpdateState ¶
type UpdateState int32
UpdateState represents the granular state of a firmware update.
const ( UpdateState_UPDATE_STATE_UNKNOWN UpdateState = 0 UpdateState_UPDATE_STATE_QUEUED UpdateState = 1 UpdateState_UPDATE_STATE_POWER_CYCLE UpdateState = 2 // NVOS: power cycle via BMC (bundle updates only) UpdateState_UPDATE_STATE_WAIT_REACHABLE UpdateState = 3 // NVOS: wait for switch to be reachable UpdateState_UPDATE_STATE_COPY UpdateState = 4 // SSH: copying file to switch UpdateState_UPDATE_STATE_UPLOAD UpdateState = 5 // SSH: nv action fetch / Redfish: upload UpdateState_UPDATE_STATE_INSTALL UpdateState = 6 // Installing firmware UpdateState_UPDATE_STATE_POLL_COMPLETION UpdateState = 7 // Redfish: polling task UpdateState_UPDATE_STATE_VERIFY UpdateState = 8 // Verifying version UpdateState_UPDATE_STATE_CLEANUP UpdateState = 9 // Cleaning up temp files UpdateState_UPDATE_STATE_COMPLETED UpdateState = 10 UpdateState_UPDATE_STATE_FAILED UpdateState = 11 UpdateState_UPDATE_STATE_CANCELLED UpdateState = 12 // Cancelled due to predecessor failure )
func (UpdateState) Descriptor ¶
func (UpdateState) Descriptor() protoreflect.EnumDescriptor
func (UpdateState) Enum ¶
func (x UpdateState) Enum() *UpdateState
func (UpdateState) EnumDescriptor
deprecated
func (UpdateState) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateState.Descriptor instead.
func (UpdateState) Number ¶
func (x UpdateState) Number() protoreflect.EnumNumber
func (UpdateState) String ¶
func (x UpdateState) String() string
func (UpdateState) Type ¶
func (UpdateState) Type() protoreflect.EnumType
type UpdateStrategy ¶
type UpdateStrategy int32
UpdateStrategy specifies how firmware is updated.
const ( UpdateStrategy_UPDATE_STRATEGY_UNKNOWN UpdateStrategy = 0 UpdateStrategy_UPDATE_STRATEGY_SCRIPT UpdateStrategy = 1 // External shell scripts UpdateStrategy_UPDATE_STRATEGY_SSH UpdateStrategy = 2 // Direct SSH commands UpdateStrategy_UPDATE_STRATEGY_REDFISH UpdateStrategy = 3 // Redfish API )
func (UpdateStrategy) Descriptor ¶
func (UpdateStrategy) Descriptor() protoreflect.EnumDescriptor
func (UpdateStrategy) Enum ¶
func (x UpdateStrategy) Enum() *UpdateStrategy
func (UpdateStrategy) EnumDescriptor
deprecated
func (UpdateStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateStrategy.Descriptor instead.
func (UpdateStrategy) Number ¶
func (x UpdateStrategy) Number() protoreflect.EnumNumber
func (UpdateStrategy) String ¶
func (x UpdateStrategy) String() string
func (UpdateStrategy) Type ¶
func (UpdateStrategy) Type() protoreflect.EnumType
type Vendor ¶
type Vendor int32
Vendor enumerates supported hardware vendors.
func (Vendor) Descriptor ¶
func (Vendor) Descriptor() protoreflect.EnumDescriptor
func (Vendor) EnumDescriptor
deprecated
func (Vendor) Number ¶
func (x Vendor) Number() protoreflect.EnumNumber
func (Vendor) Type ¶
func (Vendor) Type() protoreflect.EnumType