Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewDaemonSet(namespace, name string, obj v1.DaemonSet) *v1.DaemonSet
- func NewDeployment(namespace, name string, obj v1.Deployment) *v1.Deployment
- func Resource(resource string) schema.GroupResource
- type Client
- type Clients
- type DaemonSetChangeHandlerFunc
- type DaemonSetClient
- type DaemonSetClientCache
- type DaemonSetController
- type DaemonSetHandlerFunc
- type DaemonSetIndexer
- type DaemonSetInterface
- type DaemonSetLifecycle
- type DaemonSetList
- type DaemonSetLister
- type DaemonSetsGetter
- type DeploymentChangeHandlerFunc
- type DeploymentClient
- type DeploymentClientCache
- type DeploymentController
- type DeploymentHandlerFunc
- type DeploymentIndexer
- type DeploymentInterface
- type DeploymentLifecycle
- type DeploymentList
- type DeploymentLister
- type DeploymentsGetter
- type Interface
Constants ¶
const ( GroupName = "apps" Version = "v1" )
Variables ¶
var ( DaemonSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "DaemonSet", } DaemonSetResource = metav1.APIResource{ Name: "daemonsets", SingularName: "daemonset", Namespaced: true, Kind: DaemonSetGroupVersionKind.Kind, } )
var ( DeploymentGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Deployment", } DeploymentResource = metav1.APIResource{ Name: "deployments", SingularName: "deployment", Namespaced: true, Kind: DeploymentGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewDaemonSet ¶ added in v0.5.0
func NewDeployment ¶
func NewDeployment(namespace, name string, obj v1.Deployment) *v1.Deployment
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) DaemonSets ¶ added in v0.5.0
func (c *Client) DaemonSets(namespace string) DaemonSetInterface
func (*Client) Deployments ¶
func (c *Client) Deployments(namespace string) DeploymentInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct { Interface Interface DaemonSet DaemonSetClient Deployment DeploymentClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type DaemonSetChangeHandlerFunc ¶ added in v0.5.0
type DaemonSetClient ¶ added in v0.5.0
type DaemonSetClient interface { Create(*v1.DaemonSet) (*v1.DaemonSet, error) Get(namespace, name string, opts metav1.GetOptions) (*v1.DaemonSet, error) Update(*v1.DaemonSet) (*v1.DaemonSet, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*DaemonSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() DaemonSetClientCache OnCreate(ctx context.Context, name string, sync DaemonSetChangeHandlerFunc) OnChange(ctx context.Context, name string, sync DaemonSetChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync DaemonSetChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() DaemonSetInterface }
type DaemonSetClientCache ¶ added in v0.5.0
type DaemonSetController ¶ added in v0.5.0
type DaemonSetController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() DaemonSetLister AddHandler(ctx context.Context, name string, handler DaemonSetHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler DaemonSetHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type DaemonSetHandlerFunc ¶ added in v0.5.0
func NewDaemonSetLifecycleAdapter ¶ added in v0.5.0
func NewDaemonSetLifecycleAdapter(name string, clusterScoped bool, client DaemonSetInterface, l DaemonSetLifecycle) DaemonSetHandlerFunc
type DaemonSetIndexer ¶ added in v0.5.0
type DaemonSetInterface ¶ added in v0.5.0
type DaemonSetInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.DaemonSet) (*v1.DaemonSet, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.DaemonSet, error) Get(name string, opts metav1.GetOptions) (*v1.DaemonSet, error) Update(*v1.DaemonSet) (*v1.DaemonSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DaemonSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DaemonSetController AddHandler(ctx context.Context, name string, sync DaemonSetHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle DaemonSetLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync DaemonSetHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle DaemonSetLifecycle) }
type DaemonSetLifecycle ¶ added in v0.5.0
type DaemonSetList ¶ added in v0.5.0
type DaemonSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.DaemonSet }
func (*DaemonSetList) DeepCopy ¶ added in v0.5.0
func (in *DaemonSetList) DeepCopy() *DaemonSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetList.
func (*DaemonSetList) DeepCopyInto ¶ added in v0.5.0
func (in *DaemonSetList) DeepCopyInto(out *DaemonSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DaemonSetList) DeepCopyObject ¶ added in v0.5.0
func (in *DaemonSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DaemonSetLister ¶ added in v0.5.0
type DaemonSetsGetter ¶ added in v0.5.0
type DaemonSetsGetter interface {
DaemonSets(namespace string) DaemonSetInterface
}
type DeploymentChangeHandlerFunc ¶
type DeploymentChangeHandlerFunc func(obj *v1.Deployment) (runtime.Object, error)
type DeploymentClient ¶
type DeploymentClient interface { Create(*v1.Deployment) (*v1.Deployment, error) Get(namespace, name string, opts metav1.GetOptions) (*v1.Deployment, error) Update(*v1.Deployment) (*v1.Deployment, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*DeploymentList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() DeploymentClientCache OnCreate(ctx context.Context, name string, sync DeploymentChangeHandlerFunc) OnChange(ctx context.Context, name string, sync DeploymentChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync DeploymentChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() DeploymentInterface }
type DeploymentClientCache ¶
type DeploymentClientCache interface { Get(namespace, name string) (*v1.Deployment, error) List(namespace string, selector labels.Selector) ([]*v1.Deployment, error) Index(name string, indexer DeploymentIndexer) GetIndexed(name, key string) ([]*v1.Deployment, error) }
type DeploymentController ¶
type DeploymentController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() DeploymentLister AddHandler(ctx context.Context, name string, handler DeploymentHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler DeploymentHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type DeploymentHandlerFunc ¶
func NewDeploymentLifecycleAdapter ¶
func NewDeploymentLifecycleAdapter(name string, clusterScoped bool, client DeploymentInterface, l DeploymentLifecycle) DeploymentHandlerFunc
type DeploymentIndexer ¶
type DeploymentIndexer func(obj *v1.Deployment) ([]string, error)
type DeploymentInterface ¶
type DeploymentInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.Deployment) (*v1.Deployment, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.Deployment, error) Get(name string, opts metav1.GetOptions) (*v1.Deployment, error) Update(*v1.Deployment) (*v1.Deployment, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DeploymentList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() DeploymentController AddHandler(ctx context.Context, name string, sync DeploymentHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle DeploymentLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync DeploymentHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle DeploymentLifecycle) }
type DeploymentLifecycle ¶
type DeploymentLifecycle interface { Create(obj *v1.Deployment) (runtime.Object, error) Remove(obj *v1.Deployment) (runtime.Object, error) Updated(obj *v1.Deployment) (runtime.Object, error) }
type DeploymentList ¶
type DeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.Deployment }
func (*DeploymentList) DeepCopy ¶
func (in *DeploymentList) DeepCopy() *DeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentList.
func (*DeploymentList) DeepCopyInto ¶
func (in *DeploymentList) DeepCopyInto(out *DeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeploymentList) DeepCopyObject ¶
func (in *DeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeploymentLister ¶
type DeploymentLister interface { List(namespace string, selector labels.Selector) (ret []*v1.Deployment, err error) Get(namespace, name string) (*v1.Deployment, error) }
type DeploymentsGetter ¶
type DeploymentsGetter interface {
Deployments(namespace string) DeploymentInterface
}
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter DaemonSetsGetter DeploymentsGetter }