Documentation
¶
Index ¶
- func FromConfigMapHandlerToHandler(sync ConfigMapHandler) generic.Handler
- func FromSecretHandlerToHandler(sync SecretHandler) generic.Handler
- func FromServiceAccountHandlerToHandler(sync ServiceAccountHandler) generic.Handler
- type ConfigMapCache
- type ConfigMapClient
- type ConfigMapController
- type ConfigMapHandler
- type ConfigMapIndexer
- type Interface
- type SecretCache
- type SecretClient
- type SecretController
- type SecretHandler
- type SecretIndexer
- type ServiceAccountCache
- type ServiceAccountClient
- type ServiceAccountController
- type ServiceAccountHandler
- type ServiceAccountIndexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromConfigMapHandlerToHandler ¶
func FromConfigMapHandlerToHandler(sync ConfigMapHandler) generic.Handler
func FromSecretHandlerToHandler ¶
func FromSecretHandlerToHandler(sync SecretHandler) generic.Handler
func FromServiceAccountHandlerToHandler ¶
func FromServiceAccountHandlerToHandler(sync ServiceAccountHandler) 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 Interface ¶
type Interface interface {
ConfigMap() ConfigMapController
Secret() SecretController
ServiceAccount() ServiceAccountController
}
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.CoreV1Interface, informers informers.Interface) Interface
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)
Click to show internal directories.
Click to hide internal directories.