Documentation ¶
Index ¶
- func FromConfigMapHandlerToHandler(sync ConfigMapHandler) generic.Handler
- func FromEndpointsHandlerToHandler(sync EndpointsHandler) generic.Handler
- func FromEventHandlerToHandler(sync EventHandler) generic.Handler
- func FromNamespaceHandlerToHandler(sync NamespaceHandler) generic.Handler
- func FromNodeHandlerToHandler(sync NodeHandler) generic.Handler
- func FromPersistentVolumeClaimHandlerToHandler(sync PersistentVolumeClaimHandler) generic.Handler
- func FromPodHandlerToHandler(sync PodHandler) generic.Handler
- func FromSecretHandlerToHandler(sync SecretHandler) generic.Handler
- func FromServiceAccountHandlerToHandler(sync ServiceAccountHandler) generic.Handler
- func FromServiceHandlerToHandler(sync ServiceHandler) generic.Handler
- func RegisterNamespaceGeneratingHandler(ctx context.Context, controller NamespaceController, apply apply.Apply, ...)
- func RegisterNamespaceStatusHandler(ctx context.Context, controller NamespaceController, condition condition.Cond, ...)
- func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply, ...)
- func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, ...)
- func RegisterPersistentVolumeClaimGeneratingHandler(ctx context.Context, controller PersistentVolumeClaimController, ...)
- func RegisterPersistentVolumeClaimStatusHandler(ctx context.Context, controller PersistentVolumeClaimController, ...)
- func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply, ...)
- func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, ...)
- func RegisterServiceGeneratingHandler(ctx context.Context, controller ServiceController, apply apply.Apply, ...)
- func RegisterServiceStatusHandler(ctx context.Context, controller ServiceController, condition condition.Cond, ...)
- func UpdateConfigMapDeepCopyOnChange(client ConfigMapClient, obj *v1.ConfigMap, ...) (*v1.ConfigMap, error)
- func UpdateEndpointsDeepCopyOnChange(client EndpointsClient, obj *v1.Endpoints, ...) (*v1.Endpoints, error)
- func UpdateEventDeepCopyOnChange(client EventClient, obj *v1.Event, ...) (*v1.Event, error)
- func UpdateNamespaceDeepCopyOnChange(client NamespaceClient, obj *v1.Namespace, ...) (*v1.Namespace, error)
- func UpdateNodeDeepCopyOnChange(client NodeClient, obj *v1.Node, handler func(obj *v1.Node) (*v1.Node, error)) (*v1.Node, error)
- func UpdatePersistentVolumeClaimDeepCopyOnChange(client PersistentVolumeClaimClient, obj *v1.PersistentVolumeClaim, ...) (*v1.PersistentVolumeClaim, error)
- func UpdatePodDeepCopyOnChange(client PodClient, obj *v1.Pod, handler func(obj *v1.Pod) (*v1.Pod, error)) (*v1.Pod, error)
- func UpdateSecretDeepCopyOnChange(client SecretClient, obj *v1.Secret, ...) (*v1.Secret, error)
- func UpdateServiceAccountDeepCopyOnChange(client ServiceAccountClient, obj *v1.ServiceAccount, ...) (*v1.ServiceAccount, error)
- func UpdateServiceDeepCopyOnChange(client ServiceClient, obj *v1.Service, ...) (*v1.Service, error)
- type ConfigMapCache
- type ConfigMapClient
- type ConfigMapController
- type ConfigMapHandler
- type ConfigMapIndexer
- type EndpointsCache
- type EndpointsClient
- type EndpointsController
- type EndpointsHandler
- type EndpointsIndexer
- type EventCache
- type EventClient
- type EventController
- type EventHandler
- type EventIndexer
- type Interface
- type NamespaceCache
- type NamespaceClient
- type NamespaceController
- type NamespaceGeneratingHandler
- type NamespaceHandler
- type NamespaceIndexer
- type NamespaceStatusHandler
- type NodeCache
- type NodeClient
- type NodeController
- type NodeGeneratingHandler
- type NodeHandler
- type NodeIndexer
- type NodeStatusHandler
- type PersistentVolumeClaimCache
- type PersistentVolumeClaimClient
- type PersistentVolumeClaimController
- type PersistentVolumeClaimGeneratingHandler
- type PersistentVolumeClaimHandler
- type PersistentVolumeClaimIndexer
- type PersistentVolumeClaimStatusHandler
- type PodCache
- type PodClient
- type PodController
- type PodGeneratingHandler
- type PodHandler
- type PodIndexer
- type PodStatusHandler
- type SecretCache
- type SecretClient
- type SecretController
- type SecretHandler
- type SecretIndexer
- type ServiceAccountCache
- type ServiceAccountClient
- type ServiceAccountController
- type ServiceAccountHandler
- type ServiceAccountIndexer
- type ServiceCache
- type ServiceClient
- type ServiceController
- type ServiceGeneratingHandler
- type ServiceHandler
- type ServiceIndexer
- type ServiceStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromConfigMapHandlerToHandler ¶
func FromConfigMapHandlerToHandler(sync ConfigMapHandler) generic.Handler
func FromEndpointsHandlerToHandler ¶
func FromEndpointsHandlerToHandler(sync EndpointsHandler) generic.Handler
func FromEventHandlerToHandler ¶
func FromEventHandlerToHandler(sync EventHandler) generic.Handler
func FromNamespaceHandlerToHandler ¶
func FromNamespaceHandlerToHandler(sync NamespaceHandler) generic.Handler
func FromNodeHandlerToHandler ¶
func FromNodeHandlerToHandler(sync NodeHandler) generic.Handler
func FromPersistentVolumeClaimHandlerToHandler ¶
func FromPersistentVolumeClaimHandlerToHandler(sync PersistentVolumeClaimHandler) generic.Handler
func FromPodHandlerToHandler ¶
func FromPodHandlerToHandler(sync PodHandler) generic.Handler
func FromSecretHandlerToHandler ¶
func FromSecretHandlerToHandler(sync SecretHandler) generic.Handler
func FromServiceAccountHandlerToHandler ¶
func FromServiceAccountHandlerToHandler(sync ServiceAccountHandler) generic.Handler
func FromServiceHandlerToHandler ¶
func FromServiceHandlerToHandler(sync ServiceHandler) generic.Handler
func RegisterNamespaceGeneratingHandler ¶
func RegisterNamespaceGeneratingHandler(ctx context.Context, controller NamespaceController, apply apply.Apply, condition condition.Cond, name string, handler NamespaceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterNamespaceStatusHandler ¶
func RegisterNamespaceStatusHandler(ctx context.Context, controller NamespaceController, condition condition.Cond, name string, handler NamespaceStatusHandler)
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)
func RegisterPersistentVolumeClaimGeneratingHandler ¶
func RegisterPersistentVolumeClaimGeneratingHandler(ctx context.Context, controller PersistentVolumeClaimController, apply apply.Apply, condition condition.Cond, name string, handler PersistentVolumeClaimGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterPersistentVolumeClaimStatusHandler ¶
func RegisterPersistentVolumeClaimStatusHandler(ctx context.Context, controller PersistentVolumeClaimController, condition condition.Cond, name string, handler PersistentVolumeClaimStatusHandler)
func RegisterPodGeneratingHandler ¶
func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply, condition condition.Cond, name string, handler PodGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterPodStatusHandler ¶
func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, name string, handler PodStatusHandler)
func RegisterServiceGeneratingHandler ¶
func RegisterServiceGeneratingHandler(ctx context.Context, controller ServiceController, apply apply.Apply, condition condition.Cond, name string, handler ServiceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterServiceStatusHandler ¶
func RegisterServiceStatusHandler(ctx context.Context, controller ServiceController, condition condition.Cond, name string, handler ServiceStatusHandler)
func UpdatePersistentVolumeClaimDeepCopyOnChange ¶
func UpdatePersistentVolumeClaimDeepCopyOnChange(client PersistentVolumeClaimClient, obj *v1.PersistentVolumeClaim, handler func(obj *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)) (*v1.PersistentVolumeClaim, error)
func UpdateServiceAccountDeepCopyOnChange ¶
func UpdateServiceAccountDeepCopyOnChange(client ServiceAccountClient, obj *v1.ServiceAccount, handler func(obj *v1.ServiceAccount) (*v1.ServiceAccount, error)) (*v1.ServiceAccount, error)
Types ¶
type ConfigMapCache ¶
type ConfigMapClient ¶
type ConfigMapClient interface { Create(*v1.ConfigMap) (*v1.ConfigMap, error) Update(*v1.ConfigMap) (*v1.ConfigMap, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.ConfigMap, error) List(namespace string, opts metav1.ListOptions) (*v1.ConfigMapList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) }
type ConfigMapController ¶
type ConfigMapController interface { generic.ControllerMeta ConfigMapClient OnChange(ctx context.Context, name string, sync ConfigMapHandler) OnRemove(ctx context.Context, name string, sync ConfigMapHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() ConfigMapCache }
func NewConfigMapController ¶
func NewConfigMapController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ConfigMapController
type EndpointsCache ¶
type EndpointsClient ¶
type EndpointsClient interface { Create(*v1.Endpoints) (*v1.Endpoints, error) Update(*v1.Endpoints) (*v1.Endpoints, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Endpoints, error) List(namespace string, opts metav1.ListOptions) (*v1.EndpointsList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Endpoints, err error) }
type EndpointsController ¶
type EndpointsController interface { generic.ControllerMeta EndpointsClient OnChange(ctx context.Context, name string, sync EndpointsHandler) OnRemove(ctx context.Context, name string, sync EndpointsHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() EndpointsCache }
func NewEndpointsController ¶
func NewEndpointsController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) EndpointsController
type EventCache ¶
type EventClient ¶
type EventClient interface { Create(*v1.Event) (*v1.Event, error) Update(*v1.Event) (*v1.Event, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Event, error) List(namespace string, opts metav1.ListOptions) (*v1.EventList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) }
type EventController ¶
type EventController interface { generic.ControllerMeta EventClient OnChange(ctx context.Context, name string, sync EventHandler) OnRemove(ctx context.Context, name string, sync EventHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() EventCache }
func NewEventController ¶
func NewEventController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) EventController
type Interface ¶
type Interface interface { ConfigMap() ConfigMapController Endpoints() EndpointsController Event() EventController Namespace() NamespaceController Node() NodeController PersistentVolumeClaim() PersistentVolumeClaimController Pod() PodController Secret() SecretController Service() ServiceController ServiceAccount() ServiceAccountController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type NamespaceCache ¶
type NamespaceClient ¶
type NamespaceClient interface { Create(*v1.Namespace) (*v1.Namespace, error) Update(*v1.Namespace) (*v1.Namespace, error) UpdateStatus(*v1.Namespace) (*v1.Namespace, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v1.Namespace, error) List(opts metav1.ListOptions) (*v1.NamespaceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) }
type NamespaceController ¶
type NamespaceController interface { generic.ControllerMeta NamespaceClient OnChange(ctx context.Context, name string, sync NamespaceHandler) OnRemove(ctx context.Context, name string, sync NamespaceHandler) Enqueue(name string) EnqueueAfter(name string, duration time.Duration) Cache() NamespaceCache }
func NewNamespaceController ¶
func NewNamespaceController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) NamespaceController
type NamespaceGeneratingHandler ¶
type NamespaceGeneratingHandler func(obj *v1.Namespace, status v1.NamespaceStatus) ([]runtime.Object, v1.NamespaceStatus, error)
type NamespaceStatusHandler ¶
type NamespaceStatusHandler func(obj *v1.Namespace, status v1.NamespaceStatus) (v1.NamespaceStatus, error)
type NodeClient ¶
type NodeClient interface { Create(*v1.Node) (*v1.Node, error) Update(*v1.Node) (*v1.Node, error) UpdateStatus(*v1.Node) (*v1.Node, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v1.Node, error) List(opts metav1.ListOptions) (*v1.NodeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.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(name string) EnqueueAfter(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 *v1.Node, status v1.NodeStatus) ([]runtime.Object, v1.NodeStatus, error)
type NodeStatusHandler ¶
type NodeStatusHandler func(obj *v1.Node, status v1.NodeStatus) (v1.NodeStatus, error)
type PersistentVolumeClaimCache ¶
type PersistentVolumeClaimCache interface { Get(namespace, name string) (*v1.PersistentVolumeClaim, error) List(namespace string, selector labels.Selector) ([]*v1.PersistentVolumeClaim, error) AddIndexer(indexName string, indexer PersistentVolumeClaimIndexer) GetByIndex(indexName, key string) ([]*v1.PersistentVolumeClaim, error) }
type PersistentVolumeClaimClient ¶
type PersistentVolumeClaimClient interface { Create(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) Update(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) UpdateStatus(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.PersistentVolumeClaim, error) List(namespace string, opts metav1.ListOptions) (*v1.PersistentVolumeClaimList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.PersistentVolumeClaim, err error) }
type PersistentVolumeClaimController ¶
type PersistentVolumeClaimController interface { generic.ControllerMeta PersistentVolumeClaimClient OnChange(ctx context.Context, name string, sync PersistentVolumeClaimHandler) OnRemove(ctx context.Context, name string, sync PersistentVolumeClaimHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() PersistentVolumeClaimCache }
func NewPersistentVolumeClaimController ¶
func NewPersistentVolumeClaimController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) PersistentVolumeClaimController
type PersistentVolumeClaimGeneratingHandler ¶
type PersistentVolumeClaimGeneratingHandler func(obj *v1.PersistentVolumeClaim, status v1.PersistentVolumeClaimStatus) ([]runtime.Object, v1.PersistentVolumeClaimStatus, error)
type PersistentVolumeClaimHandler ¶
type PersistentVolumeClaimHandler func(string, *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
type PersistentVolumeClaimIndexer ¶
type PersistentVolumeClaimIndexer func(obj *v1.PersistentVolumeClaim) ([]string, error)
type PersistentVolumeClaimStatusHandler ¶
type PersistentVolumeClaimStatusHandler func(obj *v1.PersistentVolumeClaim, status v1.PersistentVolumeClaimStatus) (v1.PersistentVolumeClaimStatus, error)
type PodClient ¶
type PodClient interface { Create(*v1.Pod) (*v1.Pod, error) Update(*v1.Pod) (*v1.Pod, error) UpdateStatus(*v1.Pod) (*v1.Pod, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Pod, error) List(namespace string, opts metav1.ListOptions) (*v1.PodList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error) }
type PodController ¶
type PodController interface { generic.ControllerMeta PodClient OnChange(ctx context.Context, name string, sync PodHandler) OnRemove(ctx context.Context, name string, sync PodHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() PodCache }
func NewPodController ¶
func NewPodController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) PodController
type PodGeneratingHandler ¶
type PodStatusHandler ¶
type SecretCache ¶
type SecretClient ¶
type SecretClient interface { Create(*v1.Secret) (*v1.Secret, error) Update(*v1.Secret) (*v1.Secret, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Secret, error) List(namespace string, opts metav1.ListOptions) (*v1.SecretList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) }
type SecretController ¶
type SecretController interface { generic.ControllerMeta SecretClient OnChange(ctx context.Context, name string, sync SecretHandler) OnRemove(ctx context.Context, name string, sync SecretHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() SecretCache }
func NewSecretController ¶
func NewSecretController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) SecretController
type ServiceAccountCache ¶
type ServiceAccountCache interface { Get(namespace, name string) (*v1.ServiceAccount, error) List(namespace string, selector labels.Selector) ([]*v1.ServiceAccount, error) AddIndexer(indexName string, indexer ServiceAccountIndexer) GetByIndex(indexName, key string) ([]*v1.ServiceAccount, error) }
type ServiceAccountClient ¶
type ServiceAccountClient interface { Create(*v1.ServiceAccount) (*v1.ServiceAccount, error) Update(*v1.ServiceAccount) (*v1.ServiceAccount, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.ServiceAccount, error) List(namespace string, opts metav1.ListOptions) (*v1.ServiceAccountList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ServiceAccount, err error) }
type ServiceAccountController ¶
type ServiceAccountController interface { generic.ControllerMeta ServiceAccountClient OnChange(ctx context.Context, name string, sync ServiceAccountHandler) OnRemove(ctx context.Context, name string, sync ServiceAccountHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() ServiceAccountCache }
func NewServiceAccountController ¶
func NewServiceAccountController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ServiceAccountController
type ServiceAccountHandler ¶
type ServiceAccountHandler func(string, *v1.ServiceAccount) (*v1.ServiceAccount, error)
type ServiceAccountIndexer ¶
type ServiceAccountIndexer func(obj *v1.ServiceAccount) ([]string, error)
type ServiceCache ¶
type ServiceClient ¶
type ServiceClient interface { Create(*v1.Service) (*v1.Service, error) Update(*v1.Service) (*v1.Service, error) UpdateStatus(*v1.Service) (*v1.Service, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Service, error) List(namespace string, opts metav1.ListOptions) (*v1.ServiceList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) }
type ServiceController ¶
type ServiceController interface { generic.ControllerMeta ServiceClient OnChange(ctx context.Context, name string, sync ServiceHandler) OnRemove(ctx context.Context, name string, sync ServiceHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() ServiceCache }
func NewServiceController ¶
func NewServiceController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ServiceController
type ServiceGeneratingHandler ¶
type ServiceGeneratingHandler func(obj *v1.Service, status v1.ServiceStatus) ([]runtime.Object, v1.ServiceStatus, error)
type ServiceStatusHandler ¶
type ServiceStatusHandler func(obj *v1.Service, status v1.ServiceStatus) (v1.ServiceStatus, error)
Click to show internal directories.
Click to hide internal directories.