Module zones_types

Module zones_types 

Source
Expand description

Zone data types — the pure request/response and configuration structs.

These are the types a library consumer needs in order to talk to bindcar’s zone API, with no HTTP machinery attached. They are deliberately free of axum, ApiError and AppState so that a consumer importing only bindcar::ZoneConfig does not inherit the server stack.

The HTTP handlers that consume these live in crate::zones, which re-exports everything here so existing bindcar::zones::ZoneConfig paths keep working.

See .github/community/02-feature-gate-http-server.md — this split is phase 1 of putting the server behind a cargo feature.

Structs§

CheckdsRequest
Request body of POST /api/v1/zones/{name}/dnssec/checkds (ADR-0001): tells named that the DS for a key was published at, or withdrawn from, the parent zone — required to complete rollovers and the graceful insecure transition when no parental agents are configured.
CreateZoneRequest
Request to create a new zone
DnsRecord
DNS record entry
DsRecordView
One DS record of a zone, ready to publish at the parent (ADR-0001).
DsSetResponse
Response of GET /api/v1/zones/{name}/ds (ADR-0001).
ModifyZoneRequest
Request to modify a zone configuration
ServerStatusResponse
Server status response
SoaRecord
SOA (Start of Authority) record configuration
ZoneConfig
Structured zone configuration
ZoneInfo
Zone information
ZoneListResponse
List of zones response
ZoneResponse
Response from zone operations
ZoneStatusResponse
Zone status response: the classic text details plus a typed DNSSEC block parsed from rndc dnssec -status (ADR-0001).

Constants§

ZONE_TYPE_PRIMARY
Zone type constants
ZONE_TYPE_SECONDARY