Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewCustomResourceDefinition(namespace, name string, obj v1beta1.CustomResourceDefinition) *v1beta1.CustomResourceDefinition
- func Resource(resource string) schema.GroupResource
- type Client
- type Clients
- type CustomResourceDefinitionChangeHandlerFunc
- type CustomResourceDefinitionClient
- type CustomResourceDefinitionClientCache
- type CustomResourceDefinitionController
- type CustomResourceDefinitionHandlerFunc
- type CustomResourceDefinitionIndexer
- type CustomResourceDefinitionInterface
- type CustomResourceDefinitionLifecycle
- type CustomResourceDefinitionList
- type CustomResourceDefinitionLister
- type CustomResourceDefinitionsGetter
- type Interface
Constants ¶
View Source
const ( GroupName = "apiextensions.k8s.io" Version = "v1beta1" )
Variables ¶
View Source
var ( CustomResourceDefinitionGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "CustomResourceDefinition", } CustomResourceDefinitionResource = metav1.APIResource{ Name: "customresourcedefinitions", SingularName: "customresourcedefinition", Namespaced: false, Kind: CustomResourceDefinitionGroupVersionKind.Kind, } )
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewCustomResourceDefinition ¶
func NewCustomResourceDefinition(namespace, name string, obj v1beta1.CustomResourceDefinition) *v1beta1.CustomResourceDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) CustomResourceDefinitions ¶
func (c *Client) CustomResourceDefinitions(namespace string) CustomResourceDefinitionInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct { Interface Interface CustomResourceDefinition CustomResourceDefinitionClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type CustomResourceDefinitionChangeHandlerFunc ¶
type CustomResourceDefinitionChangeHandlerFunc func(obj *v1beta1.CustomResourceDefinition) (runtime.Object, error)
type CustomResourceDefinitionClient ¶
type CustomResourceDefinitionClient interface { Create(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) Get(namespace, name string, opts metav1.GetOptions) (*v1beta1.CustomResourceDefinition, error) Update(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*CustomResourceDefinitionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() CustomResourceDefinitionClientCache OnCreate(ctx context.Context, name string, sync CustomResourceDefinitionChangeHandlerFunc) OnChange(ctx context.Context, name string, sync CustomResourceDefinitionChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync CustomResourceDefinitionChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() CustomResourceDefinitionInterface }
type CustomResourceDefinitionClientCache ¶
type CustomResourceDefinitionClientCache interface { Get(namespace, name string) (*v1beta1.CustomResourceDefinition, error) List(namespace string, selector labels.Selector) ([]*v1beta1.CustomResourceDefinition, error) Index(name string, indexer CustomResourceDefinitionIndexer) GetIndexed(name, key string) ([]*v1beta1.CustomResourceDefinition, error) }
type CustomResourceDefinitionController ¶
type CustomResourceDefinitionController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() CustomResourceDefinitionLister AddHandler(ctx context.Context, name string, handler CustomResourceDefinitionHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler CustomResourceDefinitionHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type CustomResourceDefinitionHandlerFunc ¶
type CustomResourceDefinitionHandlerFunc func(key string, obj *v1beta1.CustomResourceDefinition) (runtime.Object, error)
func NewCustomResourceDefinitionLifecycleAdapter ¶
func NewCustomResourceDefinitionLifecycleAdapter(name string, clusterScoped bool, client CustomResourceDefinitionInterface, l CustomResourceDefinitionLifecycle) CustomResourceDefinitionHandlerFunc
type CustomResourceDefinitionIndexer ¶
type CustomResourceDefinitionIndexer func(obj *v1beta1.CustomResourceDefinition) ([]string, error)
type CustomResourceDefinitionInterface ¶
type CustomResourceDefinitionInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta1.CustomResourceDefinition, error) Get(name string, opts metav1.GetOptions) (*v1beta1.CustomResourceDefinition, error) Update(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*CustomResourceDefinitionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CustomResourceDefinitionController AddHandler(ctx context.Context, name string, sync CustomResourceDefinitionHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle CustomResourceDefinitionLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync CustomResourceDefinitionHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle CustomResourceDefinitionLifecycle) }
type CustomResourceDefinitionLifecycle ¶
type CustomResourceDefinitionLifecycle interface { Create(obj *v1beta1.CustomResourceDefinition) (runtime.Object, error) Remove(obj *v1beta1.CustomResourceDefinition) (runtime.Object, error) Updated(obj *v1beta1.CustomResourceDefinition) (runtime.Object, error) }
type CustomResourceDefinitionList ¶
type CustomResourceDefinitionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta1.CustomResourceDefinition }
func (*CustomResourceDefinitionList) DeepCopy ¶
func (in *CustomResourceDefinitionList) DeepCopy() *CustomResourceDefinitionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDefinitionList.
func (*CustomResourceDefinitionList) DeepCopyInto ¶
func (in *CustomResourceDefinitionList) DeepCopyInto(out *CustomResourceDefinitionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDefinitionList) DeepCopyObject ¶
func (in *CustomResourceDefinitionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomResourceDefinitionLister ¶
type CustomResourceDefinitionLister interface { List(namespace string, selector labels.Selector) (ret []*v1beta1.CustomResourceDefinition, err error) Get(namespace, name string) (*v1beta1.CustomResourceDefinition, error) }
type CustomResourceDefinitionsGetter ¶
type CustomResourceDefinitionsGetter interface {
CustomResourceDefinitions(namespace string) CustomResourceDefinitionInterface
}
Click to show internal directories.
Click to hide internal directories.