uefi

package
v0.0.0-...-05f333e Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

type VariableName struct {
	RootDir string
	Name    string
	GUID    string
}

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.

Jump to

Keyboard shortcuts

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