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§
- Loaded
Service Definition V2 - A decoded v2 definition together with its exact original wire bytes.
- Service
Definition - Generated v2 service-definition types needed by the writer. v2 service definition envelope.
- Service
Definition Builder - Builder for a generated v2
ServiceDefinition.
Enums§
- Broker
Isolation - Generated v2 service-definition types needed by the writer. Broker isolation mode for a service.
- Pipe
Path Error - Shared validation error and service-name validation used by v1 and v2. Errors that prevent using a valid registration name or broker path.
- Service
Definition Error - 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
servicedefso 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.v2file intoroot.