Versions in this module Expand all Collapse all v0 v0.0.3 Feb 14, 2026 v0.0.2 Feb 14, 2026 Changes in this version + const ComponentCPU + const ComponentDisk + const ComponentMAC + const ComponentMachineID + const ComponentMotherboard + const ComponentSystemUUID + var ErrAllMethodsFailed = errors.New("all collection methods failed") + var ErrEmptyValue = errors.New("empty value returned") + var ErrNoIdentifiers = errors.New("no hardware identifiers found with current configuration") + var ErrNoValues = errors.New("no values found") + var ErrNotFound = errors.New("value not found") + var ErrOEMPlaceholder = errors.New("value is OEM placeholder") + type CommandError struct + Command string + Err error + func (e *CommandError) Error() string + func (e *CommandError) Unwrap() error + type CommandExecutor interface + Execute func(ctx context.Context, name string, args ...string) (string, error) + type ComponentError struct + Component string + Err error + func (e *ComponentError) Error() string + func (e *ComponentError) Unwrap() error + type DiagnosticInfo struct + Collected []string + Errors map[string]error + type FormatMode int + const Format128 + const Format256 + const Format32 + const Format64 + type MACFilter int + const MACFilterAll + const MACFilterPhysical + const MACFilterVirtual + func (f MACFilter) String() string + type ParseError struct + Err error + Source string + func (e *ParseError) Error() string + func (e *ParseError) Unwrap() error + type Provider struct + func New() *Provider + func (p *Provider) Diagnostics() *DiagnosticInfo + func (p *Provider) ID(ctx context.Context) (string, error) + func (p *Provider) VMFriendly() *Provider + func (p *Provider) Validate(ctx context.Context, id string) (bool, error) + func (p *Provider) WithCPU() *Provider + func (p *Provider) WithDisk() *Provider + func (p *Provider) WithExecutor(executor CommandExecutor) *Provider + func (p *Provider) WithFormat(mode FormatMode) *Provider + func (p *Provider) WithLogger(logger *slog.Logger) *Provider + func (p *Provider) WithMAC(filter ...MACFilter) *Provider + func (p *Provider) WithMotherboard() *Provider + func (p *Provider) WithSalt(salt string) *Provider + func (p *Provider) WithSystemUUID() *Provider