launch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 17 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 launch composes exact graph configuration artifacts and a broad, resource-free plugin catalog into a graph-native Realtime session provider.

New performs no graph mount, adapter construction, secret resolution, or listener creation. It creates and validates an immutable config.Plan, reduces the broad assembly catalog to that plan's exact contributions, and seals the result in binding.NativeBinding. There is deliberately no legacy binding fallback or implementation-name switch in this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterBinder

type AdapterBinder func(context.Context, *graphconfig.Plan) (BoundAdapter, error)

AdapterBinder derives one immutable Realtime-to-graph projection for an already-created plan. It is a metadata-only operation: it must not mount a graph, construct a session adapter, resolve a secret, or acquire a resource.

type AdapterPlugin

type AdapterPlugin struct {
	Reference string
	Artifact  inspect.ArtifactIdentity
	Bind      AdapterBinder
}

AdapterPlugin publishes immutable runtime metadata plus the resource-free binder that derives its graph-fingerprint-bound profile. Keeping Bind behind explicit selection lets New construct the plan first without invoking every adapter in a broad build inventory.

func (AdapterPlugin) Selection

func (plugin AdapterPlugin) Selection(profileName string, profileRevision uint64) AdapterSelection

Selection returns an exact runtime selector with the expected public profile identity. The profile fingerprint itself is derived only after the immutable plan exists and is preserved in NativeRuntime evidence.

type AdapterSelection

type AdapterSelection struct {
	Reference       string
	RuntimeArtifact inspect.ArtifactIdentity
	ProfileName     string
	ProfileRevision uint64
}

AdapterSelection pins both the symbolic registration and its immutable profile/runtime material. Reference alone is not an exact selection because a catalog entry could otherwise change code or its boundary projection without changing the selector.

type BoundAdapter

type BoundAdapter struct {
	Profile      graphbinding.SessionAdapterProfile
	Registration graphbinding.AdapterRegistration
}

BoundAdapter is the exact profile/factory pair returned by a selected AdapterBinder. New verifies that Registration still has the reference and runtime artifact published by its catalog plugin.

type Catalog

type Catalog struct {
	Assembly          graphassembly.Catalog
	Adapters          []AdapterPlugin
	MountDependencies []MountDependencyPlugin
}

Catalog is the complete process inventory available to this launcher. Assembly may be broad; New reduces it to one plan. Adapters and MountDependencies are slice-based so duplicate plugin contributions cannot be hidden by map overwrite.

type Config

type Config struct {
	Artifacts     graphconfig.Artifacts
	PlanOptions   graphconfig.Options
	Catalog       Catalog
	GraphMetadata graphcatalog.Metadata
	SecretCatalog *graphsecret.Document
	Evidence      graphevidence.Document
	Adapter       AdapterSelection

	Inspection      graphruntime.InspectionConfig
	ShutdownTimeout time.Duration
	TraceRecording  *graphbinding.TraceRecordingConfig
	// Readiness contains credential/static-configuration checks for only the
	// plugins selected by this exact launch. Checks are retained as lazy
	// callbacks: New validates their identities but never invokes them during
	// resource-free profile preflight.
	Readiness []ReadinessCheck
}

Config contains the exact artifacts and selection for one graph-native provider. GraphMetadata is required public discovery metadata; its Profiles field must be empty because New derives empirical artifact identities only from Evidence. Evidence is a required separate manifest; an explicit empty Profiles list means that the graph makes no empirical claims. PlanOptions.Discovery and PlanOptions.SecretCatalog must be nil: New derives both from Catalog and SecretCatalog so there is only one source of plugin and secret-catalog authority.

type MountDependencyPlugin

type MountDependencyPlugin struct {
	Name     string
	Artifact inspect.ArtifactIdentity
	Factory  graphbinding.MountDependencyFactory
}

MountDependencyPlugin associates one catalog-attested, mount-scoped dependency with the per-session service contribution that realizes it. Factory is called only for a session Start and its result must contain exactly this one Name/Artifact contribution. Runtime-owned and process-scoped dependencies must not have entries here.

type ReadinessCheck

type ReadinessCheck struct {
	Name  string
	Check func(context.Context) error
}

ReadinessCheck is one selected plugin's lazy readiness contract.

type Result

type Result struct {
	Plan         *graphconfig.Plan
	Evidence     graphevidence.Document
	CatalogEntry graphcatalog.Entry
	Binding      *graphbinding.NativeBinding
	Readiness    []ReadinessCheck
	// contains filtered or unexported fields
}

Result retains the immutable plan, bound evidence, and derived catalog entry for management/discovery uses, plus the prepared NativeBinding used directly as a server.SessionProvider.

func New

func New(ctx context.Context, source Config) (Result, error)

New validates and seals a graph-native session provider without acquiring a runtime resource. The order is intentional: the complete broad catalog, exact plan, bound evidence, selected assembly, adapter, and dependency inventory are all rejected before graphbinding can expose a provider to a listener.

func (Result) ElementDescriptors

func (result Result) ElementDescriptors() []element.Descriptor

ElementDescriptors returns an independent, exact snapshot of every resource-free element descriptor installed in the selected application's assembly catalog. The snapshot is suitable for static management and authoring services; it contains no factory handles or mount authority.

Directories

Path Synopsis
Package profile resolves a strict, immutable deployment profile through an explicitly installed graph-application plugin.
Package profile resolves a strict, immutable deployment profile through an explicitly installed graph-application plugin.

Jump to

Keyboard shortcuts

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