Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromNodeHandlerToHandler ¶
func FromNodeHandlerToHandler(sync NodeHandler) generic.Handler
Types ¶
type Interface ¶
type Interface interface {
Node() NodeController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type NodeClient ¶
type NodeClient interface { Create(*v1beta1.Node) (*v1beta1.Node, error) Update(*v1beta1.Node) (*v1beta1.Node, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1beta1.Node, error) List(namespace string, opts metav1.ListOptions) (*v1beta1.NodeList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.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
Click to show internal directories.
Click to hide internal directories.