Documentation ¶
Index ¶
- func FromNodeHandlerToHandler(sync NodeHandler) generic.Handler
- func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply, ...)
- func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, ...)
- func UpdateNodeDeepCopyOnChange(client NodeClient, obj *v1beta2.Node, ...) (*v1beta2.Node, error)
- type Interface
- type NodeCache
- type NodeClient
- type NodeController
- type NodeGeneratingHandler
- type NodeHandler
- type NodeIndexer
- type NodeStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromNodeHandlerToHandler ¶
func FromNodeHandlerToHandler(sync NodeHandler) generic.Handler
func RegisterNodeGeneratingHandler ¶
func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply, condition condition.Cond, name string, handler NodeGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterNodeStatusHandler ¶
func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, name string, handler NodeStatusHandler)
Types ¶
type Interface ¶
type Interface interface {
Node() NodeController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type NodeClient ¶
type NodeClient interface { Create(*v1beta2.Node) (*v1beta2.Node, error) Update(*v1beta2.Node) (*v1beta2.Node, error) UpdateStatus(*v1beta2.Node) (*v1beta2.Node, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1beta2.Node, error) List(namespace string, opts metav1.ListOptions) (*v1beta2.NodeList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.Node, err error) }
type NodeController ¶
type NodeController interface { generic.ControllerMeta NodeClient OnChange(ctx context.Context, name string, sync NodeHandler) OnRemove(ctx context.Context, name string, sync NodeHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() NodeCache }
func NewNodeController ¶
func NewNodeController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) NodeController
type NodeGeneratingHandler ¶
type NodeGeneratingHandler func(obj *v1beta2.Node, status v1beta2.NodeStatus) ([]runtime.Object, v1beta2.NodeStatus, error)
type NodeStatusHandler ¶
type NodeStatusHandler func(obj *v1beta2.Node, status v1beta2.NodeStatus) (v1beta2.NodeStatus, error)
Click to show internal directories.
Click to hide internal directories.