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 ¶
const (
APIVersion = "openrealtime.ai/deployment/v1alpha1"
)
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
func MarshalYAML ¶
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 ¶
Bound is the exact executable graph plus the complete effective deployment snapshot. Fingerprint identifies the canonical expanded document, not merely the sparse author input.
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.
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.