Documentation ¶
Index ¶
- Constants
- type JobSpec
- type JobSpecBehavior
- type JobSpecBehaviorNotifier
- type JobSpecBehaviorRetry
- type JobSpecBehaviorWebhook
- type JobSpecDependency
- type JobSpecDependencyHTTP
- type JobSpecHook
- type JobSpecMetadata
- type JobSpecMetadataAirflow
- type JobSpecMetadataResource
- type JobSpecMetadataResourceConfig
- type JobSpecSchedule
- type JobSpecTask
- type JobSpecTaskWindow
- type Preset
- type PresetsMap
- type ResourceSpec
- type WebhookEndpoint
Constants ¶
View Source
const NewWindowVersion = 3
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,omitempty"` Retry *JobSpecBehaviorRetry `yaml:"retry,omitempty"` Notify []JobSpecBehaviorNotifier `yaml:"notify,omitempty"` Webhook []JobSpecBehaviorWebhook `yaml:"webhook,omitempty"` }
type JobSpecBehaviorNotifier ¶
type JobSpecBehaviorRetry ¶
type JobSpecBehaviorWebhook ¶ added in v0.11.4
type JobSpecBehaviorWebhook struct { On string `yaml:"on"` Endpoints []WebhookEndpoint `yaml:"endpoints"` }
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,omitempty"` }
type JobSpecTaskWindow ¶
type JobSpecTaskWindow struct { Size string `yaml:"size,omitempty"` // deprecated, replaced by ShiftBy Offset string `yaml:"offset,omitempty"` TruncateTo string `yaml:"truncate_to,omitempty"` Preset string `yaml:"preset,omitempty"` ShiftBy string `yaml:"shift_by,omitempty"` Location string `yaml:"location,omitempty"` }
type Preset ¶ added in v0.10.0
type Preset struct { Description string `yaml:"description"` Window JobSpecTaskWindow `yaml:"window"` }
type PresetsMap ¶ added in v0.10.0
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"` Path string `yaml:"-"` }
func (ResourceSpec) ToProto ¶
func (r ResourceSpec) ToProto() (*pb.ResourceSpecification, error)
type WebhookEndpoint ¶ added in v0.11.4
Click to show internal directories.
Click to hide internal directories.