v2alpha1

package
v1.7.11-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package v2alpha1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto

It has these top-level messages:

CronJob
CronJobList
CronJobSpec
CronJobStatus
JobTemplate
JobTemplateSpec

Index

Constants

View Source
const GroupName = "batch"

GroupName is the group name use in this package

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_batch_CronJobList_To_v2alpha1_CronJobList added in v1.5.0

func Convert_batch_CronJobList_To_v2alpha1_CronJobList(in *batch.CronJobList, out *CronJobList, s conversion.Scope) error

Convert_batch_CronJobList_To_v2alpha1_CronJobList is an autogenerated conversion function.

func Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec added in v1.5.0

func Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(in *batch.CronJobSpec, out *CronJobSpec, s conversion.Scope) error

Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec is an autogenerated conversion function.

func Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus added in v1.5.0

func Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus(in *batch.CronJobStatus, out *CronJobStatus, s conversion.Scope) error

Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus is an autogenerated conversion function.

func Convert_batch_CronJob_To_v2alpha1_CronJob added in v1.5.0

func Convert_batch_CronJob_To_v2alpha1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error

Convert_batch_CronJob_To_v2alpha1_CronJob is an autogenerated conversion function.

func Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec

func Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error

Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec is an autogenerated conversion function.

func Convert_batch_JobTemplate_To_v2alpha1_JobTemplate

func Convert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, s conversion.Scope) error

Convert_batch_JobTemplate_To_v2alpha1_JobTemplate is an autogenerated conversion function.

func Convert_v2alpha1_CronJobList_To_batch_CronJobList added in v1.5.0

func Convert_v2alpha1_CronJobList_To_batch_CronJobList(in *CronJobList, out *batch.CronJobList, s conversion.Scope) error

Convert_v2alpha1_CronJobList_To_batch_CronJobList is an autogenerated conversion function.

func Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec added in v1.5.0

func Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(in *CronJobSpec, out *batch.CronJobSpec, s conversion.Scope) error

Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec is an autogenerated conversion function.

func Convert_v2alpha1_CronJobStatus_To_batch_CronJobStatus added in v1.5.0

func Convert_v2alpha1_CronJobStatus_To_batch_CronJobStatus(in *CronJobStatus, out *batch.CronJobStatus, s conversion.Scope) error

Convert_v2alpha1_CronJobStatus_To_batch_CronJobStatus is an autogenerated conversion function.

func Convert_v2alpha1_CronJob_To_batch_CronJob added in v1.5.0

func Convert_v2alpha1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error

Convert_v2alpha1_CronJob_To_batch_CronJob is an autogenerated conversion function.

func Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec

func Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error

Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec is an autogenerated conversion function.

func Convert_v2alpha1_JobTemplate_To_batch_JobTemplate

func Convert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, s conversion.Scope) error

Convert_v2alpha1_JobTemplate_To_batch_JobTemplate is an autogenerated conversion function.

func DeepCopy_v2alpha1_CronJob added in v1.5.0

