testfs

package
v0.0.0-...-d29549a Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestFS

type TestFS struct {
	*efivarfs.EFIFS
	// contains filtered or unexported fields
}

This is the a wrapper around MapFS to easily inject data and convert it to afero.fs

func NewTestFS

func NewTestFS() *TestFS

func (*TestFS) Open

func (f *TestFS) Open() *efivarfs.Efivarfs

Open opens TestFS as Efivarfs

func (*TestFS) With

func (f *TestFS) With(files ...fstest.MapFS) *TestFS

With allows you to compose several overlay files into the in-memory filesystem.

func (*TestFS) WriteVar

func (f *TestFS) WriteVar(v efivar.Efivar, t efivar.Marshallable) error

WriteVar is a shim around EFIFS.WriteVar and ensures variables written to the in-memory filesystem is "unwrapped" of things like authentication headers if they exist.

Jump to

Keyboard shortcuts

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