Documentation ¶
Index ¶
- type JobSpec
- type JobSpecBehavior
- type JobSpecBehaviorNotifier
- type JobSpecBehaviorRetry
- type JobSpecDependency
- type JobSpecDependencyHTTP
- type JobSpecHook
- type JobSpecMetadata
- type JobSpecMetadataAirflow
- type JobSpecMetadataResource
- type JobSpecMetadataResourceConfig
- type JobSpecSchedule
- type JobSpecTask
- type JobSpecTaskWindow
- type ResourceSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobSpec ¶
type JobSpec struct { Version int `yaml:"version,omitempty"` Name string `yaml:"name"` Owner string `yaml:"owner"` Description string `yaml:"description,omitempty"` Schedule JobSpecSchedule `yaml:"schedule"` Behavior JobSpecBehavior `yaml:"behavior"` Task JobSpecTask `yaml:"task"` Asset map[string]string `yaml:"-"` Labels map[string]string `yaml:"labels,omitempty"` Hooks []JobSpecHook `yaml:"hooks"` Dependencies []JobSpecDependency `yaml:"dependencies"` Metadata *JobSpecMetadata `yaml:"metadata,omitempty"` Path string `yaml:"-"` }
func ToJobSpec ¶
func ToJobSpec(protoSpec *pb.JobSpecification) *JobSpec
func (*JobSpec) MergeFrom ¶
TODO: there are some refactors required, however it will be addressed once we relook at the job spec inheritance
func (*JobSpec) ToProto ¶
func (j *JobSpec) ToProto() *pb.JobSpecification
type JobSpecBehavior ¶
type JobSpecBehavior struct { DependsOnPast bool `yaml:"depends_on_past"` Catchup bool `yaml:"catch_up"` Retry *JobSpecBehaviorRetry `yaml:"retry,omitempty"` Notify []JobSpecBehaviorNotifier `yaml:"notify,omitempty"` }
type JobSpecBehaviorNotifier ¶
type JobSpecBehaviorRetry ¶
type JobSpecDependency ¶
type JobSpecDependency struct { JobName string `yaml:"job,omitempty"` Type string `yaml:"type,omitempty"` HTTP *JobSpecDependencyHTTP `yaml:"http,omitempty"` }
type JobSpecDependencyHTTP ¶
type JobSpecHook ¶
type JobSpecMetadata ¶
type JobSpecMetadata struct { Resource *JobSpecMetadataResource `yaml:"resource,omitempty"` Airflow *JobSpecMetadataAirflow `yaml:"airflow,omitempty"` }
type JobSpecMetadataAirflow ¶
type JobSpecMetadataResource ¶
type JobSpecMetadataResource struct { Request *JobSpecMetadataResourceConfig `yaml:"request,omitempty"` Limit *JobSpecMetadataResourceConfig `yaml:"limit,omitempty"` }
type JobSpecSchedule ¶
type JobSpecTask ¶
type JobSpecTask struct { Name string `yaml:"name"` Config map[string]string `yaml:"config,omitempty"` Window JobSpecTaskWindow `yaml:"window"` }
type JobSpecTaskWindow ¶
type ResourceSpec ¶
type ResourceSpec struct { Version int `yaml:"version"` Name string `yaml:"name"` Type string `yaml:"type"` Labels map[string]string `yaml:"labels"` Spec map[string]interface{} `yaml:"spec"` }
func (ResourceSpec) ToProto ¶
func (r ResourceSpec) ToProto() (*pb.ResourceSpecification, error)
Click to show internal directories.
Click to hide internal directories.