func DeepCopy_v2alpha1_CronJob(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v2alpha1_CronJob is an autogenerated deepcopy function.

func DeepCopy_v2alpha1_CronJobList added in v1.5.0

func DeepCopy_v2alpha1_CronJobList(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v2alpha1_CronJobList is an autogenerated deepcopy function.

func DeepCopy_v2alpha1_CronJobSpec added in v1.5.0

func DeepCopy_v2alpha1_CronJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v2alpha1_CronJobSpec is an autogenerated deepcopy function.

func DeepCopy_v2alpha1_CronJobStatus added in v1.5.0

func DeepCopy_v2alpha1_CronJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v2alpha1_CronJobStatus is an autogenerated deepcopy function.

func DeepCopy_v2alpha1_JobTemplate

func DeepCopy_v2alpha1_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v2alpha1_JobTemplate is an autogenerated deepcopy function.

func DeepCopy_v2alpha1_JobTemplateSpec

func DeepCopy_v2alpha1_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v2alpha1_JobTemplateSpec is an autogenerated deepcopy function.

func RegisterConversions added in v1.4.0

func RegisterConversions(scheme *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDeepCopies added in v1.4.0

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults added in v1.5.0

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource added in v1.6.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_CronJob added in v1.5.0

func SetDefaults_CronJob(obj *CronJob)

func SetObjectDefaults_CronJob added in v1.5.0

func SetObjectDefaults_CronJob(in *CronJob)

func SetObjectDefaults_CronJobList added in v1.5.0

func SetObjectDefaults_CronJobList(in *CronJobList)

func SetObjectDefaults_JobTemplate added in v1.5.0

func SetObjectDefaults_JobTemplate(in *JobTemplate)

Types

type ConcurrencyPolicy

type ConcurrencyPolicy string

ConcurrencyPolicy describes how the job will be handled. Only one of the following concurrent policies may be specified. If none of the following policies is specified, the default one is AllowConcurrent.

const (
	// AllowConcurrent allows CronJobs to run concurrently.
	AllowConcurrent ConcurrencyPolicy = "Allow"

	// ForbidConcurrent forbids concurrent runs, skipping next run if previous
	// hasn't finished yet.
	ForbidConcurrent ConcurrencyPolicy = "Forbid"

	// ReplaceConcurrent cancels currently running job and replaces it with a new one.
	ReplaceConcurrent ConcurrencyPolicy = "Replace"
)

func (*ConcurrencyPolicy) CodecDecodeSelf

func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder)

func (ConcurrencyPolicy) CodecEncodeSelf

func (x ConcurrencyPolicy) CodecEncodeSelf(e *codec1978.Encoder)

type CronJob added in v1.5.0

type CronJob struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of a cron job, including the schedule.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Current status of a cron job.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

CronJob represents the configuration of a single cron job.

func (*CronJob) CodecDecodeSelf added in v1.5.0

func (x *CronJob) CodecDecodeSelf(d *codec1978.Decoder)

func (*CronJob) CodecEncodeSelf added in v1.5.0

func (x *CronJob) CodecEncodeSelf(e *codec1978.Encoder)

func (*CronJob) Descriptor added in v1.5.0

func (*CronJob) Descriptor() ([]byte, []int)

func (*CronJob) Marshal added in v1.5.0

func (m *CronJob) Marshal() (dAtA []byte, err error)

func (*CronJob) MarshalTo added in v1.5.0

func (m *CronJob) MarshalTo(dAtA []byte) (int, error)

func (*CronJob) ProtoMessage added in v1.5.0

func (*CronJob) ProtoMessage()

func (*CronJob) Reset added in v1.5.0

func (m *CronJob) Reset()

func (*CronJob) Size added in v1.5.0

func (m *CronJob) Size() (n int)

func (*CronJob) String added in v1.5.0

func (this *CronJob) String() string

func (CronJob) SwaggerDoc added in v1.5.0

func (CronJob) SwaggerDoc() map[string]string

func (*CronJob) Unmarshal added in v1.5.0

func (m *CronJob) Unmarshal(dAtA []byte) error

type CronJobList added in v1.5.0

type CronJobList struct {
	metav1.TypeMeta `json:",inline"`

	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// items is the list of CronJobs.
	Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"`
}

CronJobList is a collection of cron jobs.

func (*CronJobList) CodecDecodeSelf added in v1.5.0

func (x *CronJobList) CodecDecodeSelf(d *codec1978.Decoder)

func (*CronJobList) CodecEncodeSelf added in v1.5.0

func (x *CronJobList) CodecEncodeSelf(e *codec1978.Encoder)

func (*CronJobList) Descriptor added in v1.5.0

func (*CronJobList) Descriptor() ([]byte, []int)

func (*CronJobList) Marshal added in v1.5.0

func (m *CronJobList) Marshal() (dAtA []byte, err error)

func (*CronJobList) MarshalTo added in v1.5.0

func (m *CronJobList) MarshalTo(dAtA []byte) (int, error)

func (*CronJobList) ProtoMessage added in v1.5.0

func (*CronJobList) ProtoMessage()

func (*CronJobList) Reset added in v1.5.0

func (m *CronJobList) Reset()

func (*CronJobList) Size added in v1.5.0

func (m *CronJobList) Size() (n int)

func (*CronJobList) String added in v1.5.0

func (this *CronJobList) String() string

func (CronJobList) SwaggerDoc added in v1.5.0

func (CronJobList) SwaggerDoc() map[string]string

func (*CronJobList) Unmarshal added in v1.5.0

func (m *CronJobList) Unmarshal(dAtA []byte) error

type CronJobSpec added in v1.5.0

type CronJobSpec struct {

	// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`

	// Optional deadline in seconds for starting the job if it misses scheduled
	// time for any reason.  Missed jobs executions will be counted as failed ones.
	// +optional
	StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=startingDeadlineSeconds"`

	// Specifies how to treat concurrent executions of a Job.
	// Defaults to Allow.
	// +optional
	ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty" protobuf:"bytes,3,opt,name=concurrencyPolicy,casttype=ConcurrencyPolicy"`

	// This flag tells the controller to suspend subsequent executions, it does
	// not apply to already started executions.  Defaults to false.
	// +optional
	Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"`

	// Specifies the job that will be created when executing a CronJob.
	JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`

	// The number of successful finished jobs to retain.
	// This is a pointer to distinguish between explicit zero and not specified.
	// +optional
	SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty" protobuf:"varint,6,opt,name=successfulJobsHistoryLimit"`

	// The number of failed finished jobs to retain.
	// This is a pointer to distinguish between explicit zero and not specified.
	// +optional
	FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty" protobuf:"varint,7,opt,name=failedJobsHistoryLimit"`
}

CronJobSpec describes how the job execution will look like and when it will actually run.

func (*CronJobSpec) CodecDecodeSelf added in v1.5.0

func (x *CronJobSpec) CodecDecodeSelf(d *codec1978.Decoder)

func (*CronJobSpec) CodecEncodeSelf added in v1.5.0

func (x *CronJobSpec) CodecEncodeSelf(e *codec1978.Encoder)

func (*CronJobSpec) Descriptor added in v1.5.0

func (*CronJobSpec) Descriptor() ([]byte, []int)

func (*CronJobSpec) Marshal added in v1.5.0

func (m *CronJobSpec) Marshal() (dAtA []byte, err error)

func (*CronJobSpec) MarshalTo added in v1.5.0

func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error)

func (*CronJobSpec) ProtoMessage added in v1.5.0

func (*CronJobSpec) ProtoMessage()

func (*CronJobSpec) Reset added in v1.5.0

func (m *CronJobSpec) Reset()

func (*CronJobSpec) Size added in v1.5.0

func (m *CronJobSpec) Size() (n int)

func (*CronJobSpec) String added in v1.5.0

func (this *CronJobSpec) String() string

func (CronJobSpec) SwaggerDoc added in v1.5.0

func (CronJobSpec) SwaggerDoc() map[string]string

func (*CronJobSpec) Unmarshal added in v1.5.0

func (m *CronJobSpec) Unmarshal(dAtA []byte) error

type CronJobStatus added in v1.5.0

type CronJobStatus struct {
	// A list of pointers to currently running jobs.
	// +optional
	Active []v1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"`

	// Information when was the last time the job was successfully scheduled.
	// +optional
	LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"`
}

CronJobStatus represents the current state of a cron job.

func (*CronJobStatus) CodecDecodeSelf added in v1.5.0

func (x *CronJobStatus) CodecDecodeSelf(d *codec1978.Decoder)

func (*CronJobStatus) CodecEncodeSelf added in v1.5.0

func (x *CronJobStatus) CodecEncodeSelf(e *codec1978.Encoder)

func (*CronJobStatus) Descriptor added in v1.5.0

func (*CronJobStatus) Descriptor() ([]byte, []int)

func (*CronJobStatus) Marshal added in v1.5.0

func (m *CronJobStatus) Marshal() (dAtA []byte, err error)

func (*CronJobStatus) MarshalTo added in v1.5.0

func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error)

