intel

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginName = "intel"

Functions

func NewIntelPlugin added in v1.2.0

func NewIntelPlugin(helpers helper.HostHelpersInterface) (plugin.VendorPlugin, error)

Types

type IntelPlugin

type IntelPlugin struct {
	PluginName  string
	SpecVersion string
	DesireState *sriovnetworkv1.SriovNetworkNodeState
	LastState   *sriovnetworkv1.SriovNetworkNodeState
}

func (*IntelPlugin) Apply

func (p *IntelPlugin) Apply() error

Apply config change

func (*IntelPlugin) CheckStatusChanges added in v1.3.0

func (p *IntelPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)

OnNodeStatusChange verify whether SriovNetworkNodeState CR status present changes on configured VFs.

func (*IntelPlugin) Name

func (p *IntelPlugin) Name() string

Name returns the name of the plugin

func (*IntelPlugin) OnNodeStateChange

func (p *IntelPlugin) OnNodeStateChange(*sriovnetworkv1.SriovNetworkNodeState) (bool, bool, error)

OnNodeStateChange Invoked when SriovNetworkNodeState CR is created or updated, return if need dain and/or reboot node

func (*IntelPlugin) Spec

func (p *IntelPlugin) Spec() string

Spec returns the version of the spec expected by the plugin

Jump to

Keyboard shortcuts

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