manifest

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const APIVersion = "openrealtime.ai/graph/v1alpha1"

Variables

This section is empty.

Functions

func MarshalJSON

func MarshalJSON(document Document) ([]byte, error)

MarshalJSON returns deterministic, pretty, newline-terminated JSON.

func MarshalYAML

func MarshalYAML(document Document) ([]byte, error)

MarshalYAML returns canonical, newline-terminated YAML using only the strict subset accepted by ParseYAML.

func ParseJSON

func ParseJSON(path string, source []byte) (syntax.File, error)

ParseJSON parses strict normalized JSON with unknown-field and trailing-data rejection. JSON is a first-class equivalent of the YAML interchange form.

func ParseYAML

func ParseYAML(path string, source []byte) (syntax.File, error)

ParseYAML parses a deliberately strict YAML 1.2-like subset. Aliases, anchors, merge keys, custom tags, duplicate keys, multiple documents, and unknown fields are rejected.

Types

type Boundary

type Boundary struct {
	Name      string `json:"name" yaml:"name"`
	Direction string `json:"direction" yaml:"direction"`
	Endpoint  string `json:"endpoint" yaml:"endpoint"`
}

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

func FromSyntax(file syntax.File) Document

FromSyntax converts a parsed netlist into normalized interchange data.

type Edge

type Edge struct {
	ID       string `json:"id,omitempty" yaml:"id,omitempty"`
	From     string `json:"from" yaml:"from"`
	To       string `json:"to" yaml:"to"`
	Delivery string `json:"delivery" yaml:"delivery"`
}

type Error

type Error struct {
	Path    string
	Line    int
	Column  int
	Message string
}

Error is a source-mapped normalized-manifest diagnostic.

func (*Error) Error

func (failure *Error) Error() string

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"`
}

type Import

type Import struct {
	Path  string `json:"path" yaml:"path"`
	Alias string `json:"alias,omitempty" yaml:"alias,omitempty"`
}

type Node

type Node struct {
	ID      string `json:"id" yaml:"id"`
	Element string `json:"element" yaml:"element"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL