Versions in this module Expand all Collapse all v1 v1.18.4 Apr 2, 2024 Changes in this version + var VERSION = "alpha" + func New() compose.Engine + func ParseParams(ctx compose.Context, task Task) (*micheline.Prim, error) + func ParseScript(ctx compose.Context, task Task) (*micheline.Script, error) + func RegisterTask(typ string, fn TaskFactory) + type Account struct + Id uint + Name string + type Code struct + type Engine struct + func (e *Engine) Clone(ctx compose.Context, ops []compose.Op, cfg compose.CloneConfig) ([]byte, error) + func (e *Engine) Run(ctx compose.Context, fname string) error + func (e *Engine) Validate(ctx compose.Context, fname string) error + type ErrorMode byte + const ErrorModeFail + const ErrorModeIgnore + const ErrorModeWarn + func (m *ErrorMode) UnmarshalText(buf []byte) error + func (m *ErrorMode) UnmarshalYAML(node *yaml.Node) error + type Params struct + Args any + Entrypoint string + Patch []Patch + func (p Params) Validate(ctx compose.Context) error + type Patch struct + Key *string + Optimized bool + Path *string + Type string + Value *string + func (p Patch) Validate(ctx compose.Context) error + type Pipeline struct + Name string + Tasks []Task + func (p Pipeline) Hash64() uint64 + func (p Pipeline) Len() int + func (p Pipeline) Validate(ctx compose.Context) error + type PipelineList []Pipeline + func (l *PipelineList) UnmarshalYAML(node *yaml.Node) error + func (l PipelineList) MarshalYAML() (any, error) + type Script struct + Code *Code + Storage *Storage + func (s Script) Validate(ctx compose.Context) error + type Spec struct + Accounts []Account + Pipelines PipelineList + Variables map[string]string + Version string + func (s Spec) Validate(ctx compose.Context) error + type Storage struct + Args any + Patch []Patch + type Task struct + Alias string + Amount uint64 + Args map[string]any + Contents []Task + Destination string + Log string + OnError ErrorMode + Params *Params + Script *Script + Skip bool + Source string + Type string + Value string + WaitMode WaitMode + func (t Task) Validate(ctx compose.Context) error + type TaskBuilder interface + Build func(compose.Context, Task) (*codec.Op, *rpc.CallOptions, error) + Type func() string + Validate func(compose.Context, Task) error + func NewTask(typ string) (TaskBuilder, error) + type TaskFactory func() TaskBuilder + type ValueSource struct + File string + Url string + Value string + func (v ValueSource) IsUsed() bool + func (v ValueSource) Validate(ctx compose.Context) error + type WaitMode byte + const WaitModeBlock + const WaitModeCycle + const WaitModeInvalid + const WaitModeTime + func (m *WaitMode) UnmarshalText(buf []byte) error + func (m *WaitMode) UnmarshalYAML(node *yaml.Node) error