generic

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dmidecode *utils.Dmidecode, l *logrus.Logger) (actions.DeviceManager, error)

New returns a generic device manager

Types

type Generic

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

A Generic device has methods to collect hardware inventory, regardless of the vendor

func (*Generic) ApplyUpdate added in v0.2.4

func (a *Generic) ApplyUpdate(_ context.Context, _, _ string) error

ApplyUpdate is here to satisfy the actions.Updater interface it is to be deprecated in favor of InstallUpdates.

func (*Generic) GetBIOSConfiguration

func (g *Generic) GetBIOSConfiguration(_ context.Context) (map[string]string, error)

func (*Generic) GetInventory

func (a *Generic) GetInventory(ctx context.Context, options ...actions.Option) (*common.Device, error)

Returns hardware inventory for the device

func (*Generic) GetInventoryOEM

func (a *Generic) GetInventoryOEM(_ context.Context, _ *common.Device, _ *model.UpdateOptions) error

GetInventoryOEM collects device inventory using vendor specific tooling and updates the given device.OemComponents object with the OEM inventory

func (*Generic) GetModel

func (a *Generic) GetModel() string

func (*Generic) GetVendor

func (a *Generic) GetVendor() string

func (*Generic) InstallUpdates

func (a *Generic) InstallUpdates(_ context.Context, _ *model.UpdateOptions) error

InstallUpdates installs updates based on updateOptions

func (*Generic) ListAvailableUpdates

func (a *Generic) ListAvailableUpdates(_ context.Context, _ *model.UpdateOptions) (*common.Device, error)

ListAvailableUpdates runs the vendor tooling (dsu) to identify updates available

func (*Generic) RebootRequired

func (a *Generic) RebootRequired() bool

func (*Generic) SetBIOSConfiguration

func (g *Generic) SetBIOSConfiguration(_ context.Context, _ map[string]string) error

func (*Generic) UpdateRequirements added in v0.5.0

func (a *Generic) UpdateRequirements(_ context.Context, _, _, _ string) (*model.UpdateRequirements, error)

UpdateRequirements returns requirements to be met before and after a firmware install, the caller may use the information to determine if a powercycle, reconfiguration or other actions are required on the component.

func (*Generic) UpdatesApplied

func (a *Generic) UpdatesApplied() bool

Jump to

Keyboard shortcuts

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