Documentation
¶
Overview ¶
Package orchestrate provides CLI commands for CI/CD orchestration.
Index ¶
Constants ¶
const DefaultStateKey = "prerelease"
DefaultStateKey is used for state tracking when no environments are configured.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates the orchestrate command with subcommands.
Types ¶
type Option ¶ added in v0.12.0
type Option func(*Orchestrator)
Option configures an Orchestrator at construction. Options are the additive extension point so new per-invocation scoping (such as a component selector) is never a breaking change to NewOrchestrator's positional signature.
func WithComponent ¶ added in v0.12.0
WithComponent scopes the orchestration to the named declared component, so its version is derived from that component's path-scoped commits and strict tag namespace rather than the whole repo. An empty name is a no-op, preserving the single-component path.
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
Orchestrator handles CI/CD orchestration logic.
func NewOrchestrator ¶
func NewOrchestrator(configPath, manifestKey, environment string, opts ...Option) (*Orchestrator, error)
NewOrchestrator creates a new Orchestrator.
func (*Orchestrator) Finalize ¶
func (o *Orchestrator) Finalize(headSHA, version string, deployResults, buildResults map[string]string) error
Finalize runs the finalize phase.
func (*Orchestrator) Setup ¶
func (o *Orchestrator) Setup(headSHA string) (*output.SetupResult, error)
Setup runs the setup phase and returns the result.