vendor

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

func StringToVendor(v string) Vendor

StringToVendor maps a vendor display name to a Vendor struct.

func (Vendor) IsSupported

func (v Vendor) IsSupported() error

IsSupported reports whether the vendor code is within supported range.

func (Vendor) String

func (v Vendor) String() string

String returns the vendor's display name or an error string if unsupported.

type VendorCode

type VendorCode int

VendorCode enumerates known vendors; VendorCodeMax is sentinel for iteration bounds.

const (
	VendorCodeUnsupported VendorCode = iota
	VendorCodeNVIDIA
	VendorCodeMax
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL