Documentation ¶
Index ¶
- type Node
- func (node Node) GUID() *fianoGUID.GUID
- func (node *Node) GetByGUID(guid fianoGUID.GUID) (nodes []*Node, err error)
- func (node *Node) GetByRange(byteRange pkgbytes.Range) (nodes []*Node, err error)
- func (node *Node) GetByRegionType(regionType fianoUEFI.FlashRegionType) (nodes []*Node, err error)
- func (node *Node) GetNamesByRange(byteRange pkgbytes.Range) []string
- func (node Node) ModuleName() *string
- func (node *Node) NameToRangesMap() map[string]pkgbytes.Ranges
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { fianoUEFI.Firmware pkgbytes.Range // AddOffset adds the value to all offsets. // It, for example, affects GetByRange accordingly. // // It does effect only if a method of this node directly is used. AddOffset int64 }
func (*Node) GetByRange ¶
GetByRange returns nodes which overlaps the range `byteRange`.
func (*Node) GetByRegionType ¶
func (node *Node) GetByRegionType(regionType fianoUEFI.FlashRegionType) (nodes []*Node, err error)
GetByRegionType returns UEFI tree nodes of the requested flash region type.
func (*Node) GetNamesByRange ¶
GetNamesByRange returns known names of volumes which intersects with the selected byte range.
Since there's no reliable enough way to get volume offsets, we introduce this function to be able to extract at least names in a little-bit more reliable manner.
This function should be deprecated after issue https://github.com/linuxboot/fiano/issues/164 will be closed.
func (Node) ModuleName ¶
ModuleName returns the module name. In TianoCore it's called "BASE_NAME".
Returns nil if this node has no module name.
func (*Node) NameToRangesMap ¶
NameToRangesMap returns a map which maps node ID ("nameString") to its Range.
If the node has GUID then "ID" is the GUID. If not, then the node is identified by its type in format ("node/"+typeName).
Since multiple nodes may have the same GUID (and especially the same type), we enumerate nodes with the same "ID".