Documentation
¶
Overview ¶
Package orchestrator is the central startup coordinator. It loads config, resolves the dependency graph, allocates ports, resolves template variables, and supervises all services.
Multi-phase startup order:
Phase 0 — Parse config, validate, load previous state Phase 0.5 — Dashboard + OTel collector Phase 0.6 — Reserve OIDC provider port Phase 1 — Docker network (stub until Docker Phase 3) Phase 2 — Compose services (stub until Docker Phase 3) Phase 3 — Infrastructure containers (stub until Docker Phase 3) Phase 3.5 — k3d cluster Phase 4 — Resolve ports, template vars, DEVRIG_* env Phase 4.5 — Bind OIDC provider Phase 4.9 — Save state, register instance Phase 5 — Spawn service supervisors
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
Orchestrator manages the full lifecycle of a devrig project.
func New ¶
func New(cfgPath string) (*Orchestrator, error)
New loads and validates a config file, computes the project identity, and returns a ready-to-use Orchestrator.
func (*Orchestrator) Delete ¶
func (o *Orchestrator) Delete() error
Delete stops the project, removes all managed resources, and unregisters it.
func (*Orchestrator) Start ¶
func (o *Orchestrator) Start(filter []string, devMode bool) error
Start runs the full startup sequence. filter restricts which services are started (empty = all). devMode spawns the Vite dev server for --dev.
func (*Orchestrator) Stop ¶
func (o *Orchestrator) Stop() error
Stop sends SIGTERM to the running devrig process via the PID file.