Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterDeepCopies(scheme *runtime.Scheme) errordeprecated
- func Resource(resource string) schema.GroupResource
- type Client
- func (c *Client) DaemonSets(namespace string) DaemonSetInterface
- func (c *Client) Deployments(namespace string) DeploymentInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) ReplicaSets(namespace string) ReplicaSetInterface
- func (c *Client) Start(ctx context.Context, threadiness int) error
- func (c *Client) StatefulSets(namespace string) StatefulSetInterface
- func (c *Client) Sync(ctx context.Context) error
- type DaemonSetController
- type DaemonSetHandlerFunc
- type DaemonSetInterface
- type DaemonSetLifecycle
- type DaemonSetList
- type DaemonSetLister
- type DaemonSetsGetter
- type DeploymentController
- type DeploymentHandlerFunc
- type DeploymentInterface
- type DeploymentLifecycle
- type DeploymentList
- type DeploymentLister
- type DeploymentsGetter
- type Interface
- type ReplicaSetController
- type ReplicaSetHandlerFunc
- type ReplicaSetInterface
- type ReplicaSetLifecycle
- type ReplicaSetList
- type ReplicaSetLister
- type ReplicaSetsGetter
- type StatefulSetController
- type StatefulSetHandlerFunc
- type StatefulSetInterface
- type StatefulSetLifecycle
- type StatefulSetList
- type StatefulSetLister
- type StatefulSetsGetter
Constants ¶
const ( GroupName = "apps" Version = "v1beta2" )
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 ( ReplicaSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ReplicaSet", } ReplicaSetResource = metav1.APIResource{ Name: "replicasets", SingularName: "replicaset", Namespaced: true, Kind: ReplicaSetGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( StatefulSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "StatefulSet", } StatefulSetResource = metav1.APIResource{ Name: "statefulsets", SingularName: "statefulset", Namespaced: true, Kind: StatefulSetGroupVersionKind.Kind, } )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func RegisterDeepCopies
deprecated
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 ¶
func (c *Client) DaemonSets(namespace string) DaemonSetInterface
func (*Client) Deployments ¶
func (c *Client) Deployments(namespace string) DeploymentInterface
func (*Client) RESTClient ¶
func (*Client) ReplicaSets ¶
func (c *Client) ReplicaSets(namespace string) ReplicaSetInterface
func (*Client) StatefulSets ¶
func (c *Client) StatefulSets(namespace string) StatefulSetInterface
type DaemonSetController ¶
type DaemonSetController interface { Informer() cache.SharedIndexInformer Lister() DaemonSetLister AddHandler(name string, handler DaemonSetHandlerFunc) AddClusterScopedHandler(name, clusterName string, handler DaemonSetHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type DaemonSetHandlerFunc ¶
func NewDaemonSetLifecycleAdapter ¶
func NewDaemonSetLifecycleAdapter(name string, clusterScoped bool, client DaemonSetInterface, l DaemonSetLifecycle) DaemonSetHandlerFunc
type DaemonSetInterface ¶
type DaemonSetInterface interface { ObjectClient() *clientbase.ObjectClient Create(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) Get(name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) Update(*v1beta2.DaemonSet) (*v1beta2.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(name string, sync DaemonSetHandlerFunc) AddLifecycle(name string, lifecycle DaemonSetLifecycle) AddClusterScopedHandler(name, clusterName string, sync DaemonSetHandlerFunc) AddClusterScopedLifecycle(name, clusterName string, lifecycle DaemonSetLifecycle) }
type DaemonSetLifecycle ¶
type DaemonSetList ¶
type DaemonSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta2.DaemonSet }
func (*DaemonSetList) DeepCopy ¶
func (in *DaemonSetList) DeepCopy() *DaemonSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetList.
func (*DaemonSetList) DeepCopyInto ¶
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 ¶
func (in *DaemonSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DaemonSetLister ¶
type DaemonSetsGetter ¶
type DaemonSetsGetter interface {
DaemonSets(namespace string) DaemonSetInterface
}
type DeploymentController ¶
type DeploymentController interface { Informer() cache.SharedIndexInformer Lister() DeploymentLister AddHandler(name string, handler DeploymentHandlerFunc) AddClusterScopedHandler(name, clusterName string, handler DeploymentHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type DeploymentHandlerFunc ¶
type DeploymentHandlerFunc func(key string, obj *v1beta2.Deployment) error
func NewDeploymentLifecycleAdapter ¶
func NewDeploymentLifecycleAdapter(name string, clusterScoped bool, client DeploymentInterface, l DeploymentLifecycle) DeploymentHandlerFunc
type DeploymentInterface ¶
type DeploymentInterface interface { ObjectClient() *clientbase.ObjectClient Create(*v1beta2.Deployment) (*v1beta2.Deployment, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) Get(name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) Update(*v1beta2.Deployment) (*v1beta2.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(name string, sync DeploymentHandlerFunc) AddLifecycle(name string, lifecycle DeploymentLifecycle) AddClusterScopedHandler(name, clusterName string, sync DeploymentHandlerFunc) AddClusterScopedLifecycle(name, clusterName string, lifecycle DeploymentLifecycle) }
type DeploymentLifecycle ¶
type DeploymentLifecycle interface { Create(obj *v1beta2.Deployment) (*v1beta2.Deployment, error) Remove(obj *v1beta2.Deployment) (*v1beta2.Deployment, error) Updated(obj *v1beta2.Deployment) (*v1beta2.Deployment, error) }
type DeploymentList ¶
type DeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta2.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 []*v1beta2.Deployment, err error) Get(namespace, name string) (*v1beta2.Deployment, error) }
type DeploymentsGetter ¶
type DeploymentsGetter interface {
Deployments(namespace string) DeploymentInterface
}
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter DeploymentsGetter DaemonSetsGetter StatefulSetsGetter ReplicaSetsGetter }
type ReplicaSetController ¶
type ReplicaSetController interface { Informer() cache.SharedIndexInformer Lister() ReplicaSetLister AddHandler(name string, handler ReplicaSetHandlerFunc) AddClusterScopedHandler(name, clusterName string, handler ReplicaSetHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type ReplicaSetHandlerFunc ¶
type ReplicaSetHandlerFunc func(key string, obj *v1beta2.ReplicaSet) error
func NewReplicaSetLifecycleAdapter ¶
func NewReplicaSetLifecycleAdapter(name string, clusterScoped bool, client ReplicaSetInterface, l ReplicaSetLifecycle) ReplicaSetHandlerFunc
type ReplicaSetInterface ¶
type ReplicaSetInterface interface { ObjectClient() *clientbase.ObjectClient Create(*v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) Get(name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) Update(*v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ReplicaSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ReplicaSetController AddHandler(name string, sync ReplicaSetHandlerFunc) AddLifecycle(name string, lifecycle ReplicaSetLifecycle) AddClusterScopedHandler(name, clusterName string, sync ReplicaSetHandlerFunc) AddClusterScopedLifecycle(name, clusterName string, lifecycle ReplicaSetLifecycle) }
type ReplicaSetLifecycle ¶
type ReplicaSetLifecycle interface { Create(obj *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) Remove(obj *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) Updated(obj *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) }
type ReplicaSetList ¶
type ReplicaSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta2.ReplicaSet }
func (*ReplicaSetList) DeepCopy ¶
func (in *ReplicaSetList) DeepCopy() *ReplicaSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetList.
func (*ReplicaSetList) DeepCopyInto ¶
func (in *ReplicaSetList) DeepCopyInto(out *ReplicaSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReplicaSetList) DeepCopyObject ¶
func (in *ReplicaSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReplicaSetLister ¶
type ReplicaSetLister interface { List(namespace string, selector labels.Selector) (ret []*v1beta2.ReplicaSet, err error) Get(namespace, name string) (*v1beta2.ReplicaSet, error) }
type ReplicaSetsGetter ¶
type ReplicaSetsGetter interface {
ReplicaSets(namespace string) ReplicaSetInterface
}
type StatefulSetController ¶
type StatefulSetController interface { Informer() cache.SharedIndexInformer Lister() StatefulSetLister AddHandler(name string, handler StatefulSetHandlerFunc) AddClusterScopedHandler(name, clusterName string, handler StatefulSetHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type StatefulSetHandlerFunc ¶
type StatefulSetHandlerFunc func(key string, obj *v1beta2.StatefulSet) error
func NewStatefulSetLifecycleAdapter ¶
func NewStatefulSetLifecycleAdapter(name string, clusterScoped bool, client StatefulSetInterface, l StatefulSetLifecycle) StatefulSetHandlerFunc
type StatefulSetInterface ¶
type StatefulSetInterface interface { ObjectClient() *clientbase.ObjectClient Create(*v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) Get(name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) Update(*v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*StatefulSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() StatefulSetController AddHandler(name string, sync StatefulSetHandlerFunc) AddLifecycle(name string, lifecycle StatefulSetLifecycle) AddClusterScopedHandler(name, clusterName string, sync StatefulSetHandlerFunc) AddClusterScopedLifecycle(name, clusterName string, lifecycle StatefulSetLifecycle) }
type StatefulSetLifecycle ¶
type StatefulSetLifecycle interface { Create(obj *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) Remove(obj *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) Updated(obj *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) }
type StatefulSetList ¶
type StatefulSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta2.StatefulSet }
func (*StatefulSetList) DeepCopy ¶
func (in *StatefulSetList) DeepCopy() *StatefulSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetList.
func (*StatefulSetList) DeepCopyInto ¶
func (in *StatefulSetList) DeepCopyInto(out *StatefulSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulSetList) DeepCopyObject ¶
func (in *StatefulSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulSetLister ¶
type StatefulSetLister interface { List(namespace string, selector labels.Selector) (ret []*v1beta2.StatefulSet, err error) Get(namespace, name string) (*v1beta2.StatefulSet, error) }
type StatefulSetsGetter ¶
type StatefulSetsGetter interface {
StatefulSets(namespace string) StatefulSetInterface
}
Source Files ¶
- zz_generated_daemon_set_controller.go
- zz_generated_daemon_set_lifecycle_adapter.go
- zz_generated_deepcopy.go
- zz_generated_deployment_controller.go
- zz_generated_deployment_lifecycle_adapter.go
- zz_generated_k8s_client.go
- zz_generated_replica_set_controller.go
- zz_generated_replica_set_lifecycle_adapter.go
- zz_generated_scheme.go
- zz_generated_stateful_set_controller.go
- zz_generated_stateful_set_lifecycle_adapter.go