Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 560 Bytes

File metadata and controls

23 lines (15 loc) · 560 Bytes

Basic DAG

The simplest orchestrator pattern: create a plan with ordered steps and run it.

Usage

o := orchestrator.New(url, token)

health := o.HealthCheck()
o.NodeHostnameGet("_any").After(health)

report, err := o.Run(ctx)

Steps are connected with .After() to form a directed acyclic graph. The orchestrator resolves the dependency order and executes steps level by level.

Example

See examples/features/basic.go for a complete working example.