Documentation ¶
Index ¶
- Constants
- Variables
- 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 NewReplicaSet(namespace, name string, obj v1.ReplicaSet) *v1.ReplicaSet
- func NewStatefulSet(namespace, name string, obj v1.StatefulSet) *v1.StatefulSet
- func Resource(resource string) schema.GroupResource
- type Client
- type DaemonSetChangeHandlerFunc
- type DaemonSetController
- type DaemonSetHandlerFunc
- type DaemonSetInterface
- type DaemonSetLifecycle
- type DaemonSetLister
- type DaemonSetsGetter
- type DeploymentChangeHandlerFunc
- type DeploymentController
- type DeploymentHandlerFunc
- type DeploymentInterface
- type DeploymentLifecycle
- type DeploymentLister
- type DeploymentsGetter
- type Interface
- type ReplicaSetChangeHandlerFunc
- type ReplicaSetController
- type ReplicaSetHandlerFunc
- type ReplicaSetInterface
- type ReplicaSetLifecycle
- type ReplicaSetLister
- type ReplicaSetsGetter
- type StatefulSetChangeHandlerFunc
- type StatefulSetController
- type StatefulSetHandlerFunc
- type StatefulSetInterface
- type StatefulSetLifecycle
- type StatefulSetLister
- type StatefulSetsGetter
Constants ¶
View Source
const ( GroupName = "apps" Version = "v1" )
Variables ¶
View Source
var ( DaemonSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "DaemonSet", } DaemonSetResource = metav1.APIResource{ Name: "daemonsets", SingularName: "daemonset", Namespaced: true, Kind: DaemonSetGroupVersionKind.Kind, } DaemonSetGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "daemonsets", } )
View Source
var ( DeploymentGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Deployment", } DeploymentResource = metav1.APIResource{ Name: "deployments", SingularName: "deployment", Namespaced: true, Kind: DeploymentGroupVersionKind.Kind, } DeploymentGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "deployments", } )
View Source
var ( ReplicaSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ReplicaSet", } ReplicaSetResource = metav1.APIResource{ Name: "replicasets", SingularName: "replicaset", Namespaced: true, Kind: ReplicaSetGroupVersionKind.Kind, } ReplicaSetGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "replicasets", } )
View Source
var ( StatefulSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "StatefulSet", } StatefulSetResource = metav1.APIResource{ Name: "statefulsets", SingularName: "statefulset", Namespaced: true, Kind: StatefulSetGroupVersionKind.Kind, } StatefulSetGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "statefulsets", } )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewDeployment ¶
func NewDeployment(namespace, name string, obj v1.Deployment) *v1.Deployment
func NewReplicaSet ¶
func NewReplicaSet(namespace, name string, obj v1.ReplicaSet) *v1.ReplicaSet
func NewStatefulSet ¶
func NewStatefulSet(namespace, name string, obj v1.StatefulSet) *v1.StatefulSet
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DaemonSets ¶
func (c *Client) DaemonSets(namespace string) DaemonSetInterface
func (*Client) Deployments ¶
func (c *Client) Deployments(namespace string) DeploymentInterface
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 { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() DaemonSetLister AddHandler(ctx context.Context, name string, handler DaemonSetHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync DaemonSetHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler DaemonSetHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler DaemonSetHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) }
type DaemonSetHandlerFunc ¶
func NewDaemonSetLifecycleAdapter ¶
func NewDaemonSetLifecycleAdapter(name string, clusterScoped bool, client DaemonSetInterface, l DaemonSetLifecycle) DaemonSetHandlerFunc
type DaemonSetInterface ¶
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) (*v1.DaemonSetList, error) ListNamespaced(namespace string, opts metav1.ListOptions) (*v1.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) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync DaemonSetHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle DaemonSetLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle DaemonSetLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync DaemonSetHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync DaemonSetHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle DaemonSetLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle DaemonSetLifecycle) }
type DaemonSetLifecycle ¶
type DaemonSetLister ¶
type DaemonSetsGetter ¶
type DaemonSetsGetter interface {
DaemonSets(namespace string) DaemonSetInterface
}
type DeploymentChangeHandlerFunc ¶
type DeploymentChangeHandlerFunc func(obj *v1.Deployment) (runtime.Object, error)
type DeploymentController ¶
type DeploymentController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() DeploymentLister AddHandler(ctx context.Context, name string, handler DeploymentHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync DeploymentHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler DeploymentHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler DeploymentHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) }
type DeploymentHandlerFunc ¶
func NewDeploymentLifecycleAdapter ¶
func NewDeploymentLifecycleAdapter(name string, clusterScoped bool, client DeploymentInterface, l DeploymentLifecycle) DeploymentHandlerFunc
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) (*v1.DeploymentList, error) ListNamespaced(namespace string, opts metav1.ListOptions) (*v1.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) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync DeploymentHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle DeploymentLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle DeploymentLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync DeploymentHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync DeploymentHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle DeploymentLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, 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 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 { DeploymentsGetter DaemonSetsGetter StatefulSetsGetter ReplicaSetsGetter }
func NewFromControllerFactory ¶ added in v0.0.2
func NewFromControllerFactory(factory controller.SharedControllerFactory) (Interface, error)
type ReplicaSetChangeHandlerFunc ¶
type ReplicaSetChangeHandlerFunc func(obj *v1.ReplicaSet) (runtime.Object, error)
type ReplicaSetController ¶
type ReplicaSetController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() ReplicaSetLister AddHandler(ctx context.Context, name string, handler ReplicaSetHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync ReplicaSetHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ReplicaSetHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler ReplicaSetHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) }
type ReplicaSetHandlerFunc ¶
func NewReplicaSetLifecycleAdapter ¶
func NewReplicaSetLifecycleAdapter(name string, clusterScoped bool, client ReplicaSetInterface, l ReplicaSetLifecycle) ReplicaSetHandlerFunc
type ReplicaSetInterface ¶
type ReplicaSetInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.ReplicaSet) (*v1.ReplicaSet, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) Get(name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) Update(*v1.ReplicaSet) (*v1.ReplicaSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*v1.ReplicaSetList, error) ListNamespaced(namespace string, opts metav1.ListOptions) (*v1.ReplicaSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ReplicaSetController AddHandler(ctx context.Context, name string, sync ReplicaSetHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync ReplicaSetHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle ReplicaSetLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle ReplicaSetLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ReplicaSetHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync ReplicaSetHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ReplicaSetLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle ReplicaSetLifecycle) }
type ReplicaSetLifecycle ¶
type ReplicaSetLifecycle interface { Create(obj *v1.ReplicaSet) (runtime.Object, error) Remove(obj *v1.ReplicaSet) (runtime.Object, error) Updated(obj *v1.ReplicaSet) (runtime.Object, error) }
type ReplicaSetLister ¶
type ReplicaSetLister interface { List(namespace string, selector labels.Selector) (ret []*v1.ReplicaSet, err error) Get(namespace, name string) (*v1.ReplicaSet, error) }
type ReplicaSetsGetter ¶
type ReplicaSetsGetter interface {
ReplicaSets(namespace string) ReplicaSetInterface
}
type StatefulSetChangeHandlerFunc ¶
type StatefulSetChangeHandlerFunc func(obj *v1.StatefulSet) (runtime.Object, error)
type StatefulSetController ¶
type StatefulSetController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() StatefulSetLister AddHandler(ctx context.Context, name string, handler StatefulSetHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync StatefulSetHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler StatefulSetHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler StatefulSetHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) }
type StatefulSetHandlerFunc ¶
func NewStatefulSetLifecycleAdapter ¶
func NewStatefulSetLifecycleAdapter(name string, clusterScoped bool, client StatefulSetInterface, l StatefulSetLifecycle) StatefulSetHandlerFunc
type StatefulSetInterface ¶
type StatefulSetInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.StatefulSet) (*v1.StatefulSet, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.StatefulSet, error) Get(name string, opts metav1.GetOptions) (*v1.StatefulSet, error) Update(*v1.StatefulSet) (*v1.StatefulSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*v1.StatefulSetList, error) ListNamespaced(namespace string, opts metav1.ListOptions) (*v1.StatefulSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() StatefulSetController AddHandler(ctx context.Context, name string, sync StatefulSetHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync StatefulSetHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle StatefulSetLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle StatefulSetLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync StatefulSetHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync StatefulSetHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle StatefulSetLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle StatefulSetLifecycle) }
type StatefulSetLifecycle ¶
type StatefulSetLifecycle interface { Create(obj *v1.StatefulSet) (runtime.Object, error) Remove(obj *v1.StatefulSet) (runtime.Object, error) Updated(obj *v1.StatefulSet) (runtime.Object, error) }
type StatefulSetLister ¶
type StatefulSetLister interface { List(namespace string, selector labels.Selector) (ret []*v1.StatefulSet, err error) Get(namespace, name string) (*v1.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_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
Click to show internal directories.
Click to hide internal directories.