actions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Doctor

func Doctor(engine Engine, options OperationOptions) error

Doctor validates topology and maneuver definitions.

func Down

func Down(engine Engine, options OperationOptions) error

Down stops the runtime root and subordinates in reverse dependency order.

func Maneuver

func Maneuver(engine Engine, options OperationOptions, maneuverName string) error

Maneuver executes a named maneuver on the runtime root node.

func ModulesInit

func ModulesInit(engine Engine) error

ModulesInit runs git submodule init for the runtime root.

func ModulesStatus

func ModulesStatus(engine Engine) error

ModulesStatus runs git submodule status for the runtime root.

func ModulesSync

func ModulesSync(engine Engine) error

ModulesSync runs git submodule sync for the runtime root.

func ModulesUpdate

func ModulesUpdate(engine Engine) error

ModulesUpdate runs git submodule update for the runtime root.

func Signal

func Signal(engine Engine, options OperationOptions, arguments []string) error

Signal routes an action to one subordinate or broadcasts to direct subordinates.

func Status

func Status(engine Engine, options OperationOptions) error

Status reports runtime node statuses for current scope.

func Tree

func Tree(engine Engine) error

Tree logs discovered subordinate hierarchy.

func Up

func Up(engine Engine, options OperationOptions) error

Up starts the runtime root and subordinates in dependency order.

Types

type Engine

type Engine interface {
	EnsureInitialized() error
	NormalizeOptions(options OperationOptions) OperationOptions
	Root() *RuntimeNode
	NodesByID() map[string]*RuntimeNode
	ResolveExecutionOrder(runtime *RuntimeNode, nodesByID map[string]*RuntimeNode) ([]*RuntimeNode, error)
	BuildEffectiveEnvironments(runtime *RuntimeNode, environmentName string) (map[string]domain.EnvironmentDefinition, error)
	CollectRuntimeNodes(runtime *RuntimeNode) []*RuntimeNode
	ShouldOperateOnNode(node domain.OrchestrationNode, tags []string) bool
	SelectReactor(node domain.OrchestrationNode) ports.Reactor
	VerifyNodeHealth(runtime *RuntimeNode, environment string) error
	RunProcess(request ports.ProcessRunRequest) error
	ListNodeManeuvers(node domain.OrchestrationNode) []domain.ManeuverDefinition
	Info(message string, arguments ...any)
	Warn(message string, arguments ...any)
	Success(message string, arguments ...any)
}

Engine defines orchestration internals required by actions.

type OperationOptions

type OperationOptions struct {
	Environment string
	Tags        []string
}

OperationOptions controls one orchestration capability call.

type RuntimeNode

type RuntimeNode struct {
	Node        domain.OrchestrationNode
	LocalID     string
	Binary      string
	Children    []*RuntimeNode
	HealthCheck *domain.HealthCheckDefinition
}

RuntimeNode stores resolved orchestration state for one node.

Jump to

Keyboard shortcuts

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