{"modulePath":"github.com/UnityTech/client-go","version":"v4.0.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package batch\n\n## Constants\n\n```go\nconst GroupName = \"batch\"\n```\nGroupName is the group name use in this package\n\n## Variables\n\n```go\nvar (\n\tSchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)\n\tAddToScheme   = SchemeBuilder.AddToScheme\n)\n```\n\n```go\nvar SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\nSchemeGroupVersion is group version used to register these objects\n\n## Functions\n\n```go\nfunc DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_CronJob is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_CronJobList is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_CronJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_CronJobSpec is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_CronJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_CronJobStatus is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_Job is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_JobCondition is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_JobList is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_JobSpec is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_JobStatus is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_JobTemplate is an autogenerated deepcopy function.\n\n```go\nfunc DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\nDeepCopy\\_batch\\_JobTemplateSpec is an autogenerated deepcopy function.\n\n```go\nfunc Kind(kind string) schema.GroupKind\n```\nKind takes an unqualified kind and returns a Group qualified GroupKind\n\n```go\nfunc RegisterDeepCopies(scheme *runtime.Scheme) error\n```\nRegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.\n\n```go\nfunc Resource(resource string) schema.GroupResource\n```\nResource takes an unqualified resource and returns a Group qualified GroupResource\n\n## Types\n\n```go\ntype ConcurrencyPolicy string\n```\nConcurrencyPolicy 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.\n\n```go\nconst (\n\t// AllowConcurrent allows CronJobs to run concurrently.\n\tAllowConcurrent ConcurrencyPolicy = \"Allow\"\n\n\t// ForbidConcurrent forbids concurrent runs, skipping next run if previous\n\t// hasn't finished yet.\n\tForbidConcurrent ConcurrencyPolicy = \"Forbid\"\n\n\t// ReplaceConcurrent cancels currently running job and replaces it with a new one.\n\tReplaceConcurrent ConcurrencyPolicy = \"Replace\"\n)\n```\n\n```go\ntype CronJob struct {\n\tmetav1.TypeMeta\n\t// Standard object's metadata.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata\n\t// +optional\n\tmetav1.ObjectMeta\n\n\t// Specification of the desired behavior of a cron job, including the schedule.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status\n\t// +optional\n\tSpec CronJobSpec\n\n\t// Current status of a cron job.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status\n\t// +optional\n\tStatus CronJobStatus\n}\n```\nCronJob represents the configuration of a single cron job.\n\n```go\ntype CronJobList struct {\n\tmetav1.TypeMeta\n\t// Standard list metadata.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata\n\t// +optional\n\tmetav1.ListMeta\n\n\t// items is the list of CronJobs.\n\tItems []CronJob\n}\n```\nCronJobList is a collection of cron jobs.\n\n```go\ntype CronJobSpec struct {\n\n\t// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.\n\tSchedule string\n\n\t// Optional deadline in seconds for starting the job if it misses scheduled\n\t// time for any reason.  Missed jobs executions will be counted as failed ones.\n\t// +optional\n\tStartingDeadlineSeconds *int64\n\n\t// Specifies how to treat concurrent executions of a Job.\n\t// Defaults to Allow.\n\t// +optional\n\tConcurrencyPolicy ConcurrencyPolicy\n\n\t// This flag tells the controller to suspend subsequent executions, it does\n\t// not apply to already started executions.  Defaults to false.\n\t// +optional\n\tSuspend *bool\n\n\t// Specifies the job that will be created when executing a CronJob.\n\tJobTemplate JobTemplateSpec\n\n\t// The number of successful finished jobs to retain.\n\t// This is a pointer to distinguish between explicit zero and not specified.\n\t// +optional\n\tSuccessfulJobsHistoryLimit *int32\n\n\t// The number of failed finished jobs to retain.\n\t// This is a pointer to distinguish between explicit zero and not specified.\n\t// +optional\n\tFailedJobsHistoryLimit *int32\n}\n```\nCronJobSpec describes how the job execution will look like and when it will actually run.\n\n```go\ntype CronJobStatus struct {\n\t// A list of pointers to currently running jobs.\n\t// +optional\n\tActive []api.ObjectReference\n\n\t// Information when was the last time the job was successfully scheduled.\n\t// +optional\n\tLastScheduleTime *metav1.Time\n}\n```\nCronJobStatus represents the current state of a cron job.\n\n```go\ntype Job struct {\n\tmetav1.TypeMeta\n\t// Standard object's metadata.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata\n\t// +optional\n\tmetav1.ObjectMeta\n\n\t// Specification of the desired behavior of a job.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status\n\t// +optional\n\tSpec JobSpec\n\n\t// Current status of a job.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status\n\t// +optional\n\tStatus JobStatus\n}\n```\nJob represents the configuration of a single job.\n\n```go\ntype JobCondition struct {\n\t// Type of job condition, Complete or Failed.\n\tType JobConditionType\n\t// Status of the condition, one of True, False, Unknown.\n\tStatus api.ConditionStatus\n\t// Last time the condition was checked.\n\t// +optional\n\tLastProbeTime metav1.Time\n\t// Last time the condition transit from one status to another.\n\t// +optional\n\tLastTransitionTime metav1.Time\n\t// (brief) reason for the condition's last transition.\n\t// +optional\n\tReason string\n\t// Human readable message indicating details about last transition.\n\t// +optional\n\tMessage string\n}\n```\nJobCondition describes current state of a job.\n\n```go\ntype JobConditionType string\n```\n\n```go\nconst (\n\t// JobComplete means the job has completed its execution.\n\tJobComplete JobConditionType = \"Complete\"\n\t// JobFailed means the job has failed its execution.\n\tJobFailed JobConditionType = \"Failed\"\n)\n```\nThese are valid conditions of a job.\n\n```go\ntype JobList struct {\n\tmetav1.TypeMeta\n\t// Standard list metadata.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata\n\t// +optional\n\tmetav1.ListMeta\n\n\t// items is the list of Jobs.\n\tItems []Job\n}\n```\nJobList is a collection of jobs.\n\n```go\ntype JobSpec struct {\n\n\t// Specifies the maximum desired number of pods the job should\n\t// run at any given time. The actual number of pods running in steady state will\n\t// be less than this number when ((.spec.completions - .status.successful) \u003c .spec.parallelism),\n\t// i.e. when the work left to do is less than max parallelism.\n\t// +optional\n\tParallelism *int32\n\n\t// Specifies the desired number of successfully finished pods the\n\t// job should be run with.  Setting to nil means that the success of any\n\t// pod signals the success of all pods, and allows parallelism to have any positive\n\t// value.  Setting to 1 means that parallelism is limited to 1 and the success of that\n\t// pod signals the success of the job.\n\t// +optional\n\tCompletions *int32\n\n\t// Optional duration in seconds relative to the startTime that the job may be active\n\t// before the system tries to terminate it; value must be positive integer\n\t// +optional\n\tActiveDeadlineSeconds *int64\n\n\t// A label query over pods that should match the pod count.\n\t// Normally, the system sets this field for you.\n\t// +optional\n\tSelector *metav1.LabelSelector\n\n\t// manualSelector controls generation of pod labels and pod selectors.\n\t// Leave `manualSelector` unset unless you are certain what you are doing.\n\t// When false or unset, the system pick labels unique to this job\n\t// and appends those labels to the pod template.  When true,\n\t// the user is responsible for picking unique labels and specifying\n\t// the selector.  Failure to pick a unique label may cause this\n\t// and other jobs to not function correctly.  However, You may see\n\t// `manualSelector=true` in jobs that were created with the old `extensions/v1beta1`\n\t// API.\n\t// +optional\n\tManualSelector *bool\n\n\t// Describes the pod that will be created when executing a job.\n\tTemplate api.PodTemplateSpec\n}\n```\nJobSpec describes how the job execution will look like.\n\n```go\ntype JobStatus struct {\n\n\t// The latest available observations of an object's current state.\n\t// +optional\n\tConditions []JobCondition\n\n\t// Represents time when the job was acknowledged by the job controller.\n\t// It is not guaranteed to be set in happens-before order across separate operations.\n\t// It is represented in RFC3339 form and is in UTC.\n\t// +optional\n\tStartTime *metav1.Time\n\n\t// Represents time when the job was completed. It is not guaranteed to\n\t// be set in happens-before order across separate operations.\n\t// It is represented in RFC3339 form and is in UTC.\n\t// +optional\n\tCompletionTime *metav1.Time\n\n\t// The number of actively running pods.\n\t// +optional\n\tActive int32\n\n\t// The number of pods which reached phase Succeeded.\n\t// +optional\n\tSucceeded int32\n\n\t// The number of pods which reached phase Failed.\n\t// +optional\n\tFailed int32\n}\n```\nJobStatus represents the current state of a Job.\n\n```go\ntype JobTemplate struct {\n\tmetav1.TypeMeta\n\t// Standard object's metadata.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata\n\t// +optional\n\tmetav1.ObjectMeta\n\n\t// Defines jobs that will be created from this template.\n\t// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status\n\t// +optional\n\tTemplate JobTemplateSpec\n}\n```\nJobTemplate describes a template for creating copies of a predefined pod.\n\n```go\ntype JobTemplateSpec struct {\n\t// Standard object's metadata of the jobs created from this template.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata\n\t// +optional\n\tmetav1.ObjectMeta\n\n\t// Specification of the desired behavior of the job.\n\t// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status\n\t// +optional\n\tSpec JobSpec\n}\n```\nJobTemplateSpec describes the data a Job should have when created from a template\n\n","path":"github.com/UnityTech/client-go/pkg/apis/batch","name":"batch","synopsis":"","isRedistributable":true}
