Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChassisHardwareResult ¶ added in v0.15.3
type PowerBudgetInformation ¶ added in v0.15.3
type PowerBudgetInformation struct {
LineCardSlot string `xml:"line-card-slot"`
PSUs []PSU
PsuRedundancyConfig string `xml:"psu-redundancy-config"`
TotalPowerSupplied int `xml:"total-power-supplied"`
BasePower int `xml:"base-power"`
ActualPowerUsed int `xml:"actual-power-used"`
}
func (*PowerBudgetInformation) UnmarshalXML ¶ added in v0.15.3
func (p *PowerBudgetInformation) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML handles the flat, ungrouped PSU sibling elements by accumulating PSU fields into a new PSU each time a <psu-slot> is encountered.
Click to show internal directories.
Click to hide internal directories.