errs

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoUpdatesApplicable            = errors.New("no updates applicable")
	ErrDmiDecodeRun                   = errors.New("error running dmidecode")
	ErrComponentListExpected          = errors.New("expected a list of components to apply updates")
	ErrDeviceInventory                = errors.New("failed to collect device inventory")
	ErrUnsupportedDiskVendor          = errors.New("unsupported disk vendor")
	ErrNoUpdateHandlerForComponent    = errors.New("component slug has no update handler declared")
	ErrNoUpdateReqHandlerForComponent = errors.New("component slug has no update requirements handler declared")
	ErrNoUpdateReqGetterForComponent  = errors.New("component slug has no update requirements getter handler declared")
	ErrBinNotExecutable               = errors.New("bin has no executable bit set")
	ErrBinLstat                       = errors.New("failed to run lstat on bin")
	ErrBinLookupPath                  = errors.New("failed to lookup bin path")
	ErrUpdateReqNotImplemented        = errors.New("UpdateRequirementsGetter interface not implemented")
)

Functions

This section is empty.

Types

type DmiDecodeValueError

type DmiDecodeValueError struct {
	Section string
	Field   string
	TypeID  int
}

DmiDecodeValueError is returned when a dmidecode value could not be retrieved

func NewDmidecodeValueError

func NewDmidecodeValueError(section, field string, typeID int) *DmiDecodeValueError

NewDmidevodeValueError returns a DmiDecodeValueError object

func (*DmiDecodeValueError) Error

func (d *DmiDecodeValueError) Error() string

Error implements the error interface

Jump to

Keyboard shortcuts

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