virtual

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginName = "virtual"

Functions

func NewVirtualPlugin added in v1.2.0

func NewVirtualPlugin(helper helper.HostHelpersInterface) (plugin.VendorPlugin, error)

Initialize our plugin and set up initial values

Types

type VirtualPlugin

type VirtualPlugin struct {
	PluginName     string
	SpecVersion    string
	DesireState    *sriovnetworkv1.SriovNetworkNodeState
	LastState      *sriovnetworkv1.SriovNetworkNodeState
	LoadVfioDriver uint
	// contains filtered or unexported fields
}

VirtualPlugin Plugin type to use on a virtual platform

func (*VirtualPlugin) Apply

func (p *VirtualPlugin) Apply() error

Apply config change

func (*VirtualPlugin) CheckStatusChanges added in v1.3.0

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

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

func (*VirtualPlugin) IsSystemService added in v1.3.0

func (p *VirtualPlugin) IsSystemService() bool

func (*VirtualPlugin) Name

func (p *VirtualPlugin) Name() string

Name returns the name of the plugin

func (*VirtualPlugin) OnNodeStateChange

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

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

func (*VirtualPlugin) SetSystemdFlag added in v1.3.0

func (p *VirtualPlugin) SetSystemdFlag()

func (*VirtualPlugin) Spec

func (p *VirtualPlugin) 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