Documentation
¶
Index ¶
Constants ¶
View Source
const (
VendorNVIDIA = "NVIDIA"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vendor ¶
type Vendor struct {
Code VendorCode `json:"code"`
Name string `json:"name"`
}
Vendor represents a BMC vendor with a numeric code and a display name.
func CodeToVendor ¶
func CodeToVendor(code VendorCode) Vendor
CodeToVendor maps a vendor code to a Vendor struct.
func StringToVendor ¶
StringToVendor maps a vendor display name to a Vendor struct.
func (Vendor) IsSupported ¶
IsSupported reports whether the vendor code is within supported range.
type VendorCode ¶
type VendorCode int
VendorCode enumerates known vendors; VendorCodeMax is sentinel for iteration bounds.
const ( VendorCodeUnsupported VendorCode = iota VendorCodeNVIDIA VendorCodeMax )
Click to show internal directories.
Click to hide internal directories.