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§
- Daemon
State - The complete persisted state of the natmap daemon.
- Dnat
Config - A static DNAT (destination NAT) rule configuration.
- Dnat
Request - JSON body for creating or deleting a DNAT rule.
- Docker
AddMap Request - Request to add a new port mapping.
- Docker
Port Map - An active port mapping that has been installed in iptables.
- Docker
Port MapRequest - Describes the desired port mapping between a host and a container.
- Docker
Remap Request - Request to remap a host port for an existing container.
- Hairpin
Config - A static hairpin NAT rule configuration.
- Hairpin
Request - JSON body for creating or deleting a hairpin rule.
- List
Response - Response returned by the
GET /mappingsendpoint. - Policy
Route Config - Policy
Route Request - Snat
Config - A static SNAT (source NAT) rule configuration.
- Snat
Request - JSON body for creating or deleting an SNAT rule.
Enums§
- Transport
Protocol - Transport protocol (TCP or UDP).