Documentation
¶
Index ¶
- func New(dmidecode *utils.Dmidecode, l *logrus.Logger) (actions.DeviceManager, error)
- type Generic
- func (a *Generic) ApplyUpdate(_ context.Context, _, _ string) error
- func (g *Generic) GetBIOSConfiguration(_ context.Context) (map[string]string, error)
- func (a *Generic) GetInventory(ctx context.Context, options ...actions.Option) (*common.Device, error)
- func (a *Generic) GetInventoryOEM(_ context.Context, _ *common.Device, _ *model.UpdateOptions) error
- func (a *Generic) GetModel() string
- func (a *Generic) GetVendor() string
- func (a *Generic) InstallUpdates(_ context.Context, _ *model.UpdateOptions) error
- func (a *Generic) ListAvailableUpdates(_ context.Context, _ *model.UpdateOptions) (*common.Device, error)
- func (a *Generic) RebootRequired() bool
- func (g *Generic) SetBIOSConfiguration(_ context.Context, _ map[string]string) error
- func (a *Generic) UpdateRequirements(_ context.Context, _, _, _ string) (*model.UpdateRequirements, error)
- func (a *Generic) UpdatesApplied() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
ApplyUpdate is here to satisfy the actions.Updater interface it is to be deprecated in favor of InstallUpdates.
func (*Generic) GetBIOSConfiguration ¶
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) InstallUpdates ¶
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 (*Generic) SetBIOSConfiguration ¶
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.