Documentation ¶ Index ¶ func AllocateDockerSubnet(ctx context.Context) (string, string, error) func GetIP(subnet string, suffix int) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AllocateDockerSubnet ¶ func AllocateDockerSubnet(ctx context.Context) (string, string, error) AllocateDockerSubnet returns a /24 subnet and gateway that do not overlap with any currently known Docker network on the local daemon. func GetIP ¶ func GetIP(subnet string, suffix int) string GetIP returns an IP address within the allocated subnet for a given host suffix. It reserves the last octet for the requested suffix, so callers should use small host numbers such as 2, 10, 100, etc. Types ¶ This section is empty. Source Files ¶ View all Source files network_allocator.go Click to show internal directories. Click to hide internal directories.