Documentation ¶
Index ¶
- func FromConfigMapHandlerToHandler(sync ConfigMapHandler) generic.Handler
- func FromEndpointsHandlerToHandler(sync EndpointsHandler) 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
- type ConfigMapCache
- type ConfigMapClient
- type ConfigMapController
- type ConfigMapHandler
- type ConfigMapIndexer
- type EndpointsCache
- type EndpointsClient
- type EndpointsController
- type EndpointsHandler
- type EndpointsIndexer
- type Interface
- type NamespaceCache
- type NamespaceClient
- type NamespaceController
- type NamespaceHandler
- type NamespaceIndexer
- type NodeCache
- type NodeClient
- type NodeController
- type NodeHandler
- type NodeIndexer
- type PersistentVolumeClaimCache
- type PersistentVolumeClaimClient
- type PersistentVolumeClaimController
- type PersistentVolumeClaimHandler
- type PersistentVolumeClaimIndexer
- type PodCache
- type PodClient
- type PodController
- type PodHandler
- type PodIndexer
- 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 ServiceHandler
- type ServiceIndexer
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 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
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 { ConfigMapClient OnChange(ctx context.Context, name string, sync ConfigMapHandler) OnRemove(ctx context.Context, name string, sync ConfigMapHandler) Enqueue(namespace, name string) Cache() ConfigMapCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewConfigMapController ¶
func NewConfigMapController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.ConfigMapsGetter, informer informers.ConfigMapInformer) ConfigMapController
type ConfigMapHandler ¶
func UpdateConfigMapOnChange ¶
func UpdateConfigMapOnChange(updater generic.Updater, handler ConfigMapHandler) ConfigMapHandler
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 { EndpointsClient OnChange(ctx context.Context, name string, sync EndpointsHandler) OnRemove(ctx context.Context, name string, sync EndpointsHandler) Enqueue(namespace, name string) Cache() EndpointsCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewEndpointsController ¶
func NewEndpointsController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.EndpointsGetter, informer informers.EndpointsInformer) EndpointsController
type EndpointsHandler ¶
func UpdateEndpointsOnChange ¶
func UpdateEndpointsOnChange(updater generic.Updater, handler EndpointsHandler) EndpointsHandler
type Interface ¶
type Interface interface { ConfigMap() ConfigMapController Endpoints() EndpointsController Namespace() NamespaceController Node() NodeController PersistentVolumeClaim() PersistentVolumeClaimController Pod() PodController Secret() SecretController Service() ServiceController ServiceAccount() ServiceAccountController }
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.CoreV1Interface, informers informers.Interface) 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 { NamespaceClient OnChange(ctx context.Context, name string, sync NamespaceHandler) OnRemove(ctx context.Context, name string, sync NamespaceHandler) Enqueue(name string) Cache() NamespaceCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewNamespaceController ¶
func NewNamespaceController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.NamespacesGetter, informer informers.NamespaceInformer) NamespaceController
type NamespaceHandler ¶
func UpdateNamespaceOnChange ¶
func UpdateNamespaceOnChange(updater generic.Updater, handler NamespaceHandler) NamespaceHandler
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 { NodeClient OnChange(ctx context.Context, name string, sync NodeHandler) OnRemove(ctx context.Context, name string, sync NodeHandler) Enqueue(name string) Cache() NodeCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewNodeController ¶
func NewNodeController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.NodesGetter, informer informers.NodeInformer) NodeController
type NodeHandler ¶
func UpdateNodeOnChange ¶
func UpdateNodeOnChange(updater generic.Updater, handler NodeHandler) NodeHandler
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 { PersistentVolumeClaimClient OnChange(ctx context.Context, name string, sync PersistentVolumeClaimHandler) OnRemove(ctx context.Context, name string, sync PersistentVolumeClaimHandler) Enqueue(namespace, name string) Cache() PersistentVolumeClaimCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewPersistentVolumeClaimController ¶
func NewPersistentVolumeClaimController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.PersistentVolumeClaimsGetter, informer informers.PersistentVolumeClaimInformer) PersistentVolumeClaimController
type PersistentVolumeClaimHandler ¶
type PersistentVolumeClaimHandler func(string, *v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error)
func UpdatePersistentVolumeClaimOnChange ¶
func UpdatePersistentVolumeClaimOnChange(updater generic.Updater, handler PersistentVolumeClaimHandler) PersistentVolumeClaimHandler
type PersistentVolumeClaimIndexer ¶
type PersistentVolumeClaimIndexer func(obj *v1.PersistentVolumeClaim) ([]string, 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 { PodClient OnChange(ctx context.Context, name string, sync PodHandler) OnRemove(ctx context.Context, name string, sync PodHandler) Enqueue(namespace, name string) Cache() PodCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewPodController ¶
func NewPodController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.PodsGetter, informer informers.PodInformer) PodController
type PodHandler ¶
func UpdatePodOnChange ¶
func UpdatePodOnChange(updater generic.Updater, handler PodHandler) PodHandler
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 { SecretClient OnChange(ctx context.Context, name string, sync SecretHandler) OnRemove(ctx context.Context, name string, sync SecretHandler) Enqueue(namespace, name string) Cache() SecretCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewSecretController ¶
func NewSecretController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.SecretsGetter, informer informers.SecretInformer) SecretController
type SecretHandler ¶
func UpdateSecretOnChange ¶
func UpdateSecretOnChange(updater generic.Updater, handler SecretHandler) SecretHandler
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 { ServiceAccountClient OnChange(ctx context.Context, name string, sync ServiceAccountHandler) OnRemove(ctx context.Context, name string, sync ServiceAccountHandler) Enqueue(namespace, name string) Cache() ServiceAccountCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewServiceAccountController ¶
func NewServiceAccountController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.ServiceAccountsGetter, informer informers.ServiceAccountInformer) ServiceAccountController
type ServiceAccountHandler ¶
type ServiceAccountHandler func(string, *v1.ServiceAccount) (*v1.ServiceAccount, error)
func UpdateServiceAccountOnChange ¶
func UpdateServiceAccountOnChange(updater generic.Updater, handler ServiceAccountHandler) ServiceAccountHandler
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 { ServiceClient OnChange(ctx context.Context, name string, sync ServiceHandler) OnRemove(ctx context.Context, name string, sync ServiceHandler) Enqueue(namespace, name string) Cache() ServiceCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewServiceController ¶
func NewServiceController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.ServicesGetter, informer informers.ServiceInformer) ServiceController
type ServiceHandler ¶
func UpdateServiceOnChange ¶
func UpdateServiceOnChange(updater generic.Updater, handler ServiceHandler) ServiceHandler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.