Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJob ¶
type CronJob struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Spec *CronJobSpec `json:"spec,omitempty"` // Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Status *CronJobStatus `json:"status,omitempty"` }
CronJob CronJob represents the configuration of a single cron job.
swagger:model CronJob
func (CronJob) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CronJob) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CronJob) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CronJob) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CronJobList ¶
type CronJobList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // items is the list of CronJobs. // Required: true Items []*CronJob `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
CronJobList CronJobList is a collection of cron jobs.
swagger:model CronJobList
func (CronJobList) MarshalEasyJSON ¶
func (v CronJobList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CronJobList) MarshalJSON ¶
func (v CronJobList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CronJobList) UnmarshalEasyJSON ¶
func (v *CronJobList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CronJobList) UnmarshalJSON ¶
func (v *CronJobList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CronJobSpec ¶
type CronJobSpec struct { // Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one ConcurrencyPolicy string `json:"concurrencyPolicy,omitempty"` // The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. FailedJobsHistoryLimit int32 `json:"failedJobsHistoryLimit,omitempty"` // Specifies the job that will be created when executing a CronJob. // Required: true JobTemplate *JobTemplateSpec `json:"jobTemplate"` // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. // Required: true Schedule *string `json:"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. StartingDeadlineSeconds int64 `json:"startingDeadlineSeconds,omitempty"` // The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. SuccessfulJobsHistoryLimit int32 `json:"successfulJobsHistoryLimit,omitempty"` // This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. Suspend bool `json:"suspend,omitempty"` }
CronJobSpec CronJobSpec describes how the job execution will look like and when it will actually run.
swagger:model CronJobSpec
func (CronJobSpec) MarshalEasyJSON ¶
func (v CronJobSpec) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CronJobSpec) MarshalJSON ¶
func (v CronJobSpec) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CronJobSpec) UnmarshalEasyJSON ¶
func (v *CronJobSpec) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CronJobSpec) UnmarshalJSON ¶
func (v *CronJobSpec) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CronJobStatus ¶
type CronJobStatus struct { // A list of pointers to currently running jobs. Active []api_core_v1.ObjectReference `json:"active"` // Information when was the last time the job was successfully scheduled. LastScheduleTime apimachinery_pkg_apis_meta_v1.Time `json:"lastScheduleTime,omitempty"` }
CronJobStatus CronJobStatus represents the current state of a cron job.
swagger:model CronJobStatus
func (CronJobStatus) MarshalEasyJSON ¶
func (v CronJobStatus) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CronJobStatus) MarshalJSON ¶
func (v CronJobStatus) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CronJobStatus) UnmarshalEasyJSON ¶
func (v *CronJobStatus) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CronJobStatus) UnmarshalJSON ¶
func (v *CronJobStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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/sig-architecture/api-conventions.md#metadata Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Spec api_batch_v1.JobSpec `json:"spec,omitempty"` }
JobTemplateSpec JobTemplateSpec describes the data a Job should have when created from a template
swagger:model JobTemplateSpec
func (JobTemplateSpec) MarshalEasyJSON ¶
func (v JobTemplateSpec) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (JobTemplateSpec) MarshalJSON ¶
func (v JobTemplateSpec) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*JobTemplateSpec) UnmarshalEasyJSON ¶
func (v *JobTemplateSpec) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*JobTemplateSpec) UnmarshalJSON ¶
func (v *JobTemplateSpec) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface