Skip to main content

Module models

Module models 

Source
Expand description

Data models for the natmap daemon and its API.

Defines request/response types, persisted state structures, and shared enums used across the CLI, daemon, and iptables modules.

Structs§

DaemonState
The complete persisted state of the natmap daemon.
DnatConfig
A static DNAT (destination NAT) rule configuration.
DnatRequest
JSON body for creating or deleting a DNAT rule.
DockerAddMapRequest
Request to add a new port mapping.
DockerPortMap
An active port mapping that has been installed in iptables.
DockerPortMapRequest
Describes the desired port mapping between a host and a container.
DockerRemapRequest
Request to remap a host port for an existing container.
HairpinConfig
A static hairpin NAT rule configuration.
HairpinRequest
JSON body for creating or deleting a hairpin rule.
ListResponse
Response returned by the GET /mappings endpoint.
SnatConfig
A static SNAT (source NAT) rule configuration.
SnatRequest
JSON body for creating or deleting an SNAT rule.

Enums§

TransportProtocol
Transport protocol (TCP or UDP).