Documentation ¶
Index ¶
- Variables
- type EFIFS
- func (f *EFIFS) CheckImmutable() *EFIFS
- func (t *EFIFS) GetVar(v efivar.Efivar, e efivar.Unmarshallable) error
- func (t *EFIFS) GetVarWithAttributes(v efivar.Efivar, e efivar.Unmarshallable) (attributes.Attributes, error)
- func (f *EFIFS) Open() *Efivarfs
- func (f *EFIFS) UnsetImmutable() *EFIFS
- func (t *EFIFS) WriteVar(v efivar.Efivar, e efivar.Marshallable) error
- type EFIVars
- type Efivarfs
- func (e *Efivarfs) GetBootEntry(option string) (*device.EFILoadOption, error)
- func (e *Efivarfs) GetBootOrder() []string
- func (e *Efivarfs) GetKEK() (*signature.SignatureDatabase, error)
- func (e *Efivarfs) GetLoaderEntrySelected() (string, error)
- func (e *Efivarfs) GetPK() (*signature.SignatureDatabase, error)
- func (e *Efivarfs) GetSecureBoot() (bool, error)
- func (e *Efivarfs) GetSetupMode() (bool, error)
- func (e *Efivarfs) Getdb() (*signature.SignatureDatabase, error)
- func (e *Efivarfs) Getdbx() (*signature.SignatureDatabase, error)
- func (e *Efivarfs) WriteSignedUpdate(v efivar.Efivar, m efivar.Marshallable, key crypto.Signer, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrImmutable = attr.ErrIsImmutable ErrIncorrectAttributes = errors.New("efivar has the wrong attributes") )
Functions ¶
This section is empty.
Types ¶
type EFIFS ¶
EFIFS is a struct that combines reading variables from the file system while also ensuring we are
func (*EFIFS) CheckImmutable ¶
Check if file is immutable before writing to the file. Returns ErrImmutable if the file is immutable.
func (*EFIFS) GetVarWithAttributes ¶
func (t *EFIFS) GetVarWithAttributes(v efivar.Efivar, e efivar.Unmarshallable) (attributes.Attributes, error)
GetVarWithAttributes parses and unmarshalls a EFI variable, while also returning the parsed attributes.
func (*EFIFS) UnsetImmutable ¶
UnsetImmutable implicitly when writing towards a file.
type EFIVars ¶
type EFIVars interface { GetVar(efivar.Efivar, efivar.Unmarshallable) error GetVarWithAttributes(efivar.Efivar, efivar.Unmarshallable) (attributes.Attributes, error) WriteVar(efivar.Efivar, efivar.Marshallable) error }
EFIVars is the interface for interacting with writing and getting EFI variables.
type Efivarfs ¶
type Efivarfs struct {
EFIVars
}
func (*Efivarfs) GetBootEntry ¶
func (e *Efivarfs) GetBootEntry(option string) (*device.EFILoadOption, error)
func (*Efivarfs) GetBootOrder ¶
func (*Efivarfs) GetLoaderEntrySelected ¶
func (*Efivarfs) GetSecureBoot ¶
func (*Efivarfs) GetSetupMode ¶
func (*Efivarfs) WriteSignedUpdate ¶
func (e *Efivarfs) WriteSignedUpdate(v efivar.Efivar, m efivar.Marshallable, key crypto.Signer, cert *x509.Certificate) error
Writes a signed variable update
Click to show internal directories.
Click to hide internal directories.