Documentation
¶
Overview ¶
Package catalog publishes immutable graph-plan metadata for discovery. It derives exported contracts and requirements from an already validated config.Plan; it never reconstructs topology from legacy ownership flags and never retains values, deployment secret references, or secret locators.
Index ¶
Constants ¶
const (
FormatVersion uint64 = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boundary ¶
type Boundary struct {
Name string `json:"name"`
Direction ir.BoundaryDirection `json:"direction"`
Type string `json:"type"`
}
type ChannelSummary ¶
type Dependency ¶
type Dependency struct {
Name string `json:"name"`
Optional bool `json:"optional,omitempty"`
Artifact *inspect.ArtifactIdentity `json:"artifact,omitempty"`
Scope graphconfig.DependencyScope `json:"scope,omitempty"`
}
type Document ¶
type Document struct {
FormatVersion uint64 `json:"format_version"`
Fingerprint string `json:"fingerprint"`
Entries []Entry `json:"entries"`
}
func (Document) Discover ¶
Discover returns entries matching every requested constraint. Type filters are exact canonical protocol/payload strings, not modality booleans.
type Entry ¶
type Entry struct {
GraphID string `json:"graph_id"`
Revision uint64 `json:"revision"`
Fingerprint string `json:"fingerprint"`
Plan graphconfig.Identity `json:"plan"`
Graph ir.Graph `json:"graph"`
Stage Stage `json:"stage"`
Summary string `json:"summary"`
Change string `json:"change"`
Tags []string `json:"tags,omitempty"`
Lineage []string `json:"lineage,omitempty"`
Boundaries []Boundary `json:"boundaries,omitempty"`
Nodes []Node `json:"nodes"`
Dependencies []Dependency `json:"dependencies,omitempty"`
Effects []element.Effect `json:"effects,omitempty"`
Channels ChannelSummary `json:"channels"`
Profiles []inspect.ArtifactIdentity `json:"profiles,omitempty"`
}
Entry is one exact discoverable plan revision. Fingerprint covers metadata, the public plan identity, exact boundary contracts, registered implementations, dependencies, effects, and evidence profiles.
type Node ¶
type Node struct {
ID string `json:"id"`
Element element.Identity `json:"element"`
Implementation graphconfig.ImplementationResolution `json:"implementation"`
ConfigSchema string `json:"config_schema,omitempty"`
StateSchema string `json:"state_schema,omitempty"`
StateTransfer *element.StateTransferCapabilities `json:"state_transfer,omitempty"`
}