2015-05-06 04:19:57 +00:00
|
|
|
package netlabel
|
|
|
|
|
|
|
|
const (
|
2015-06-14 16:03:42 +00:00
|
|
|
// Prefix constant marks the reserved label space for libnetwork
|
|
|
|
Prefix = "com.docker.network"
|
|
|
|
|
|
|
|
// DriverPrefix constant marks the reserved label space for libnetwork drivers
|
|
|
|
DriverPrefix = Prefix + ".driver"
|
|
|
|
|
2015-10-07 00:28:47 +00:00
|
|
|
// DriverPrivatePrefix constant marks the reserved label space
|
|
|
|
// for internal libnetwork drivers
|
|
|
|
DriverPrivatePrefix = DriverPrefix + ".private"
|
|
|
|
|
2015-05-06 04:19:57 +00:00
|
|
|
// GenericData constant that helps to identify an option as a Generic constant
|
2015-06-14 16:03:42 +00:00
|
|
|
GenericData = Prefix + ".generic"
|
2015-05-06 04:19:57 +00:00
|
|
|
|
|
|
|
// PortMap constant represents Port Mapping
|
2015-06-14 16:03:42 +00:00
|
|
|
PortMap = Prefix + ".portmap"
|
2015-05-06 04:19:57 +00:00
|
|
|
|
|
|
|
// MacAddress constant represents Mac Address config of a Container
|
2015-06-14 16:03:42 +00:00
|
|
|
MacAddress = Prefix + ".endpoint.macaddress"
|
2015-05-06 04:19:57 +00:00
|
|
|
|
2015-10-06 18:53:39 +00:00
|
|
|
// ExposedPorts constant represents the container's Exposed Ports
|
2015-06-14 16:03:42 +00:00
|
|
|
ExposedPorts = Prefix + ".endpoint.exposedports"
|
2015-05-06 04:19:57 +00:00
|
|
|
|
2016-09-19 22:48:06 +00:00
|
|
|
// DNSServers A list of DNS servers associated with the endpoint
|
|
|
|
DNSServers = Prefix + ".endpoint.dnsservers"
|
|
|
|
|
2022-11-01 11:50:18 +00:00
|
|
|
// EnableIPv6 constant represents enabling IPV6 at network level
|
2015-06-14 16:03:42 +00:00
|
|
|
EnableIPv6 = Prefix + ".enable_ipv6"
|
2015-06-10 21:24:19 +00:00
|
|
|
|
2015-10-06 19:08:54 +00:00
|
|
|
// DriverMTU constant represents the MTU size for the network driver
|
|
|
|
DriverMTU = DriverPrefix + ".mtu"
|
|
|
|
|
2016-02-26 19:54:35 +00:00
|
|
|
// OverlayVxlanIDList constant represents a list of VXLAN Ids as csv
|
|
|
|
OverlayVxlanIDList = DriverPrefix + ".overlay.vxlanid_list"
|
|
|
|
|
2015-10-03 23:11:50 +00:00
|
|
|
// Gateway represents the gateway for the network
|
|
|
|
Gateway = Prefix + ".gateway"
|
2015-12-22 01:29:39 +00:00
|
|
|
|
|
|
|
// Internal constant represents that the network is internal which disables default gateway service
|
|
|
|
Internal = Prefix + ".internal"
|
2017-02-27 22:23:12 +00:00
|
|
|
|
|
|
|
// ContainerIfacePrefix can be used to override the interface prefix used inside the container
|
|
|
|
ContainerIfacePrefix = Prefix + ".container_iface_prefix"
|
2019-09-25 05:08:25 +00:00
|
|
|
|
2023-09-09 21:59:22 +00:00
|
|
|
// HostIPv4 is the Source-IPv4 Address used to SNAT IPv4 container traffic
|
|
|
|
HostIPv4 = Prefix + ".host_ipv4"
|
2015-06-10 21:24:19 +00:00
|
|
|
|
2023-09-11 23:32:02 +00:00
|
|
|
// HostIPv6 is the Source-IPv6 Address used to SNAT IPv6 container traffic
|
|
|
|
HostIPv6 = Prefix + ".host_ipv6"
|
|
|
|
|
2016-01-28 00:37:47 +00:00
|
|
|
// LocalKVClient constants represents the local kv store client
|
2022-12-21 15:08:17 +00:00
|
|
|
LocalKVClient = DriverPrivatePrefix + "localkv_client"
|
2015-10-07 00:28:47 +00:00
|
|
|
)
|