orchestrator

package
v0.38.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 30 Imported by: 0

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 signals the running devrig process to shut down (SIGTERM on Unix; a forceful tree kill on Windows), located via the PID file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL