Documentation
¶
Overview ¶
Package contextinput owns the neutral immutable semantic input consumed by context queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input is the complete, immutable semantic universe consumed by contextq. Its mutable representations remain private; Snapshot returns an independent projection for one bound consumer.
func NewWithInventory ¶ added in v0.41.0
func NewWithInventory(layout Layout, loaded currentstate.Loaded, plans PlanContext, tree *snapshot.Tree, inventory *snapshot.Inventory, lock *manifest.Lock, declarations []outputplan.Declaration, eligible, ignores []string) Input
NewWithInventory preserves the complete live inventory separately from the selected byte tree. A nil inventory retains complete-tree compatibility.
type Layout ¶
type Layout struct {
DocsDir, ADRDir, IndexMd, PlansDir, DomainsDir string
Docs, Singletons map[string]string
}
Layout is the fixed documentation layout needed to project context results.
type PlanContext ¶
PlanContext carries parsed plans and their resolved reverse ADR links.
func NewPlanContext ¶
func NewPlanContext(plans []plan.Plan, corpus adr.Corpus) PlanContext
NewPlanContext builds a defensive reverse link projection from already parsed plans.
func (PlanContext) LinkedPlans ¶
func (c PlanContext) LinkedPlans(identity string) []string
LinkedPlans returns a defensive path projection.
type PlanReference ¶
type PlanReference struct{ Path, Filename string }
PlanReference identifies one plan linked to an ADR.
type Snapshot ¶
type Snapshot struct {
Layout Layout
Loaded currentstate.Loaded
PlanState PlanContext
Tree *snapshot.Tree
Inventory *snapshot.Inventory
Lock *manifest.Lock
Declarations []outputplan.Declaration
Eligible []string
ContextIgnore []string
}
Snapshot is one defensive projection of an Input. The selected Tree is deliberately shared because snapshot.Tree exposes immutable values only.