Documentation ¶
Overview ¶
Package uefi provides utility functions to read UEFI variables.
Package uefi provides utility functions to read UEFI variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Variable ¶
type Variable struct { Name VariableName Attributes []byte Content []byte }
Variable represents UEFI Variable and its contents. Attributes are not set in case of Windows.
func ReadVariable ¶
func ReadVariable(v VariableName) (*Variable, error)
ReadVariable reads UEFI variable and returns as byte array. Throws an error if variable is invalid or empty.
type VariableName ¶
VariableName represents UEFI variable name and GUID. Format: {VariableName}-{VendorGUID}
func (VariableName) Path ¶
func (v VariableName) Path() string
Path returns a path for UEFI variable on disk.
Click to show internal directories.
Click to hide internal directories.