Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProcessorToken = "^AMD EPYC"
ProcessorToken is the processor model token.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { AttributeName string `json:"AttributeName"` DefaultValue interface{} `json:"DefaultValue"` // can be int or string, maybe bool DisplayName string `json:"DisplayName"` HelpText string `json:"HelpText"` ReadOnly bool `json:"ReadOnly"` Type string `json:"Type"` Value []Value `json:"Value"` }
Attribute is a single bios attribute
type DecoderMap ¶
type DecoderMap struct {
Map *Library
}
DecoderMap provides a mapping of attributes for the decoder.
func (DecoderMap) Decode ¶
func (d DecoderMap) Decode(key string) string
Decode accepts a key and changes it to a friendly name if it exists and json is not requested
type Library ¶
Library is a map of rome bios attributes
var Map *Library
Map is a pointer to a current library of decoded attributes.
func (*Library) RegisterAttribute ¶
RegisterAttribute adds an attribute to the library
Click to show internal directories.
Click to hide internal directories.