Documentation ¶
Index ¶
- Variables
- func GenerateJsonSchema() ([]byte, error)
- func Parse(yamlWorkflow string) (*workflow, error)
- func ParseWorkflowSpecYaml(data string) (workflowSpec, error)
- func ValidatedWorkflowSpec(tomlString string) (job.Job, error)
- type Config
- type Delegate
- func (d *Delegate) AfterJobCreated(jb job.Job)
- func (d *Delegate) BeforeJobCreated(spec job.Job)
- func (d *Delegate) BeforeJobDeleted(spec job.Job)
- func (d *Delegate) JobType() job.Type
- func (d *Delegate) OnDeleteJob(context.Context, job.Job) error
- func (d *Delegate) ServicesForSpec(ctx context.Context, spec job.Job) ([]job.ServiceCtx, error)
- type Engine
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // S = [N] Schedule_AllAtOnce = "allAtOnce" // S = [1 * N] Schedule_OneAtATime = "oneAtATime" )
Functions ¶
func GenerateJsonSchema ¶ added in v2.11.0
func ParseWorkflowSpecYaml ¶ added in v2.11.0
Types ¶
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
func NewDelegate ¶
func NewDelegate(logger logger.Logger, registry core.CapabilitiesRegistry, legacyEVMChains legacyevm.LegacyChainContainer, peerID func() *p2ptypes.PeerID) *Delegate
func (*Delegate) AfterJobCreated ¶
func (*Delegate) BeforeJobCreated ¶
func (*Delegate) BeforeJobDeleted ¶
func (*Delegate) ServicesForSpec ¶
ServicesForSpec satisfies the job.Delegate interface.
type Engine ¶
type Engine struct { services.StateMachine // contains filtered or unexported fields }
Engine handles the lifecycle of a single workflow and its executions.
Click to show internal directories.
Click to hide internal directories.