Versions in this module Expand all Collapse all v0 v0.5.0 Apr 4, 2026 Changes in this version + func AllowDestructiveOrphanAction(trust DiscoveryTrust, knownCount, runningCount, orphanCount, threshold int) (bool, string) + func ComputeBundleHash(stack StackInfo, rootDir string, secrets SecretsProvider) string + func RenderPlan(w io.Writer, plan *runtime.LifecyclePlan, elapsed time.Duration, color bool) + func RenderResult(w io.Writer, plan *runtime.LifecyclePlan, result *runtime.LifecycleResult, ...) + func SaveHashStamps(rootDir string, stamps *HashStamps) error + type ActionDetail struct + Allowed bool + BlockedReason string + Effective string + Requested string + type AnomalyEntry struct + Message string + Severity string + Type string + type AnsibleInventory struct + Path string + func (a *AnsibleInventory) Name() string + func (a *AnsibleInventory) Resolve(_ context.Context, selector TargetSelector) ([]HostTarget, error) + type ComposeBackend struct + func (c *ComposeBackend) Capabilities() []runtime.Capability + func (c *ComposeBackend) Cleanup(rctx *runtime.RuntimeContext) + func (c *ComposeBackend) Execute(ctx context.Context, plan *runtime.LifecyclePlan, rctx *runtime.RuntimeContext) (*runtime.LifecycleResult, error) + func (c *ComposeBackend) Name() string + func (c *ComposeBackend) Plan(ctx context.Context, cfg *config.Config, rctx *runtime.RuntimeContext) (*runtime.LifecyclePlan, error) + func (c *ComposeBackend) Prepare(ctx context.Context, cfg *config.Config, rctx *runtime.RuntimeContext) error + func (c *ComposeBackend) Validate(ctx context.Context, cfg *config.Config, rctx *runtime.RuntimeContext) error + type DeployResult struct + Duration time.Duration + Host string + Message string + Stack string + Success bool + type DiscoveryTrust struct + DeclaredTargets bool + IaCRootExists bool + Level TrustLevel + Reasons []TrustFailureReason + RepoIdentityMatch bool + ScanSucceeded bool + Sentinel bool + StackCount int + func EvaluateTrust(rootDir, iacPath, expectedMode string) DiscoveryTrust + func (t *DiscoveryTrust) MarkDeclaredTargets(resolved bool) + func (t *DiscoveryTrust) MarkScanResult(succeeded bool, stackCount int) + type DockerPlanMeta struct + BlockedReason string + BundleHash string + DeployKind string + DriftDetected bool + DriftReason string + DriftTier int + IsOrphan bool + Path string + RequestedAction string + Scope string + ScopeKind string + Stack string + StoredHash string + func ParseDockerPlanMeta(m map[string]string) DockerPlanMeta + func (m DockerPlanMeta) ToMetadata() map[string]string + type DriftDetail struct + Detected bool + Kind string + Reason string + type DriftPolicy struct + OrphanAction string + OrphanThreshold int + PruneRequiresConfirmation bool + Tier2Action string + func DefaultDriftPolicy() DriftPolicy + type DriftResult struct + BundleHash string + Drifted bool + Host string + Reason string + Stack string + StoredHash string + Tier int + func DetectDrift(ctx context.Context, stack StackInfo, rootDir string, stamps *HashStamps, ...) DriftResult + type EnvFile struct + Encrypted bool + FullPath string + Path string + type ExecResult struct + Duration time.Duration + ExitCode int + Stderr string + Stdout string + Success bool + type HashStamps struct + Stacks map[string]StackStamp + func LoadHashStamps(rootDir string) (*HashStamps, error) + type Hook struct + Path string + Phase string + type HostTarget struct + Address string + Groups []string + Name string + Transport HostTransport + Vars map[string]string + type HostTransport interface + Close func() error + ExecuteAction func(ctx context.Context, action StackAction) (ExecResult, error) + InspectStack func(ctx context.Context, project string) (StackInspection, error) + ListProjects func(ctx context.Context) ([]string, error) + func ResolveTransport(target HostTarget) HostTransport + type InventorySource interface + Name func() string + Resolve func(ctx context.Context, selector TargetSelector) ([]HostTarget, error) + type LocalTransport struct + func (l *LocalTransport) Close() error + func (l *LocalTransport) ExecuteAction(ctx context.Context, action StackAction) (ExecResult, error) + func (l *LocalTransport) InspectStack(ctx context.Context, project string) (StackInspection, error) + func (l *LocalTransport) ListProjects(ctx context.Context) ([]string, error) + type OrphanPlan struct + Action ActionDetail + Project string + Reason string + Scope string + type PlanOutput struct + Backend string + Generated time.Time + Mode string + Summary PlanSummary + Targets []TargetPlan + Trust TrustOutput + func BuildPlanOutput(plan *runtime.LifecyclePlan, trust DiscoveryTrust, targets []HostTarget) PlanOutput + func (p PlanOutput) JSON() ([]byte, error) + type PlanSummary struct + Actions map[string]int + Blocked int + Drifted int + Orphans int + Total int + type SOPSProvider struct + func (s *SOPSProvider) Decrypt(_ context.Context, path string) ([]byte, error) + func (s *SOPSProvider) Encrypt(_ context.Context, path string, data []byte) error + func (s *SOPSProvider) IsEncrypted(path string) bool + func (s *SOPSProvider) Name() string + type SSHTransport struct + Host string + KeyPath string + User string + func (s *SSHTransport) Close() error + func (s *SSHTransport) ExecuteAction(ctx context.Context, action StackAction) (ExecResult, error) + func (s *SSHTransport) InspectStack(ctx context.Context, project string) (StackInspection, error) + func (s *SSHTransport) ListProjects(ctx context.Context) ([]string, error) + type SecretsProvider interface + Decrypt func(ctx context.Context, path string) ([]byte, error) + Encrypt func(ctx context.Context, path string, data []byte) error + IsEncrypted func(path string) bool + Name func() string + func ResolveSecretsProvider(name string) (SecretsProvider, error) + type ServiceRuntimeState struct + ConfigHash string + ContainerID string + Image string + Running bool + Service string + State string + type StackAction struct + Action string + BundleDir string + ComposeFile string + EnvFiles []string + Hooks []Hook + ProjectName string + Stack string + Target string + WorkDir string + type StackInfo struct + ComposeFile string + ComposeProject string + DeployKind string + EnvFiles []EnvFile + Name string + Path string + Scope string + ScopeKind string + Scripts []string + func ScanIaC(rootDir, iacPath string, knownHosts map[string]bool) ([]StackInfo, error) + type StackInspection struct + Project string + Services []ServiceRuntimeState + type StackPlan struct + Action ActionDetail + Drift DriftDetail + Name string + Project string + Scope string + Status string + type StackStamp struct + BundleHash string + ConfigHash string + DeployedAt time.Time + type TargetPlan struct + Anomalies []AnomalyEntry + Name string + Orphans []OrphanPlan + Stacks []StackPlan + Transport string + type TargetSelector struct + Groups []string + type TrustChecks struct + DeclaredTargets bool + IaCRoot bool + RepoIdentity bool + Scan bool + Sentinel bool + type TrustFailureReason string + const ReasonIaCRootMissing + const ReasonLifecycleMismatch + const ReasonNoSentinel + const ReasonRepoMismatch + const ReasonScanFailed + const ReasonTargetNotDeclared + type TrustLevel string + const TrustAuthoritative + const TrustNone + const TrustPartial + type TrustOutput struct + Checks TrustChecks + Level string + Reasons []string