values

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: 14 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 values owns the separate, schema-addressed element-values artifact. It binds node-local JSON objects to stable topology node IDs and folds only their references and canonical digests into Graph IR. Values never appear in .ortg source, and deployment/secrets remain separate again.

Index

Constants

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

Variables

This section is empty.

Functions

func Digest

func Digest(raw json.RawMessage) (json.RawMessage, string, error)

Digest canonicalizes one strict JSON object and returns its content digest. Duplicate keys and trailing values are rejected before ordinary decoding.

func MarshalJSON

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

func MarshalYAML

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

Types

type Bound

type Bound struct {
	Graph       ir.Graph
	Values      map[string]json.RawMessage
	Fingerprint string
}

Bound is the exact executable graph and the canonical values that satisfy its node config digests. Values returns independent byte slices suitable for runtime mount.

func Bind

func Bind(graph ir.Graph, document Document) (Bound, error)

Bind validates node coverage, canonicalizes all values, sets every node's config reference/digest, and re-freezes Graph IR. Missing entries mean the empty object; unknown entries are errors rather than ignored typos.

type Document

type Document struct {
	APIVersion string                     `json:"apiVersion" yaml:"apiVersion"`
	Graph      string                     `json:"graph" yaml:"graph"`
	Nodes      map[string]json.RawMessage `json:"nodes" yaml:"-"`
}

func ParseJSON

func ParseJSON(path string, source []byte) (Document, error)

func ParseYAML

func ParseYAML(path string, source []byte) (Document, error)

Jump to

Keyboard shortcuts

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