Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { // Required. The service that this belongs to Service string // Required. The verb to perform. Verb string // Optional. A way to unique identify the step. Subresource string }
func ParseActionID ¶
ParseActionID parses an action ID into its constituent parts.
func (Action) IntegrationVerbString ¶
type RandomScheduleOpt ¶
type RandomScheduleOpt string
const ( Random15Min RandomScheduleOpt = "random_15_min" RandomHourly RandomScheduleOpt = "random_hourly" RandomDaily RandomScheduleOpt = "random_daily" )
type Workflow ¶
type Workflow struct { Name string `yaml:"name,omitempty"` Concurrency *WorkflowConcurrency `yaml:"concurrency,omitempty"` Version string `yaml:"version,omitempty"` Description string `yaml:"description,omitempty"` Triggers WorkflowTriggers `yaml:"triggers"` Jobs map[string]WorkflowJob `yaml:"jobs"` }
func DefaultLoader ¶
func DefaultLoader() []*Workflow
func ReadAllValidFilesInDir ¶
func ReadHatchetYAMLFileBytes ¶
ReadHatchetYAMLFileBytes reads a given YAML file from a filepath and return the parsed workflow file
type WorkflowConcurrency ¶ added in v0.8.0
type WorkflowConcurrency struct { ActionID string `yaml:"action,omitempty"` MaxRuns int32 `yaml:"maxRuns,omitempty"` LimitStrategy WorkflowConcurrencyLimitStrategy `yaml:"limitStrategy,omitempty"` }
type WorkflowConcurrencyLimitStrategy ¶ added in v0.8.0
type WorkflowConcurrencyLimitStrategy string
const (
CancelInProgress WorkflowConcurrencyLimitStrategy = "CANCEL_IN_PROGRESS"
)
type WorkflowEvent ¶
type WorkflowEvent struct {
Name string `yaml:"name,omitempty"`
}
type WorkflowJob ¶
type WorkflowJob struct { Description string `yaml:"description,omitempty"` Timeout string `yaml:"timeout,omitempty"` Steps []WorkflowStep `yaml:"steps"` }
type WorkflowOnCron ¶
type WorkflowOnCron struct {
Schedule string `yaml:"schedule,omitempty"`
}
type WorkflowStep ¶
Click to show internal directories.
Click to hide internal directories.