Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + const ClockServiceName + const MaximumStateSnapshotBytes + const SecretServiceName + const SequenceServiceName + var ErrAlreadyRunning = errors.New("graph mount is already running or has completed") + var ErrChannelClosed = errors.New("graph channel is closed") + var ErrGraphClosed = errors.New("graph mount closed") + var ErrPortCardinality = errors.New("graph port operation does not match its lane cardinality") + var ErrPortUnbound = errors.New("graph port has no connected lane") + var ErrSecretResolution = errors.New("secret provider resolution failed") + var ErrTraceRecordingClosed = errors.New("graph trace recording is closed") + var ErrTraceRecordingDisabled = errors.New("graph trace recording is disabled") + var ErrTraceRecordingNotReady = errors.New("graph trace recording has no complete attested snapshot") + func StandardDependencyArtifact(name string) (inspect.ArtifactIdentity, bool) + func StandardDependencyArtifacts() map[string]inspect.ArtifactIdentity + type BufferTracer struct + func NewBufferTracer(capacity int) *BufferTracer + func (tracer *BufferTracer) Events() []TraceEvent + func (tracer *BufferTracer) Record(event TraceEvent) + type Clock interface + NowNS func() uint64 + type ClockFunc func() uint64 + func (function ClockFunc) NowNS() uint64 + type Config struct + Configuration *inspect.ArtifactIdentity + Deployment *inspect.ArtifactIdentity + Graph ir.Graph + Inspection InspectionConfig + Now func() uint64 + Registry *Registry + Services *ServiceSet + ShutdownTimeout time.Duration + TraceRecording *TraceRecordingConfig + Tracer Tracer + Values map[string]json.RawMessage + type DependencyRegistry struct + func NewDependencyRegistry() *DependencyRegistry + func (registry *DependencyRegistry) Register(name string, artifact inspect.ArtifactIdentity, value any) error + func (registry *DependencyRegistry) RegisterMountScoped(name string, artifact inspect.ArtifactIdentity) error + func (registry *DependencyRegistry) RegisterRuntimeOwned(name string, artifact inspect.ArtifactIdentity) error + type FactoryProfile struct + Artifact inspect.ArtifactIdentity + Capabilities []inspect.CapabilityIdentity + Placements []string + Reference string + ResourceKeys []string + SecretSlots []string + Transports []string + type FactoryRegistration struct + Factory element.Factory + Profile FactoryProfile + type InspectionConfig struct + MaxCausalParentsPerStage int + MaxCorrelationBytes int + MaxEdgesPerFlow int + MaxFlows int + type Mounted struct + func Mount(ctx context.Context, config Config) (*Mounted, error) + func (mounted *Mounted) CheckpointTrace() error + func (mounted *Mounted) Close(ctx context.Context) error + func (mounted *Mounted) DeploymentEvidence() (inspect.DeploymentEvidence, bool) + func (mounted *Mounted) DeploymentIdentity() (inspect.ArtifactIdentity, bool) + func (mounted *Mounted) Done() <-chan struct{} + func (mounted *Mounted) Egress(name string) (element.InputPort, error) + func (mounted *Mounted) Err() error + func (mounted *Mounted) Graph() ir.Graph + func (mounted *Mounted) Ingress(name string) (element.OutputPort, error) + func (mounted *Mounted) Live() inspect.Live + func (mounted *Mounted) MarshalRecordedTrace() ([]byte, error) + func (mounted *Mounted) PrivateIdentity() (PrivatePlanIdentity, bool) + func (mounted *Mounted) RecordedTrace() (inspect.LiveTrace, error) + func (mounted *Mounted) Run(parent context.Context) error + type PlanPreparation struct + Dependencies *DependencyRegistry + Factories *Registry + SecretCatalog *graphsecret.Document + SecretProviders *graphsecret.Registry + type PreparedDependency struct + Artifact inspect.ArtifactIdentity + Name string + Scope graphconfig.DependencyScope + type PreparedMountDependency struct + Artifact inspect.ArtifactIdentity + Name string + Service any + type PreparedMountOptions struct + Dependencies []PreparedMountDependency + Inspection InspectionConfig + Now func() uint64 + ShutdownTimeout time.Duration + TraceRecording *TraceRecordingConfig + Tracer Tracer + type PreparedNode struct + Artifact inspect.ArtifactIdentity + Capabilities []inspect.CapabilityIdentity + DeploymentDigest string + NodeID string + Placement string + Reference string + ResourceKeys []string + SecretSlots []string + Transport string + type PreparedPlan struct + func PreparePlan(ctx context.Context, plan *graphconfig.Plan, assembly PlanPreparation) (*PreparedPlan, error) + func (prepared *PreparedPlan) Graph() ir.Graph + func (prepared *PreparedPlan) Identity() graphconfig.Identity + func (prepared *PreparedPlan) MarshalJSON() ([]byte, error) + func (prepared *PreparedPlan) Mount(ctx context.Context, options PreparedMountOptions) (*Mounted, error) + func (prepared *PreparedPlan) PrivateBinding(nodeID string) (PrivateNodeBinding, bool) + func (prepared *PreparedPlan) PrivateIdentity() PrivatePlanIdentity + func (prepared *PreparedPlan) Public() PublicPreparation + func (prepared *PreparedPlan) Validate() error + type PrivateNodeBinding struct + func (PrivateNodeBinding) GoString() string + func (PrivateNodeBinding) MarshalJSON() ([]byte, error) + func (PrivateNodeBinding) String() string + func (binding PrivateNodeBinding) Implementation() string + func (binding PrivateNodeBinding) Placement() string + func (binding PrivateNodeBinding) Resources() map[string]string + func (binding PrivateNodeBinding) SecretReferences() map[string]string + func (binding PrivateNodeBinding) Transport() string + type PrivatePlanIdentity struct + func (PrivatePlanIdentity) GoString() string + func (PrivatePlanIdentity) MarshalJSON() ([]byte, error) + func (PrivatePlanIdentity) String() string + func (identity PrivatePlanIdentity) DeploymentFingerprint() string + func (identity PrivatePlanIdentity) SecretCatalogFingerprint() string + type PublicPreparation struct + Dependencies []PreparedDependency + Nodes []PreparedNode + Plan graphconfig.Identity + type Registry struct + func NewRegistry() *Registry + func (registry *Registry) Register(implementation string, factory element.Factory) error + func (registry *Registry) RegisterArtifact(implementation string, artifact inspect.ArtifactIdentity, ...) error + func (registry *Registry) RegisterFactory(registration FactoryRegistration) error + type SecretAccess interface + Resolve func(context.Context, string) (*graphsecret.Value, SecretResolution, error) + type SecretResolution struct + BindingFingerprint string + Provider string + ProviderRuntime inspect.ArtifactIdentity + type SequenceAllocator struct + func NewSequenceAllocator() *SequenceAllocator + func (allocator *SequenceAllocator) Next(namespace string) (uint64, error) + type ServiceSet struct + func NewServiceSet() *ServiceSet + func (services *ServiceSet) InstallIfAbsent(entries map[string]any) (map[string]uint64, error) + func (services *ServiceSet) Lookup(name string) (any, uint64, bool) + func (services *ServiceSet) Remove(name string) (uint64, bool) + func (services *ServiceSet) Set(name string, value any) (uint64, error) + type TraceEvent struct + AtNS uint64 + Channel string + Depth int + Fingerprint string + Graph string + ItemID string + Kind TraceKind + Occupancy int + RunID string + TraceID string + type TraceFunc func(TraceEvent) + func (function TraceFunc) Record(event TraceEvent) + type TraceKind string + const TraceBackpressure + const TraceDequeue + const TraceDrop + const TraceEnqueue + type TraceRecordingConfig struct + CaptureInterval time.Duration + Limits inspect.TraceLimits + MaxRetainedBytes int + SessionCorrelationKey []byte + type Tracer interface + Record func(TraceEvent)