Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromServiceAccountHandlerToHandler ¶
func FromServiceAccountHandlerToHandler(sync ServiceAccountHandler) generic.Handler
Types ¶
type Interface ¶
type Interface interface {
ServiceAccount() ServiceAccountController
}
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.CoreV1Interface, informers informers.Interface) Interface
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.