Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiliumNodeGetterUpdater ¶
type CiliumNodeGetterUpdater interface {
Create(node *v2.CiliumNode) (*v2.CiliumNode, error)
Update(origResource, newResource *v2.CiliumNode) (*v2.CiliumNode, error)
UpdateStatus(origResource, newResource *v2.CiliumNode) (*v2.CiliumNode, error)
Get(name string) (*v2.CiliumNode, error)
}
CiliumNodeGetterUpdater defines the interface used to interact with the k8s apiserver to retrieve and update the CiliumNode custom resource
type NodeEventHandler ¶
type NodeEventHandler interface {
Upsert(resource *v2.CiliumNode)
Delete(resource *v2.CiliumNode)
Resync(context.Context, time.Time)
Stop()
}
NodeEventHandler should implement the behavior to handle CiliumNode
type NodeEventHandlerFactory ¶
type NodeEventHandlerFactory func(ctx context.Context) (NodeEventHandler, error)
NodeEventHandlerFactory is a function type that returns a NodeEventHandler, used to decouple the allocator logic from the specific implementation of the CiliumNode event handling.
type NodeWatcherJobFactory ¶
type NodeWatcherJobFactory func(nmFactory NodeEventHandlerFactory) job.Job
NodeWatcherJobFactory is a function type that returns a Job responsible for watching CiliumNode resources and triggering the appropriate events in the allocator.
Click to show internal directories.
Click to hide internal directories.