v1

package
v0.0.0-...-9d9bbfe Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

+genconversion=true

Index

Constants

View Source
const GroupName = "batch"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

func Convert_extensions_JobCondition_To_v1_JobCondition

func Convert_extensions_JobCondition_To_v1_JobCondition(in *extensions.JobCondition, out *JobCondition, s conversion.Scope) error

func Convert_extensions_JobList_To_v1_JobList

func Convert_extensions_JobList_To_v1_JobList(in *extensions.JobList, out *JobList, s conversion.Scope) error

func Convert_extensions_JobSpec_To_v1_JobSpec

func Convert_extensions_JobSpec_To_v1_JobSpec(in *extensions.JobSpec, out *JobSpec, s conversion.Scope) error

func Convert_extensions_JobStatus_To_v1_JobStatus

func Convert_extensions_JobStatus_To_v1_JobStatus(in *extensions.JobStatus, out *JobStatus, s conversion.Scope) error

func Convert_extensions_Job_To_v1_Job

func Convert_extensions_Job_To_v1_Job(in *extensions.Job, out *Job, s conversion.Scope) error

func Convert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement

func Convert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error

func Convert_unversioned_LabelSelector_To_v1_LabelSelector

func Convert_unversioned_LabelSelector_To_v1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error

func Convert_v1_JobCondition_To_extensions_JobCondition

func Convert_v1_JobCondition_To_extensions_JobCondition(in *JobCondition, out *extensions.JobCondition, s conversion.Scope) error

func Convert_v1_JobList_To_extensions_JobList

func Convert_v1_JobList_To_extensions_JobList(in *JobList, out *extensions.JobList, s conversion.Scope) error

func Convert_v1_JobSpec_To_extensions_JobSpec

func Convert_v1_JobSpec_To_extensions_JobSpec(in *JobSpec, out *extensions.JobSpec, s conversion.Scope) error

func Convert_v1_JobStatus_To_extensions_JobStatus

func Convert_v1_JobStatus_To_extensions_JobStatus(in *JobStatus, out *extensions.JobStatus, s conversion.Scope) error

func Convert_v1_Job_To_extensions_Job

func Convert_v1_Job_To_extensions_Job(in *Job, out *extensions.Job, s conversion.Scope) error

func Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement

func Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error

func Convert_v1_LabelSelector_To_unversioned_LabelSelector

func Convert_v1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error

func DeepCopy_v1_Job

func DeepCopy_v1_Job(in Job, out *Job, c *conversion.Cloner) error

func DeepCopy_v1_JobCondition

func DeepCopy_v1_JobCondition(in JobCondition, out *JobCondition, c *conversion.Cloner) error

func DeepCopy_v1_JobList

func DeepCopy_v1_JobList(in JobList, out *JobList, c *conversion.Cloner) error

func DeepCopy_v1_JobSpec

func DeepCopy_v1_JobSpec(in JobSpec, out *JobSpec, c *conversion.Cloner) error

func DeepCopy_v1_JobStatus

func DeepCopy_v1_JobStatus(in JobStatus, out *JobStatus, c *conversion.Cloner) error

func DeepCopy_v1_LabelSelector

func DeepCopy_v1_LabelSelector(in LabelSelector, out *LabelSelector, c *conversion.Cloner) error

Types

type Job

type Job struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is a structure defining the expected behavior of a job.
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
	Spec JobSpec `json:"spec,omitempty"`

	// Status is a structure describing current status of a job.
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
	Status JobStatus `json:"status,omitempty"`
}

Job represents the configuration of a single job.

func (*Job) CodecDecodeSelf

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

func (*Job) CodecEncodeSelf

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

func (*Job) GetObjectKind

func (obj *Job) GetObjectKind() unversioned.ObjectKind

func (Job) SwaggerDoc

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

type JobCondition

type JobCondition struct {
	// Type of job condition, Complete or Failed.
	Type JobConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// Last time the condition was checked.
	LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"`
	// Last time the condition transit from one status to another.
	LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human readable message indicating details about last transition.
	Message string `json:"message,omitempty"`
}

JobCondition describes current state of a job.

func (*JobCondition) CodecDecodeSelf

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

func (*JobCondition) CodecEncodeSelf

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

func (JobCondition) SwaggerDoc

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

type JobConditionType

type JobConditionType string
const (
	// JobComplete means the job has completed its execution.
	JobComplete JobConditionType = "Complete"
	// JobFailed means the job has failed its execution.
	JobFailed JobConditionType = "Failed"
)

These are valid conditions of a job.

func (*JobConditionType) CodecDecodeSelf

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

func (JobConditionType) CodecEncodeSelf

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

type JobList

type JobList struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	unversioned.ListMeta `json:"metadata,omitempty"`

	// Items is the list of Job.
	Items []Job `json:"items"`
}

