Documentation ¶
Index ¶
- Variables
- func NewIntelPlugin() (plugin.VendorPlugin, error)
- type IntelPlugin
- func (p *IntelPlugin) Apply() error
- func (p *IntelPlugin) Name() string
- func (p *IntelPlugin) OnNodeStateAdd(state *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)
- func (p *IntelPlugin) OnNodeStateChange(old, new *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)
- func (p *IntelPlugin) Spec() string
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) 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
Click to show internal directories.
Click to hide internal directories.