Documentation ¶
Index ¶
- Variables
- func NewVirtualPlugin(helper helper.HostHelpersInterface) (plugin.VendorPlugin, error)
- type VirtualPlugin
- func (p *VirtualPlugin) Apply() error
- func (p *VirtualPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)
- func (p *VirtualPlugin) IsSystemService() bool
- func (p *VirtualPlugin) Name() string
- func (p *VirtualPlugin) OnNodeStateChange(new *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)
- func (p *VirtualPlugin) SetSystemdFlag()
- func (p *VirtualPlugin) Spec() string
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) 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
Click to show internal directories.
Click to hide internal directories.