datasources

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes types.RawBytes

Bytes is just a static set of bytes, which implements types.DataSource.

func (Bytes) Data

func (d Bytes) Data(context.Context, *types.State) (*types.Data, error)

Data implements DataSource.

func (Bytes) String

func (d Bytes) String() string

String implements fmt.Stringer.

type Concat

type Concat []types.DataSource

func (Concat) Data

func (c Concat) Data(ctx context.Context, s *types.State) (*types.Data, error)

type MemRanges

type MemRanges pkgbytes.Ranges

MemRanges implements types.DataSource as a list of ranges in the physical memory address space.

func (MemRanges) Data

func (mrs MemRanges) Data(_ context.Context, state *types.State) (*types.Data, error)

Data implements types.DataSource.

func (MemRanges) String

func (mrs MemRanges) String() string

String implements fmt.Stringer.

type PCDVariable

type PCDVariable string

func (PCDVariable) Data

func (d PCDVariable) Data(ctx context.Context, s *types.State) (*types.Data, error)

Data implements types.DataSource.

func (PCDVariable) String

func (d PCDVariable) String() string

String implements fmt.Stringer.

type SortAndMergeType

type SortAndMergeType struct {
	types.DataSource
}

func SortAndMerge

func SortAndMerge(ds types.DataSource) SortAndMergeType

func (SortAndMergeType) Data

func (m SortAndMergeType) Data(ctx context.Context, s *types.State) (*types.Data, error)

type StaticData

type StaticData types.Data

StaticData is just a types.Data, which implements types.DataSource.

func (*StaticData) Data

Data implements types.DataSource.

func (*StaticData) String

func (d *StaticData) String() string

String implements fmt.Stringer.

type UEFIFiles

type UEFIFiles func(*uefi.File) (bool, error)

UEFIFiles implements types.DataSource by referencing to the files in the UEFI layout which has types from the given list.

func (UEFIFiles) Data

func (ds UEFIFiles) Data(_ context.Context, state *types.State) (*types.Data, error)

Data implements types.DataSource.

type UEFIFilesByName

type UEFIFilesByName []string

func (UEFIFilesByName) Data

func (ds UEFIFilesByName) Data(ctx context.Context, state *types.State) (*types.Data, error)

Data implements types.DataSource.

func (UEFIFilesByName) String

func (ds UEFIFilesByName) String() string

String implements fmt.Stringer.

type UEFIFilesByType

type UEFIFilesByType []uefi.FVFileType

UEFIFilesByType implements types.DataSource by referencing to the files in the UEFI layout which has types from the given list.

func (UEFIFilesByType) Data

func (ds UEFIFilesByType) Data(ctx context.Context, state *types.State) (*types.Data, error)

Data implements types.DataSource.

func (UEFIFilesByType) String

func (ds UEFIFilesByType) String() string

String implements fmt.Stringer.

type UEFIGUIDFirst

type UEFIGUIDFirst []guid.GUID

UEFIGUIDFirst implements types.DataSource by referencing to the data defined by the UEFI objects of the specified set of GUID. If multiple GUIDs are provided, then they are being tried in the given order until the first non-empty or erroneous result.

func (UEFIGUIDFirst) Data

func (ds UEFIGUIDFirst) Data(_ context.Context, state *types.State) (*types.Data, error)

Data implements types.DataSource.

func (UEFIGUIDFirst) String

func (ds UEFIGUIDFirst) String() string

String implements fmt.Stringer.

type VolumeOfType

type VolumeOfType struct {
	types.DataSource
}

func VolumeOf

func VolumeOf(ds types.DataSource) VolumeOfType

func (VolumeOfType) Data

func (v VolumeOfType) Data(ctx context.Context, s *types.State) (*types.Data, error)

Data implements types.DataSource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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