Documentation ¶
Index ¶
- Variables
- func NewIntelPlugin(helpers helper.HostHelpersInterface) (plugin.VendorPlugin, error)
- type IntelPlugin
- func (p *IntelPlugin) Apply() error
- func (p *IntelPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)
- func (p *IntelPlugin) Name() string
- func (p *IntelPlugin) OnNodeStateChange(*sriovnetworkv1.SriovNetworkNodeState) (bool, bool, error)
- func (p *IntelPlugin) Spec() string
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) 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) 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
Click to show internal directories.
Click to hide internal directories.