Documentation
¶
Overview ¶
Package model holds the shared, budget-agnostic intermediate types that flow through the gather → fit → render pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrDiff ¶
type AttrDiff struct {
Name string
Variants []Variant
Selected int // chosen variant index; fit mutates this
}
AttrDiff is one changed attribute with its ordered variants (index 0 = preferred).
type Change ¶
type Change struct {
Address string
Type string
Action Action
Attrs []AttrDiff // populated for update/replace; empty for terse create/delete
}
Change is one resource change within a stack.
type Counts ¶
type Counts struct {
Add, Change, Destroy, Replace int
}
Counts holds per-stack action tallies (no-ops excluded).
type RenderMode ¶
type RenderMode int
RenderMode is the terminal-cascade level chosen by fit.
const ( ModeFull RenderMode = iota // table + per-stack details ModeSummaryOnly // table + notice, no details ModeMinimal // one-line aggregate + notice )
type Report ¶
type Report struct {
Title string
Marker string
Classified bool // whether to show the Class column
Stacks []Stack
Mode RenderMode
Notice string // cascade notice (set by fit when degrading)
DetailsOpen bool // render <details open> when true
}
Report is the complete intermediate model.
Click to show internal directories.
Click to hide internal directories.