Versions in this module Expand all Collapse all v0 v0.5.0 Apr 4, 2026 Changes in this version + const PhaseCleanup + const PhaseExecute + const PhaseLoad + const PhasePlan + const PhasePrepare + const PhaseReport + const PhaseResolve + const PhaseValidate + func HasCapability(backend LifecycleBackend, cap Capability) bool + func Register(mode, name string, constructor func() LifecycleBackend) + func RunLifecycle(ctx context.Context, cfg *config.Config, rctx *RuntimeContext) error + func ValidateCapabilities(backend LifecycleBackend, required []Capability) error + type ActionResult struct + Duration time.Duration + Message string + Name string + Stderr string + Success bool + type Capability string + const CapClusterAuth + const CapDryRun + const CapForgeAuth + const CapImpactAnalysis + const CapPlanExecute + const CapReconcile + const CapStructuredProgress + func DeriveRequired(cfg *config.Config, rctx *RuntimeContext) []Capability + type InvokerType string + const InvokerAPI + const InvokerCI + const InvokerLocal + func DetectInvoker(ciCtx *ci.CIContext) InvokerType + type LifecycleBackend interface + Capabilities func() []Capability + Cleanup func(rctx *RuntimeContext) + Execute func(ctx context.Context, plan *LifecyclePlan, rctx *RuntimeContext) (*LifecycleResult, error) + Name func() string + Plan func(ctx context.Context, cfg *config.Config, rctx *RuntimeContext) (*LifecyclePlan, error) + Prepare func(ctx context.Context, cfg *config.Config, rctx *RuntimeContext) error + Validate func(ctx context.Context, cfg *config.Config, rctx *RuntimeContext) error + func ResolveBackend(mode, name string) (LifecycleBackend, error) + type LifecyclePlan struct + Actions []PlannedAction + Backend string + DryRun bool + Mode string + type LifecycleResult struct + Actions []ActionResult + type PlannedAction struct + Action string + Description string + Metadata map[string]string + Name string + Order int + type ResolvedState struct + Backend LifecycleBackend + CAPath string + KubeconfigPath string + func (r *ResolvedState) AddCleanup(fn func()) + func (r *ResolvedState) Cleanup() + type RuntimeContext struct + CI *ci.CIContext + DryRun bool + Invoker InvokerType + RepoRoot string + Resolved ResolvedState + func (r *RuntimeContext) Plan() *LifecyclePlan + func (r *RuntimeContext) Result() *LifecycleResult + type RuntimeError struct + Backend string + Cause error + Message string + Phase string + func (e *RuntimeError) Error() string + func (e *RuntimeError) Unwrap() error