Versions in this module Expand all Collapse all v0 v0.5.0 Sep 18, 2026 v0.4.2 Sep 18, 2026 v0.4.1 Sep 18, 2026 v0.4.0 Sep 17, 2026 Changes in this version type DefaultsConf + Protect *bool + ProtectPassword *string + ProtectUser *string + func (d DefaultsConf) Check() error type TileConf + BasicAuthPassword string v0.3.0 Sep 17, 2026 v0.2.0 Sep 16, 2026 Changes in this version + func ParseMiddlewares(s string) map[string]RawMap + func RenderMiddlewares(m map[string]RawMap) string type DomainConf + Middlewares []string + Port int + Priority int + Rule string type File + Proxy ProxyConf + type ProxyConf struct + Middlewares map[string]RawMap type Resolved + Middlewares map[string]RawMap type State + MiddlewareUsers map[string][]string + Middlewares string + OrgMiddlewares map[string]map[string]bool + StackSlug string v0.1.4 Sep 16, 2026 v0.1.3 Sep 16, 2026 v0.1.2 Sep 16, 2026 v0.1.1 Sep 16, 2026 v0.1.0 Sep 15, 2026 Changes in this version + const ApplyKind + const DefaultPath + var ErrNoFile = errors.New("config file not found in repo") + var ErrNotBound = errors.New("stack has no config repo bound") + func EnqueueApply(ctx context.Context, q *workqueue.Queue, stack *repo.Stack, ...) (string, error) + func EnvLines(env map[string]string) string + func ExportYAML(r *Resolved) ([]byte, error) + func FromInstance(from string) string + func HumanYAML(err error) error + func ParseDep(line string) (slug, cond string, err error) + func PolicyFor(env *repo.Environment, protected bool) string + func RegisterApply(q *workqueue.Queue, a Applier) + func ValidateDomains(ds []DomainResConf) error + func ValidateTileConf(name string, tc TileConf) error + func ValidateUIEdits(v string) error + type Applier struct + Backups *backup.Service + DBs *managedtiles.Service + Deployed map[string]bool + Engine *deploy.Engine + Jobs *jobs.Service + Ops envops.Ops + Planner Planner + func (a Applier) ApplyPlan(ctx context.Context, stack *repo.Stack, cp *repo.ConfigPlan, force bool) (bool, error) + func (a Applier) ApplyResolved(ctx context.Context, stack *repo.Stack, resolved *Resolved, opts DiffOpts, ...) (bool, error) + func (a Applier) ApplyStaged(ctx context.Context, stack *repo.Stack, env *repo.Environment, force bool) (bool, error) + func (a Applier) CopyTile(ctx context.Context, stack *repo.Stack, env *repo.Environment, slug string, ...) error + func (a Applier) Promote(ctx context.Context, stack *repo.Stack, envSlug, commit string) error + func (a Applier) RenameStack(ctx context.Context, stack *repo.Stack, name string, p *Plan) error + func (a Applier) RestartTile(ctx context.Context, t *repo.Tile) + func (a Applier) RunApplyJob(ctx context.Context, j *workqueue.Job, p ApplyJob) error + func (a Applier) StagedPlan(ctx context.Context, stack *repo.Stack, envSlug string) (*Plan, error) + func (a Applier) StagedResolved(ctx context.Context, stack *repo.Stack) (*Resolved, State, error) + type ApplyJob struct + Force bool + PlanID string + PromoteCommit string + PromoteEnv string + StackID string + type BackupConf struct + Dest string + Enabled *bool + Keep int + Mode string + Schedule string + TZ string + func (b BackupConf) On() bool + type BaseConf struct + Tiles map[string]RawMap + type BuildConf struct + Context string + Dockerfile string + type Change struct + Destroys bool + Env string + Field string + Fields []Field + Input bool + Kind string + New string + Note string + Old string + Tile string + func GenChange(scope, name string) Change + func InputChange(in Input) Change + func PlanMove(m Move, st MoveState) (change *Change, warning, err string) + func (c Change) Declared() bool + type DefaultsConf struct + CPULimit *float64 + CronTimeoutMin *int + MemLimitMB *int + MetricRetentionHours *int + NodeGroup *string + ProtectAutoDomains *bool + RunRetentionDays *int + func (d DefaultsConf) Empty() bool + func (d DefaultsConf) SettingsJSON() string + type DiffOpts struct + Connector string + DefaultBranch string + DefaultEnv string + DomainResources []repo.DomainResource + ForeignOrgSlugs map[string]bool + GitURL string + OnlyEnv string + OrgSlug string + SkipEnvs map[string]bool + StackSlug string + func (o DiffOpts) OutOfScope(envSlug string) bool + type DomainConf struct + Apex string + Auto bool + ForceHTTPS *bool + HTTPS *bool + Host string + Path string + RedirectTo string + func (d DomainConf) ForceHTTPSOn() bool + func (d DomainConf) HTTPSOn() bool + type DomainResConf struct + ACMEEmail string + Host string + IncludeEnvOnDefault bool + type EnvConf struct + ApplyPolicy string + Color string + Defaults DefaultsConf + Protected bool + Secrets []string + Tiles map[string]TileNode + Vars map[string]string + type EnvMap map[string]string + func (m *EnvMap) UnmarshalYAML(n *yaml.Node) error + type EnvState struct + ApexHosts map[string]bool + Color string + Tiles map[string]TileState + type EnvsNode struct + Envs map[string]EnvConf + Order []string + func (e *EnvsNode) UnmarshalYAML(n *yaml.Node) error + func (e EnvsNode) MarshalYAML() (any, error) + type Fetcher func(path string) ([]byte, error) + type Field struct + Name string + Value string + type File struct + Base BaseConf + Defaults DefaultsConf + Domains []DomainResConf + Environments EnvsNode + Include []string + Moved []MovedEntry + PREnvs *PREnvs + Secrets SecretsNode + Shared map[string]RawMap + Stack string + UIEdits string + Vars map[string]string + Version int + func ExportFile(r *Resolved) *File + func Parse(data []byte) (*File, error) + type FileList []string + func (f *FileList) UnmarshalYAML(n *yaml.Node) error + type FileSource interface + DefaultBranch func(ctx context.Context, cn *repo.Connector, repoFull string) (string, error) + FileContents func(ctx context.Context, cn *repo.Connector, repoFull, ref, path string) ([]byte, error) + HeadSHA func(ctx context.Context, cn *repo.Connector, repoFull, ref string) (string, error) + type Input struct + Blocked []string + Name string + Required bool + Scope string + Secret bool + type LimitsConf struct + CPU float64 + MemoryMB int + type Move struct + From string + Kind string + To string + func ParseMoves(entries []MovedEntry, kinds ...string) ([]Move, error) + type MoveBlock struct + Env string + FromNode string + Tile string + TileID string + ToGroup string + type MoveState struct + Declared bool + HasFrom bool + HasTo bool + type MovedEntry struct + From string + To string + type PREnvs struct + Against []string + Comment *bool + Enabled *bool + Status *bool + Tiles map[string]TileNode + type Plan struct + Changes []Change + Errors []string + GenSecrets []string + Inputs []Input + Moves []MoveBlock + Warnings []string + func Diff(r *Resolved, s State, opts DiffOpts) *Plan + func ParsePlan(cp *repo.ConfigPlan) *Plan + func (p *Plan) Destructive() bool + func (p *Plan) Empty() bool + func (p *Plan) InputsFirst() + func (p *Plan) Summary() string + type Planner struct + Src FileSource + Store repo.Store + func (pl Planner) BadRefs(ctx context.Context, stack *repo.Stack, r *Resolved, onlyEnv string, ...) []string + func (pl Planner) BranchBoundEnvs(ctx context.Context, stack *repo.Stack) (map[string]string, error) + func (pl Planner) DeclaredInputs(ctx context.Context, stack *repo.Stack, r *Resolved, onlyEnv string, ...) []Input + func (pl Planner) LoadResolved(ctx context.Context, stack *repo.Stack, branch string) (*Resolved, error) + func (pl Planner) Opts(ctx context.Context, stack *repo.Stack, branch, onlyEnv string, ...) DiffOpts + func (pl Planner) Preview(ctx context.Context, stack *repo.Stack, ...) (*Plan, error) + func (pl Planner) PreviewBundle(ctx context.Context, stack *repo.Stack, main []byte, files map[string][]byte, ...) (*Plan, error) + func (pl Planner) Run(ctx context.Context, stack *repo.Stack, sha string) ([]*repo.ConfigPlan, error) + func (pl Planner) RunAll(ctx context.Context, stack *repo.Stack, sha string) ([]*repo.ConfigPlan, error) + func (pl Planner) RunEnv(ctx context.Context, stack *repo.Stack, env *repo.Environment, sha string) (*repo.ConfigPlan, error) + func (pl Planner) SecretIssues(ctx context.Context, stack *repo.Stack, r *Resolved, onlyEnv string, ...) (errs, warns, gen []string) + func (pl Planner) Snapshot(ctx context.Context, stack *repo.Stack) (State, error) + func (pl Planner) StackBranch(ctx context.Context, stack *repo.Stack) (string, error) + func (pl Planner) StagingOpts(ctx context.Context, stack *repo.Stack, envSlug string) DiffOpts + type RawMap map[string]any + type Resolved struct + DefaultEnv string + Defaults DefaultsConf + Domains []DomainResConf + EnvOrder []string + Envs map[string]ResolvedEnv + Moves []Move + PREnvs *PREnvs + PRTemplate *ResolvedEnv + Stack string + UIEdits string + Vars map[string]string + func Load(data []byte, fetch Fetcher) (*Resolved, error) + func StateToResolved(stackName string, s State) *Resolved + type ResolvedEnv struct + ApplyPolicy string + Color string + Declared map[string]map[string]bool + Defaults DefaultsConf + Protected bool + Secrets map[string]SecretConf + Tiles map[string]TileConf + Vars map[string]string + type SecretConf struct + Default string + EnvVersions *bool + IncludeNumbers bool + IncludeSymbols bool + Length int + Required bool + func (sc SecretConf) GenLength() int + func (sc SecretConf) PerEnv() bool + type SecretsNode map[string]SecretConf + func (sn *SecretsNode) UnmarshalYAML(n *yaml.Node) error + func (sn SecretsNode) MarshalYAML() (any, error) + type SliceState struct + Engine string + Instance string + InstancePath string + Name string + OnRemove string + Public bool + type State struct + AllDomainRes []repo.DomainResource + AllDomains []repo.Domain + DomainRes []repo.DomainResource + Envs map[string]EnvState + OrgConnectors map[string]bool + type TileConf struct + AllowOverlap bool + Attach string + Backup *BackupConf + BasicAuthHash string + BasicAuthUser string + Branch string + Build *BuildConf + BuildArgs string + Command string + Connector string + DependsOn []string + Devices []string + Domains []DomainConf + Engine string + Env EnvMap + ExternalPort int + Files FileList + From string + GitURL string + HealthInterval int + HealthRetries int + HealthStartPeriod int + HealthTimeout int + Healthcheck string + Image string + Limits *LimitsConf + Name string + NodeGroup string + OnRemove string + Path string + Port int + Privileged bool + Public bool + PublishedPorts string + Replicas int + Restart string + RunOnDeploy bool + Schedule string + Scope string + SecurityHeaders bool + ShmSizeMB int + Storage []string + TimeoutMinutes int + TraefikOverride string + Type string + UpdatePolicy string + User string + Volumes []string + WaitForCI bool + WatchPaths []string + func DecodeTile(raw RawMap) (TileConf, error) + func TileConfOf(ts TileState, cur EnvState) TileConf + func (tc TileConf) SliceName(key string) string + type TileNode struct + Excluded bool + Raw RawMap + func (t *TileNode) UnmarshalYAML(n *yaml.Node) error + func (t TileNode) MarshalYAML() (any, error) + type TileState struct + Domains []repo.Domain + Slice *SliceState + Tile repo.Tile