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" yaml:"attribute_name"` DefaultValue interface{} `json:"DefaultValue" yaml:"default_value"` // can be int or string, maybe bool DisplayName string `json:"DisplayName" yaml:"display_name"` HelpText string `json:"HelpText" yaml:"help_text"` ReadOnly bool `json:"ReadOnly" yaml:"read_only"` Type string `json:"Type" yaml:"type"` Value []Value `json:"Value" yaml:"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.