deployment

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 deployment owns the separate, non-secret deployment-binding artifact. Topology says which contracts are connected and values configure their behavior; deployment selects concrete implementations, placement, transport, resources, and references into a separately managed secret catalog.

Index

Constants

View Source
const (
	APIVersion = "openrealtime.ai/deployment/v1alpha1"
)

Variables

This section is empty.

Functions

func MarshalJSON

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

func MarshalYAML

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

func ValidateSecretCatalog

func ValidateSecretCatalog(nodes map[string]Node, catalog graphsecret.Document) error

ValidateSecretCatalog proves exact reference coverage without resolving a value. An unused catalog entry is refused as a likely typo or excess privilege; deployments that intentionally share a larger catalog should derive a graph-scoped view before launch.

Types

type Bound

type Bound struct {
	Graph       ir.Graph
	Nodes       map[string]Node
	Fingerprint string
}

Bound is the exact executable graph plus the complete effective deployment snapshot. Fingerprint identifies the canonical expanded document, not merely the sparse author input.

func Bind

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

Bind validates graph coverage, expands defaults, records a per-node deployment reference/digest in Graph IR, and re-freezes the graph. It never resolves or reads a secret.

type Document

type Document struct {
	APIVersion string          `json:"apiVersion" yaml:"apiVersion"`
	Graph      string          `json:"graph" yaml:"graph"`
	Nodes      map[string]Node `json:"nodes,omitempty" yaml:"nodes,omitempty"`
}

Document is deliberately sparse at the authoring surface. Bind expands it to one effective entry per graph node, using the locked element name as the default in-process implementation. This keeps ordinary built-ins concise while preserving a complete, fingerprinted deployment identity at runtime.

func ParseJSON

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

func ParseYAML

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

type Node

type Node struct {
	Implementation string            `json:"implementation,omitempty" yaml:"implementation,omitempty"`
	Placement      string            `json:"placement,omitempty" yaml:"placement,omitempty"`
	Transport      string            `json:"transport,omitempty" yaml:"transport,omitempty"`
	Resources      map[string]string `json:"resources,omitempty" yaml:"resources,omitempty"`
	Secrets        map[string]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
}

Node contains operational bindings only. Secrets are references, never credential bytes. Provider/model/prompt choices that alter behavior remain element values rather than being smuggled into this layer.

Jump to

Keyboard shortcuts

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