Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Client
- func (c *Client) ConfigMaps(namespace string) ConfigMapInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) Secrets(namespace string) SecretInterface
- func (c *Client) ServiceAccounts(namespace string) ServiceAccountInterface
- func (c *Client) Start(ctx context.Context, threadiness int) error
- func (c *Client) Sync(ctx context.Context) error
- type Clients
- type ConfigMapChangeHandlerFunc
- type ConfigMapClient
- type ConfigMapClientCache
- type ConfigMapController
- type ConfigMapHandlerFunc
- type ConfigMapIndexer
- type ConfigMapInterface
- type ConfigMapLifecycle
- type ConfigMapList
- type ConfigMapLister
- type ConfigMapsGetter
- type Interface
- type SecretChangeHandlerFunc
- type SecretClient
- type SecretClientCache
- type SecretController
- type SecretHandlerFunc
- type SecretIndexer
- type SecretInterface
- type SecretLifecycle
- type SecretList
- type SecretLister
- type SecretsGetter
- type ServiceAccountChangeHandlerFunc
- type ServiceAccountClient
- type ServiceAccountClientCache
- type ServiceAccountController
- type ServiceAccountHandlerFunc
- type ServiceAccountIndexer
- type ServiceAccountInterface
- type ServiceAccountLifecycle
- type ServiceAccountList
- type ServiceAccountLister
- type ServiceAccountsGetter
Constants ¶
const ( GroupName = "" Version = "v1" )
Variables ¶
var ( ConfigMapGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ConfigMap", } ConfigMapResource = metav1.APIResource{ Name: "configmaps", SingularName: "configmap", Namespaced: true, Kind: ConfigMapGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( SecretGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Secret", } SecretResource = metav1.APIResource{ Name: "secrets", SingularName: "secret", Namespaced: true, Kind: SecretGroupVersionKind.Kind, } )
var ( ServiceAccountGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ServiceAccount", } ServiceAccountResource = metav1.APIResource{ Name: "serviceaccounts", SingularName: "serviceaccount", Namespaced: true, Kind: ServiceAccountGroupVersionKind.Kind, } )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) ConfigMaps ¶
func (c *Client) ConfigMaps(namespace string) ConfigMapInterface
func (*Client) RESTClient ¶
func (*Client) Secrets ¶
func (c *Client) Secrets(namespace string) SecretInterface
func (*Client) ServiceAccounts ¶
func (c *Client) ServiceAccounts(namespace string) ServiceAccountInterface
type Clients ¶
type Clients struct { ConfigMap ConfigMapClient Secret SecretClient ServiceAccount ServiceAccountClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type ConfigMapClient ¶
type ConfigMapClient interface { Create(*v1.ConfigMap) (*v1.ConfigMap, error) Get(namespace, name string, opts metav1.GetOptions) (*v1.ConfigMap, error) Update(*v1.ConfigMap) (*v1.ConfigMap, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*ConfigMapList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() ConfigMapClientCache OnCreate(ctx context.Context, name string, sync ConfigMapChangeHandlerFunc) OnChange(ctx context.Context, name string, sync ConfigMapChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync ConfigMapChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController Interface() ConfigMapInterface }
type ConfigMapClientCache ¶
type ConfigMapController ¶
type ConfigMapController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() ConfigMapLister AddHandler(ctx context.Context, name string, handler ConfigMapHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ConfigMapHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type ConfigMapHandlerFunc ¶
func NewConfigMapLifecycleAdapter ¶
func NewConfigMapLifecycleAdapter(name string, clusterScoped bool, client ConfigMapInterface, l ConfigMapLifecycle) ConfigMapHandlerFunc
type ConfigMapInterface ¶
type ConfigMapInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.ConfigMap) (*v1.ConfigMap, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ConfigMap, error) Get(name string, opts metav1.GetOptions) (*v1.ConfigMap, error) Update(*v1.ConfigMap) (*v1.ConfigMap, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ConfigMapList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ConfigMapController AddHandler(ctx context.Context, name string, sync ConfigMapHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle ConfigMapLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ConfigMapHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ConfigMapLifecycle) }
type ConfigMapLifecycle ¶
type ConfigMapList ¶
type ConfigMapList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.ConfigMap }
func (*ConfigMapList) DeepCopy ¶
func (in *ConfigMapList) DeepCopy() *ConfigMapList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapList.
func (*ConfigMapList) DeepCopyInto ¶
func (in *ConfigMapList) DeepCopyInto(out *ConfigMapList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigMapList) DeepCopyObject ¶
func (in *ConfigMapList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigMapLister ¶
type ConfigMapsGetter ¶
type ConfigMapsGetter interface {
ConfigMaps(namespace string) ConfigMapInterface
}
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter ConfigMapsGetter SecretsGetter ServiceAccountsGetter }
type SecretChangeHandlerFunc ¶
type SecretClient ¶
type SecretClient interface { Create(*v1.Secret) (*v1.Secret, error) Get(namespace, name string, opts metav1.GetOptions) (*v1.Secret, error) Update(*v1.Secret) (*v1.Secret, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*SecretList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() SecretClientCache OnCreate(ctx context.Context, name string, sync SecretChangeHandlerFunc) OnChange(ctx context.Context, name string, sync SecretChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync SecretChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController Interface() SecretInterface }
type SecretClientCache ¶
type SecretController ¶
type SecretController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() SecretLister AddHandler(ctx context.Context, name string, handler SecretHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler SecretHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type SecretHandlerFunc ¶
func NewSecretLifecycleAdapter ¶
func NewSecretLifecycleAdapter(name string, clusterScoped bool, client SecretInterface, l SecretLifecycle) SecretHandlerFunc
type SecretInterface ¶
type SecretInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.Secret) (*v1.Secret, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.Secret, error) Get(name string, opts metav1.GetOptions) (*v1.Secret, error) Update(*v1.Secret) (*v1.Secret, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*SecretList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() SecretController AddHandler(ctx context.Context, name string, sync SecretHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle SecretLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync SecretHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle SecretLifecycle) }
type SecretLifecycle ¶
type SecretList ¶
type SecretList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.Secret }
func (*SecretList) DeepCopy ¶
func (in *SecretList) DeepCopy() *SecretList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretList.
func (*SecretList) DeepCopyInto ¶
func (in *SecretList) DeepCopyInto(out *SecretList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretList) DeepCopyObject ¶
func (in *SecretList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretLister ¶
type SecretsGetter ¶
type SecretsGetter interface {
Secrets(namespace string) SecretInterface
}
type ServiceAccountChangeHandlerFunc ¶
type ServiceAccountChangeHandlerFunc func(obj *v1.ServiceAccount) (runtime.Object, error)
type ServiceAccountClient ¶
type ServiceAccountClient interface { Create(*v1.ServiceAccount) (*v1.ServiceAccount, error) Get(namespace, name string, opts metav1.GetOptions) (*v1.ServiceAccount, error) Update(*v1.ServiceAccount) (*v1.ServiceAccount, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*ServiceAccountList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() ServiceAccountClientCache OnCreate(ctx context.Context, name string, sync ServiceAccountChangeHandlerFunc) OnChange(ctx context.Context, name string, sync ServiceAccountChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync ServiceAccountChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController Interface() ServiceAccountInterface }
type ServiceAccountClientCache ¶
type ServiceAccountClientCache interface { Get(namespace, name string) (*v1.ServiceAccount, error) List(namespace string, selector labels.Selector) ([]*v1.ServiceAccount, error) Index(name string, indexer ServiceAccountIndexer) GetIndexed(name, key string) ([]*v1.ServiceAccount, error) }
type ServiceAccountController ¶
type ServiceAccountController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() ServiceAccountLister AddHandler(ctx context.Context, name string, handler ServiceAccountHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ServiceAccountHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type ServiceAccountHandlerFunc ¶
func NewServiceAccountLifecycleAdapter ¶
func NewServiceAccountLifecycleAdapter(name string, clusterScoped bool, client ServiceAccountInterface, l ServiceAccountLifecycle) ServiceAccountHandlerFunc
type ServiceAccountIndexer ¶
type ServiceAccountIndexer func(obj *v1.ServiceAccount) ([]string, error)
type ServiceAccountInterface ¶
type ServiceAccountInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.ServiceAccount) (*v1.ServiceAccount, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ServiceAccount, error) Get(name string, opts metav1.GetOptions) (*v1.ServiceAccount, error) Update(*v1.ServiceAccount) (*v1.ServiceAccount, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ServiceAccountList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ServiceAccountController AddHandler(ctx context.Context, name string, sync ServiceAccountHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle ServiceAccountLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ServiceAccountHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ServiceAccountLifecycle) }
type ServiceAccountLifecycle ¶
type ServiceAccountLifecycle interface { Create(obj *v1.ServiceAccount) (runtime.Object, error) Remove(obj *v1.ServiceAccount) (runtime.Object, error) Updated(obj *v1.ServiceAccount) (runtime.Object, error) }
type ServiceAccountList ¶
type ServiceAccountList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.ServiceAccount }
func (*ServiceAccountList) DeepCopy ¶
func (in *ServiceAccountList) DeepCopy() *ServiceAccountList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountList.
func (*ServiceAccountList) DeepCopyInto ¶
func (in *ServiceAccountList) DeepCopyInto(out *ServiceAccountList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceAccountList) DeepCopyObject ¶
func (in *ServiceAccountList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceAccountLister ¶
type ServiceAccountLister interface { List(namespace string, selector labels.Selector) (ret []*v1.ServiceAccount, err error) Get(namespace, name string) (*v1.ServiceAccount, error) }
type ServiceAccountsGetter ¶
type ServiceAccountsGetter interface {
ServiceAccounts(namespace string) ServiceAccountInterface
}
Source Files ¶
- zz_generated_config_map_controller.go
- zz_generated_config_map_lifecycle_adapter.go
- zz_generated_deepcopy.go
- zz_generated_k8s_client.go
- zz_generated_scheme.go
- zz_generated_secret_controller.go
- zz_generated_secret_lifecycle_adapter.go
- zz_generated_service_account_controller.go
- zz_generated_service_account_lifecycle_adapter.go