Documentation ¶
Overview ¶
Package node contains the controller logic for the Nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeStateWriter ¶
type NopNodeStateWriter ¶
type NopNodeStateWriter struct{}
func (NopNodeStateWriter) DeleteNodeState ¶
func (NopNodeStateWriter) DeleteNodeState(name string)
func (NopNodeStateWriter) SetNodeState ¶
func (NopNodeStateWriter) SetNodeState(name string, state NodeState)
type Reconciler ¶
Reconciler reconciles a Node object to detect shutdown events and notify Playground pods running on that Node.
func NewReconciler ¶
func NewReconciler(c client.Client, s *runtime.Scheme, opts ...ReconcilerOption) *Reconciler
NewReconciler returns a new Reconciler.
type ReconcilerOption ¶
type ReconcilerOption func(*Reconciler)
ReconcilerOption is a function that sets some option on the Reconciler.
func WithEventRecorder ¶
func WithEventRecorder(e event.Recorder) ReconcilerOption
WithEventRecorder sets the EventRecorder for the Reconciler.
func WithLogger ¶
func WithLogger(l logging.Logger) ReconcilerOption
WithLogger sets the Logger for the Reconciler.
func WithNodeStateWriter ¶
func WithNodeStateWriter(s NodeStateWriter) ReconcilerOption
WithNodeStateWriter sets the NodeStateWriter for the Reconciler.
type Server ¶
func (*Server) DeleteNodeState ¶
DeleteNodeState deletes the state of a node from the map.
func (*Server) GetNodeState ¶
GetNodeState gets the state of a node.
func (*Server) SetNodeState ¶
SetNodeState sets the state of a node.
Click to show internal directories.
Click to hide internal directories.