intel

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginName = "intel_plugin"

Functions

func NewIntelPlugin added in v1.2.0

func NewIntelPlugin() (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) Name

func (p *IntelPlugin) Name() string

Name returns the name of the plugin

func (*IntelPlugin) OnNodeStateAdd

func (p *IntelPlugin) OnNodeStateAdd(state *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)

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

func (*IntelPlugin) OnNodeStateChange

func (p *IntelPlugin) OnNodeStateChange(old, new *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)

OnNodeStateChange Invoked when SriovNetworkNodeState CR is 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