Skip to main content

Module daemon_registration_v2

Module daemon_registration_v2 

Source
Expand description

Frozen v2 service-definition registration writer substrate.

This direct persistence surface owns the established .servicedef.v2 layout, generated service definition, validation, and owner-private file behavior. It deliberately does not select v2 manifests, a loader, broker negotiation, endpoint transport, identity, or an async runtime. Frozen v2 service-definition writer substrate.

This direct surface owns only v2 .servicedef.v2 construction, validation, location, and persistence. It deliberately excludes v2 manifests, loading, broker negotiation, endpoint transport, and runtime policy. The legacy client-only broker::protocol_v2 path re-exports these exact items.

Structs§

LoadedServiceDefinitionV2
A decoded v2 definition together with its exact original wire bytes.
ServiceDefinition
Generated v2 service-definition types needed by the writer. v2 service definition envelope.
ServiceDefinitionBuilder
Builder for a generated v2 ServiceDefinition.

Enums§

BrokerIsolation
Generated v2 service-definition types needed by the writer. Broker isolation mode for a service.
PipePathError
Shared validation error and service-name validation used by v1 and v2. Errors that prevent using a valid registration name or broker path.
ServiceDefinitionError
Shared validation error and service-name validation used by v1 and v2. Errors returned while loading or writing service-definition files.

Constants§

SERVICE_DEF_V2_EXTENSION
v2 service-definition file extension. Distinct from v1’s servicedef so the two records can coexist in one owner-private directory.

Functions§

read_service_definition_v2
Read an existing v2 definition without creating or changing its directory.
service_definition_dir_v2
Return the v2 service-definition directory.
service_definition_path_v2
Compute the v2 path for one service definition.
validate_service_name
Shared validation error and service-name validation used by v1 and v2. Validate a service name against [a-z0-9-]{1,64}.
write_service_definition_v2
Validate the service name and write one .servicedef.v2 file into root.