Versions in this module Expand all Collapse all v0 v0.1.0 Sep 6, 2026 Changes in this version + const DefaultAppsRoot + const DefaultOverrideReason + const VariantDeploy + const VariantPromote + const WarnMissingInTarget + const WarnProductionTarget + const WarnSourceDisagrees + const WarnSourceOnlyUnwritable + func Apply(root string, edits []Edit) (changed []string, err error) + func ApplyBytes(before []byte, edits []Edit) ([]byte, error) + func ChooseRef(occ []Occurrence) (chosen image.Ref, reason string, disagree bool) + func IsPromotable(repo string, prefixes []string) bool + func MatchesPrefix(repo, prefix string) bool + func ResolvePath(root, rel string) (string, error) + func UnifiedDiff(path string, before, after []byte) string + func Verify(before, after map[string][]byte, edits []Edit) error + type ArgoApp struct + File string + Name string + Namespace string + SourcePath string + type Edit struct + New image.Ref + func (e Edit) NoOp() bool + type Env struct + Dir string + Families map[string]*Family + Name string + type Family struct + App string + Dir string + Name string + Occurrences []Occurrence + type Occurrence struct + Col int + Container string + Doc int + File string + Kind string + Line int + Name string + Path string + Raw string + Ref image.Ref + Style yaml.Style + type Plan struct + Edits []Edit + GeneratedAt time.Time + SourceEnv string + TargetEnv string + Untouched []image.Ref + Variant string + Warnings []Warning + func BuildDeployPlan(r *Repo, env string, ref image.Ref, promotable []string) (Plan, error) + func BuildPlan(r *Repo, src, dst string, promotable []string, digests map[string]image.Ref) (Plan, error) + func BuildPlanWith(r *Repo, src, dst string, promotable []string, digests map[string]image.Ref, ...) (Plan, error) + func (p Plan) IsDeploy() bool + type Repo struct + Apps []ArgoApp + AppsRoot string + Envs map[string]*Env + Root string + Unmanaged []string + func Discover(root, appsRoot string) (*Repo, error) + type Warning struct + Code string + Message string + Occurrences []Occurrence