# Functions
EnvOrDefaultAlerter returns the default instance ghw will use to emit its warnings.
EnvOrDefaultChroot returns the value of the GHW_CHROOT environs variable or the default value of "/" if not set.
EnvOrDefaultSnapshotExclusive returns the value of the GHW_SNAPSHOT_EXCLUSIVE environs variable or the default value of false if not set.
EnvOrDefaultSnapshotPath returns the value of the GHW_SNAPSHOT_PATH environs variable or the default value of "" (disable snapshot consumption) if not set.
EnvOrDefaultSnapshotPreserve returns the value of the GHW_SNAPSHOT_PRESERVE environs variable or the default value of false if not set.
EnvOrDefaultSnapshotRoot returns the value of the the GHW_SNAPSHOT_ROOT environs variable or the default value of "" (self-manage the snapshot unpack directory, if relevant) if not set.
EnvOrDefaultTools return true if ghw should use external tools to augment the data collected from sysfs.
Merge accepts one or more Options and merges them together, returning the merged Option.
WithAlerter sets alerting options for ghw.
WithChroot allows to override the root directory ghw uses.
WithDisableTools sets enables or prohibts ghw to call external tools to discover hardware capabilities.
WithNullAlerter sets No-op alerting options for ghw.
WithPathOverrides supplies path-specific overrides for the context.
WithSnapshot sets snapshot-processing options for a ghw run.
# Structs
Option is used to represent optionally-configured settings.
SnapshotOptions contains options for handling of ghw snapshots.
# Interfaces
Alerter emits warnings about undesirable but recoverable errors.
# Type aliases
PathOverrides is a map, keyed by the string name of a mount path, of override paths.