JobList is a collection of jobs.

func (*JobList) CodecDecodeSelf

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

func (*JobList) CodecEncodeSelf

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

func (*JobList) GetObjectKind

func (obj *JobList) GetObjectKind() unversioned.ObjectKind

func (JobList) SwaggerDoc

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

type JobSpec

type JobSpec struct {

	// Parallelism specifies the maximum desired number of pods the job should
	// run at any given time. The actual number of pods running in steady state will
	// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
	// i.e. when the work left to do is less than max parallelism.
	// More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md
	Parallelism *int32 `json:"parallelism,omitempty"`

	// Completions specifies the desired number of successfully finished pods the
	// job should be run with.  Setting to nil means that the success of any
	// pod signals the success of all pods, and allows parallelism to have any positive
	// value.  Setting to 1 means that parallelism is limited to 1 and the success of that
	// pod signals the success of the job.
	// More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md
	Completions *int32 `json:"completions,omitempty"`

	// Optional duration in seconds relative to the startTime that the job may be active
	// before the system tries to terminate it; value must be positive integer
	ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"`

	// Selector is a label query over pods that should match the pod count.
	// Normally, the system sets this field for you.
	// More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors
	Selector *LabelSelector `json:"selector,omitempty"`

	// ManualSelector controls generation of pod labels and pod selectors.
	// Leave `manualSelector` unset unless you are certain what you are doing.
	// When false or unset, the system pick labels unique to this job
	// and appends those labels to the pod template.  When true,
	// the user is responsible for picking unique labels and specifying
	// the selector.  Failure to pick a unique label may cause this
	// and other jobs to not function correctly.  However, You may see
	// `manualSelector=true` in jobs that were created with the old `extensions/v1beta1`
	// API.
	// More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md
	ManualSelector *bool `json:"manualSelector,omitempty"`

	// Template is the object that describes the pod that will be created when
	// executing a job.
	// More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md
	Template v1.PodTemplateSpec `json:"template"`
}

JobSpec describes how the job execution will look like.

func (*JobSpec) CodecDecodeSelf

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

func (*JobSpec) CodecEncodeSelf

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

func (JobSpec) SwaggerDoc

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

type JobStatus

type JobStatus struct {

	// Conditions represent the latest available observations of an object's current state.
	// More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md
	Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// StartTime represents time when the job was acknowledged by the Job Manager.
	// It is not guaranteed to be set in happens-before order across separate operations.
	// It is represented in RFC3339 form and is in UTC.
	StartTime *unversioned.Time `json:"startTime,omitempty"`

	// CompletionTime represents time when the job was completed. It is not guaranteed to
	// be set in happens-before order across separate operations.
	// It is represented in RFC3339 form and is in UTC.
	CompletionTime *unversioned.Time `json:"completionTime,omitempty"`

	// Active is the number of actively running pods.
	Active int32 `json:"active,omitempty"`

	// Succeeded is the number of pods which reached Phase Succeeded.
	Succeeded int32 `json:"succeeded,omitempty"`

	// Failed is the number of pods which reached Phase Failed.
	Failed int32 `json:"failed,omitempty"`
}

JobStatus represents the current state of a Job.

func (*JobStatus) CodecDecodeSelf

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

func (*JobStatus) CodecEncodeSelf

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

func (JobStatus) SwaggerDoc

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

type LabelSelector

type LabelSelector struct {
	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is "key", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty"`
}

A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.

func (*LabelSelector) CodecDecodeSelf

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

func (*LabelSelector) CodecEncodeSelf

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

func (LabelSelector) SwaggerDoc

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

type LabelSelectorOperator

type LabelSelectorOperator string

A label selector operator is the set of operators that can be used in a selector requirement.

const (
	LabelSelectorOpIn           LabelSelectorOperator = "In"
	LabelSelectorOpNotIn        LabelSelectorOperator = "NotIn"
	LabelSelectorOpExists       LabelSelectorOperator = "Exists"
	LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist"
)

func (*LabelSelectorOperator) CodecDecodeSelf

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

func (LabelSelectorOperator) CodecEncodeSelf

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

type LabelSelectorRequirement

type LabelSelectorRequirement struct {
	// key is the label key that the selector applies to.
	Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"`
	// operator represents a key's relationship to a set of values.
	// Valid operators ard In, NotIn, Exists and DoesNotExist.
	Operator LabelSelectorOperator `json:"operator"`
	// values is an array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty. This array is replaced during a strategic
	// merge patch.
	Values []string `json:"values,omitempty"`
}

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

func (*LabelSelectorRequirement) CodecDecodeSelf

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

func (*LabelSelectorRequirement) CodecEncodeSelf

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

func (LabelSelectorRequirement) SwaggerDoc

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

Jump to

Keyboard shortcuts

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