Documentation ¶
Index ¶
Constants ¶
View Source
const ( CheckpointFileName = "sno-initial-node-state.json" Unknown = "Unknown" )
Variables ¶
View Source
var ( GenericPlugin = genericplugin.NewGenericPlugin GenericPluginName = genericplugin.PluginName VirtualPlugin = virtualplugin.NewVirtualPlugin VirtualPluginName = virtualplugin.PluginName K8sPlugin = k8splugin.NewK8sPlugin )
View Source
var VendorPluginMap = map[string]func(helpers helper.HostHelpersInterface) (plugin.VendorPlugin, error){ "8086": intelplugin.NewIntelPlugin, "15b3": mellanoxplugin.NewMellanoxPlugin, }
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct { HostHelpers helper.HostHelpersInterface // contains filtered or unexported fields }
func New ¶
func New( client client.Client, sriovClient snclientset.Interface, kubeClient kubernetes.Interface, hostHelpers helper.HostHelpersInterface, platformHelper platforms.Interface, exitCh chan<- error, stopCh <-chan struct{}, syncCh <-chan struct{}, refreshCh chan<- Message, er *EventRecorder, featureGates featuregate.FeatureGate, disabledPlugins []string, ) *Daemon
type EventRecorder ¶ added in v1.3.0
type EventRecorder struct {
// contains filtered or unexported fields
}
func NewEventRecorder ¶ added in v1.3.0
func NewEventRecorder(c snclientset.Interface, kubeclient kubernetes.Interface) *EventRecorder
NewEventRecorder Create a new EventRecorder
func (*EventRecorder) SendEvent ¶ added in v1.3.0
func (e *EventRecorder) SendEvent(eventType string, msg string)
SendEvent Send an Event on the NodeState object
func (*EventRecorder) Shutdown ¶ added in v1.3.0
func (e *EventRecorder) Shutdown()
Shutdown Close the EventBroadcaster
type NodeStateStatusWriter ¶
type NodeStateStatusWriter struct { OnHeartbeatFailure func() // contains filtered or unexported fields }
func NewNodeStateStatusWriter ¶
func NewNodeStateStatusWriter(c snclientset.Interface, f func(), er *EventRecorder, hostHelper helper.HostHelpersInterface, platformHelper platforms.Interface) *NodeStateStatusWriter
NewNodeStateStatusWriter Create a new NodeStateStatusWriter
func (*NodeStateStatusWriter) Run ¶
func (w *NodeStateStatusWriter) Run(stop <-chan struct{}, refresh <-chan Message, syncCh chan<- struct{}) error
Run reads from the writer channel and sets the interface status. It will return if the stop channel is closed. Intended to be run via a goroutine.
func (*NodeStateStatusWriter) RunOnce ¶ added in v1.2.0
func (w *NodeStateStatusWriter) RunOnce() error
RunOnce initial the interface status for both baremetal and virtual environments
Click to show internal directories.
Click to hide internal directories.