Documentation ¶
Index ¶
Constants ¶
View Source
const ( GroupName = "batch" Version = "v1" )
Variables ¶
View Source
var ( JobGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Job", } JobResource = metav1.APIResource{ Name: "jobs", SingularName: "job", Namespaced: true, Kind: JobGroupVersionKind.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 Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) Jobs ¶
func (c *Client) Jobs(namespace string) JobInterface
func (*Client) RESTClient ¶
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter JobsGetter }
type JobController ¶
type JobController interface { Informer() cache.SharedIndexInformer Lister() JobLister AddHandler(name string, handler JobHandlerFunc) AddClusterScopedHandler(name, clusterName string, handler JobHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type JobHandlerFunc ¶
func NewJobLifecycleAdapter ¶
func NewJobLifecycleAdapter(name string, clusterScoped bool, client JobInterface, l JobLifecycle) JobHandlerFunc
type JobInterface ¶
type JobInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.Job) (*v1.Job, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.Job, error) Get(name string, opts metav1.GetOptions) (*v1.Job, error) Update(*v1.Job) (*v1.Job, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*JobList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() JobController AddHandler(name string, sync JobHandlerFunc) AddLifecycle(name string, lifecycle JobLifecycle) AddClusterScopedHandler(name, clusterName string, sync JobHandlerFunc) AddClusterScopedLifecycle(name, clusterName string, lifecycle JobLifecycle) }
type JobLifecycle ¶
type JobList ¶
type JobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.Job }
func (*JobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobsGetter ¶
type JobsGetter interface {
Jobs(namespace string) JobInterface
}
Click to show internal directories.
Click to hide internal directories.