Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTTL = uint32(30)
DefaultTTL is the default TTL for DNS records.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerInspector ¶
type ContainerInspector interface {
ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)
}
ContainerInspector is an interface for inspecting containers.
type Docker ¶
Docker is a plugin that serves records for Docker containers
type GenerateRecordsInput ¶
type GenerateRecordsInput struct {
// Client is the Docker client to use.
Inspector ContainerInspector
// Containers is the list of containers to generate records for.
Containers []container.Summary
// Zones is the list of domains to generate records for.
Zones []string
// LabelPrefix is the label prefix to generate records for.
LabelPrefix string
// Networks is the list of networks to generate records for.
Networks []string
// HostMode enables host-bound IP/port resolution instead of container IPs.
// When true, A/AAAA and SRV records are derived from each container's
// published host port bindings (NetworkSettings.Ports).
HostMode bool
// HostModePTR enables PTR record emission while HostMode is active.
// Off by default because multiple containers may share a host IP
// (especially the loopback fallback), making reverse lookups noisy.
HostModePTR bool
}
GenerateRecordsInput is the input for the generateRecords function.
Click to show internal directories.
Click to hide internal directories.