Documentation ¶
Index ¶
Constants ¶
View Source
const (
CheckpointFileName = "sno-initial-node-state.json"
)
Variables ¶
View Source
var ( GenericPlugin = genericplugin.NewGenericPlugin GenericPluginName = genericplugin.PluginName VirtualPlugin = virtualplugin.NewVirtualPlugin K8sPlugin = k8splugin.NewK8sPlugin )
View Source
var VendorPluginMap = map[string]func() (plugin.VendorPlugin, error){ "8086": intelplugin.NewIntelPlugin, "15b3": mellanoxplugin.NewMellanoxPlugin, }
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func New ¶
func New( nodeName string, client snclientset.Interface, kubeClient *kubernetes.Clientset, mcClient *mcclientset.Clientset, exitCh chan<- error, stopCh <-chan struct{}, syncCh <-chan struct{}, refreshCh chan<- Message, platformType utils.PlatformType, ) *Daemon
type NodeStateStatusWriter ¶
type NodeStateStatusWriter struct { OnHeartbeatFailure func() // contains filtered or unexported fields }
func NewNodeStateStatusWriter ¶
func NewNodeStateStatusWriter(c snclientset.Interface, n string, f func(), devMode bool) *NodeStateStatusWriter
NewNodeStateStatusWriter Create a new NodeStateStatusWriter
func (*NodeStateStatusWriter) Run ¶
func (w *NodeStateStatusWriter) Run(stop <-chan struct{}, refresh <-chan Message, syncCh chan<- struct{}, platformType utils.PlatformType) 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(destDir string, platformType utils.PlatformType) error
RunOnce initial the interface status for both baremetal and virtual environments
Click to show internal directories.
Click to hide internal directories.