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 ¶
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 ¶
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.