func (*CronJobStatus) ProtoMessage added in v1.5.0

func (*CronJobStatus) ProtoMessage()

func (*CronJobStatus) Reset added in v1.5.0

func (m *CronJobStatus) Reset()

func (*CronJobStatus) Size added in v1.5.0

func (m *CronJobStatus) Size() (n int)

func (*CronJobStatus) String added in v1.5.0

func (this *CronJobStatus) String() string

func (CronJobStatus) SwaggerDoc added in v1.5.0

func (CronJobStatus) SwaggerDoc() map[string]string

func (*CronJobStatus) Unmarshal added in v1.5.0

func (m *CronJobStatus) Unmarshal(dAtA []byte) error

type JobTemplate

type JobTemplate struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Defines jobs that will be created from this template.
	// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Template JobTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"`
}

JobTemplate describes a template for creating copies of a predefined pod.

func (*JobTemplate) CodecDecodeSelf

func (x *JobTemplate) CodecDecodeSelf(d *codec1978.Decoder)

func (*JobTemplate) CodecEncodeSelf

func (x *JobTemplate) CodecEncodeSelf(e *codec1978.Encoder)

func (*JobTemplate) Descriptor added in v1.4.0

func (*JobTemplate) Descriptor() ([]byte, []int)

func (*JobTemplate) Marshal

func (m *JobTemplate) Marshal() (dAtA []byte, err error)

func (*JobTemplate) MarshalTo

func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error)

func (*JobTemplate) ProtoMessage

func (*JobTemplate) ProtoMessage()

func (*JobTemplate) Reset

func (m *JobTemplate) Reset()

func (*JobTemplate) Size

func (m *JobTemplate) Size() (n int)

func (*JobTemplate) String

func (this *JobTemplate) String() string

func (JobTemplate) SwaggerDoc

func (JobTemplate) SwaggerDoc() map[string]string

func (*JobTemplate) Unmarshal

func (m *JobTemplate) Unmarshal(dAtA []byte) error

type JobTemplateSpec

type JobTemplateSpec struct {
	// Standard object's metadata of the jobs created from this template.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the job.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Spec batchv1.JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

JobTemplateSpec describes the data a Job should have when created from a template

func (*JobTemplateSpec) CodecDecodeSelf

func (x *JobTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder)

func (*JobTemplateSpec) CodecEncodeSelf

func (x *JobTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder)

func (*JobTemplateSpec) Descriptor added in v1.4.0

func (*JobTemplateSpec) Descriptor() ([]byte, []int)

func (*JobTemplateSpec) Marshal

func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error)

func (*JobTemplateSpec) MarshalTo

func (m *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error)

func (*JobTemplateSpec) ProtoMessage

func (*JobTemplateSpec) ProtoMessage()

func (*JobTemplateSpec) Reset

func (m *JobTemplateSpec) Reset()

func (*JobTemplateSpec) Size

func (m *JobTemplateSpec) Size() (n int)

func (*JobTemplateSpec) String

func (this *JobTemplateSpec) String() string

func (JobTemplateSpec) SwaggerDoc

func (JobTemplateSpec) SwaggerDoc() map[string]string

func (*JobTemplateSpec) Unmarshal

func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL