daemon

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

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
)

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

func (*Daemon) Run

func (dn *Daemon) Run(stopCh <-chan struct{}, exitCh <-chan error) error

Run the config 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 Message

type Message struct {
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL