Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Type devicetypes.ComponentType `json:"type"`
Info deviceinfo.DeviceInfo `json:"info"`
FirmwareVersion string `json:"firmware_version"`
Position InRackPosition `json:"position"`
BmcsByType map[devicetypes.BMCType][]bmc.BMC `json:"bmcs_by_type"`
ComponentID string `json:"component_id,omitempty"`
RackID uuid.UUID `json:"rack_id"`
PowerState string `json:"power_state,omitempty"`
// contains filtered or unexported fields
}
Component represents a hardware component with various properties and associated BMCs.
func New ¶
func New( t devicetypes.ComponentType, info *deviceinfo.DeviceInfo, firmwareVersion string, pos *InRackPosition, ) Component
New creates a new Component with the given type, device info, firmware version, and rack position.
type InRackPosition ¶
InRackPosition represents the position of a component in a rack.
func (*InRackPosition) Compare ¶
func (rc *InRackPosition) Compare(rc1 InRackPosition, upper bool) bool
Compare compares the current InRackPosition with another InRackPosition.
func (*InRackPosition) String ¶
func (rc *InRackPosition) String() string
String returns a string representation of the InRackPosition.
Click to show internal directories.
Click to hide internal directories.