Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func NewCronJob(namespace, name string, obj v1beta1.CronJob) *v1beta1.CronJob
- func Resource(resource string) schema.GroupResource
- type Client
- type CronJobChangeHandlerFunc
- type CronJobController
- type CronJobHandlerFunc
- type CronJobInterface
- type CronJobLifecycle
- type CronJobLister
- type CronJobsGetter
- type Interface
Constants ¶
View Source
const ( GroupName = "batch" Version = "v1beta1" )
Variables ¶
View Source
var ( CronJobGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "CronJob", } CronJobResource = metav1.APIResource{ Name: "cronjobs", SingularName: "cronjob", Namespaced: true, Kind: CronJobGroupVersionKind.Kind, } CronJobGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "cronjobs", } )
View Source
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 ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CronJobs ¶
func (c *Client) CronJobs(namespace string) CronJobInterface
type CronJobController ¶
type CronJobController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() CronJobLister AddHandler(ctx context.Context, name string, handler CronJobHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync CronJobHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler CronJobHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler CronJobHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) }
type CronJobHandlerFunc ¶
func NewCronJobLifecycleAdapter ¶
func NewCronJobLifecycleAdapter(name string, clusterScoped bool, client CronJobInterface, l CronJobLifecycle) CronJobHandlerFunc
type CronJobInterface ¶
type CronJobInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1beta1.CronJob) (*v1beta1.CronJob, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta1.CronJob, error) Get(name string, opts metav1.GetOptions) (*v1beta1.CronJob, error) Update(*v1beta1.CronJob) (*v1beta1.CronJob, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*v1beta1.CronJobList, error) ListNamespaced(namespace string, opts metav1.ListOptions) (*v1beta1.CronJobList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() CronJobController AddHandler(ctx context.Context, name string, sync CronJobHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync CronJobHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle CronJobLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle CronJobLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync CronJobHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync CronJobHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle CronJobLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle CronJobLifecycle) }
type CronJobLifecycle ¶
type CronJobLister ¶
type CronJobsGetter ¶
type CronJobsGetter interface {
CronJobs(namespace string) CronJobInterface
}
type Interface ¶
type Interface interface { CronJobsGetter }
func NewFromControllerFactory ¶ added in v0.0.2
func NewFromControllerFactory(factory controller.SharedControllerFactory) (Interface, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.