Versions in this module Expand all Collapse all v0 v0.2.0 Aug 10, 2026 v0.1.0 Aug 10, 2026 Changes in this version + type Action struct + Detail string + Do func(context.Context) error + Op Op + Resource string + Target string + type Change struct + Field string + From string + To string + type Diff struct + Added []string + Changed []Change + Removed []string + func SetDiff(field string, from, to []string) Diff + func (d *Diff) Merge(other Diff) + func (d *Diff) Set(field, from, to string) + func (d Diff) Empty() bool + func (d Diff) String() string + type Op string + const OpCreate + const OpDelete + const OpManual + const OpUpdate + type Plan struct + Actions []Action + func (p *Plan) Add(actions ...Action) + func (p *Plan) Extend(other Plan) + func (p Plan) Destructive() bool + func (p Plan) Empty() bool + func (p Plan) Executable() []Action + func (p Plan) Manual() []Action + func (p Plan) Save(w io.Writer) error + func (p Plan) Write(w io.Writer) error + func (p Plan) WriteJSON(w io.Writer) error + type Saved struct + Actions []SavedAction + Version int + func LoadSaved(r io.Reader) (Saved, error) + func (s Saved) Matches(fresh Plan) error + func (s Saved) Write(w io.Writer) error + type SavedAction struct + Detail string + Op string + Resource string + Target string