Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromLeaseHandlerToHandler ¶
func FromLeaseHandlerToHandler(sync LeaseHandler) generic.Handler
Types ¶
type Interface ¶
type Interface interface {
Lease() LeaseController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type LeaseCache ¶
type LeaseClient ¶
type LeaseClient interface { Create(*v1.Lease) (*v1.Lease, error) Update(*v1.Lease) (*v1.Lease, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Lease, error) List(namespace string, opts metav1.ListOptions) (*v1.LeaseList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Lease, err error) }
type LeaseController ¶
type LeaseController interface { generic.ControllerMeta LeaseClient OnChange(ctx context.Context, name string, sync LeaseHandler) OnRemove(ctx context.Context, name string, sync LeaseHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() LeaseCache }
func NewLeaseController ¶
func NewLeaseController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) LeaseController
Click to show internal directories.
Click to hide internal directories.