Documentation
¶
Overview ¶
Package manifest implements the strict normalized YAML/JSON graph frontend. It carries topology only; element values, deployment, locks, channel overrides, evidence, and secrets are separate artifacts.
Index ¶
- Constants
- func MarshalJSON(document Document) ([]byte, error)
- func MarshalYAML(document Document) ([]byte, error)
- func ParseJSON(path string, source []byte) (syntax.File, error)
- func ParseYAML(path string, source []byte) (syntax.File, error)
- type Boundary
- type Document
- type Edge
- type Error
- type Graph
- type Import
- type Node
Constants ¶
const APIVersion = "openrealtime.ai/graph/v1alpha1"
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
MarshalJSON returns deterministic, pretty, newline-terminated JSON.
func MarshalYAML ¶
MarshalYAML returns canonical, newline-terminated YAML using only the strict subset accepted by ParseYAML.
Types ¶
type Document ¶
type Document struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Graph Graph `json:"graph" yaml:"graph"`
}
Document is the normalized interchange representation.
func FromSyntax ¶
FromSyntax converts a parsed netlist into normalized interchange data.
type Graph ¶
type Graph struct {
Name string `json:"name" yaml:"name"`
Imports []Import `json:"imports,omitempty" yaml:"imports,omitempty"`
Nodes []Node `json:"nodes" yaml:"nodes"`
Edges []Edge `json:"edges,omitempty" yaml:"edges,omitempty"`
Boundaries []Boundary `json:"boundaries,omitempty" yaml:"boundaries,omitempty"`
}