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
Click to show internal directories.
Click to hide internal directories.