Documentation
¶
Overview ¶
* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PowerSupply ¶
type PowerSupply struct {
common.Entity
CapacityWatts string
// FirmwareVersion shall contain the firmware version as
// defined by the manufacturer for the associated power supply.
FirmwareVersion string
HardwareVersion string
// Location shall contain location information of the
// associated power supply.
Location redfish.PartLocation
// HotPluggable shall indicate whether the device can be inserted or removed while the underlying equipment
// otherwise remains in its current operational state. Devices indicated as hot-pluggable shall allow the device to
// become operable without altering the operational state of the underlying equipment. Devices that cannot be
// inserted or removed from equipment in operation, or devices that cannot become operable without affecting the
// operational state of that equipment, shall be indicated as not hot-pluggable.
HotPluggable bool
InputSourceNum int
// Manufacturer shall be the name of the
// organization responsible for producing the power supply. This
// organization might be the entity from whom the power supply is
// purchased, but this is not necessarily true.
Manufacturer string
// Model shall contain the model information as defined
// by the manufacturer for the associated power supply.
Model string
PowerState bool
// SerialNumber shall contain the serial number as
// defined by the manufacturer for the associated power supply.
SerialNumber string
Sensors []*redfish.Sensor
// Status shall contain any status or health properties
// of the resource.
Status common.Status
}
PowerSupply is a snapshot of a Power Supply Unit.
func (*PowerSupply) Summary ¶
func (psu *PowerSupply) Summary() string
Summary returns a summary of the PowerSupply as a string.