firmware

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ChecksumComposedCollector model.CollectorUtility = "checksum-collector"
View Source
const FirmwareDumpUtility model.CollectorUtility = "flashrom"
View Source
const UEFIParserUtility model.CollectorUtility = "uefi-firmware-parser"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumCollector

type ChecksumCollector struct {
	// contains filtered or unexported fields
}

ChecksumCollector implements the FirmwareChecksumCollector interface

func NewChecksumCollector

func NewChecksumCollector(opts ...ChecksumOption) *ChecksumCollector

func (*ChecksumCollector) Attributes

func (*ChecksumCollector) Attributes() (utilName model.CollectorUtility, absolutePath string, err error)

Attributes implements the actions.UtilAttributeGetter interface

Unlike most usages, BIOS checksums rely on several discrete executables. This function returns its own name, and it's incumbent on the caller to check if FirmwareDumpUtility or UEFIParserUtility are denied as well.

func (*ChecksumCollector) BIOSLogoChecksum

func (cc *ChecksumCollector) BIOSLogoChecksum(ctx context.Context) (string, error)

BIOSLogoChecksum implements the FirmwareChecksumCollector interface.

type ChecksumOption

type ChecksumOption func(*ChecksumCollector)

func MakeOutputPath

func MakeOutputPath() ChecksumOption

func TraceExecution

func TraceExecution(tf bool) ChecksumOption

func WithOutputFile

func WithOutputFile(n string) ChecksumOption

func WithOutputPath

func WithOutputPath(p string) ChecksumOption

Jump to

Keyboard shortcuts

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