plan

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package plan turns a pile of discovered resources into an ordered, reversible sequence of changes — and, just as importantly, a list of everything it will not touch and why.

Pure: no AWS, no clock beyond what is passed in, no filesystem. That is what makes the safety rules testable, and these are rules nobody wants to discover are wrong by firing them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(in Input, p policy.Policy) model.Plan

Build applies the policy to the inventory. It never returns an error: an inventory that yields no actions is a valid, empty plan, and the refusals explain it.

func RestoreOrder

func RestoreOrder(entries []model.Entry) []model.Entry

RestoreOrder reverses the plan: bring back what serves traffic before letting traffic in, or the first request arrives at nothing and the restore looks like a failure.

Types

type Input

type Input struct {
	Account   string
	Regions   []string
	Resources []model.Resource
	Now       time.Time
	PlanID    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL