labels.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package netlabel
  2. const (
  3. // Prefix constant marks the reserved label space for libnetwork
  4. Prefix = "com.docker.network"
  5. // DriverPrefix constant marks the reserved label space for libnetwork drivers
  6. DriverPrefix = Prefix + ".driver"
  7. // DriverPrivatePrefix constant marks the reserved label space
  8. // for internal libnetwork drivers
  9. DriverPrivatePrefix = DriverPrefix + ".private"
  10. // GenericData constant that helps to identify an option as a Generic constant
  11. GenericData = Prefix + ".generic"
  12. // PortMap constant represents Port Mapping
  13. PortMap = Prefix + ".portmap"
  14. // MacAddress constant represents Mac Address config of a Container
  15. MacAddress = Prefix + ".endpoint.macaddress"
  16. // ExposedPorts constant represents the container's Exposed Ports
  17. ExposedPorts = Prefix + ".endpoint.exposedports"
  18. // DNSServers A list of DNS servers associated with the endpoint
  19. DNSServers = Prefix + ".endpoint.dnsservers"
  20. // EnableIPv6 constant represents enabling IPV6 at network level
  21. EnableIPv6 = Prefix + ".enable_ipv6"
  22. // DriverMTU constant represents the MTU size for the network driver
  23. DriverMTU = DriverPrefix + ".mtu"
  24. // OverlayVxlanIDList constant represents a list of VXLAN Ids as csv
  25. OverlayVxlanIDList = DriverPrefix + ".overlay.vxlanid_list"
  26. // Gateway represents the gateway for the network
  27. Gateway = Prefix + ".gateway"
  28. // Internal constant represents that the network is internal which disables default gateway service
  29. Internal = Prefix + ".internal"
  30. // ContainerIfacePrefix can be used to override the interface prefix used inside the container
  31. ContainerIfacePrefix = Prefix + ".container_iface_prefix"
  32. // HostIPv4 is the Source-IPv4 Address used to SNAT IPv4 container traffic
  33. HostIPv4 = Prefix + ".host_ipv4"
  34. // HostIPv6 is the Source-IPv6 Address used to SNAT IPv6 container traffic
  35. HostIPv6 = Prefix + ".host_ipv6"
  36. // LocalKVClient constants represents the local kv store client
  37. LocalKVClient = DriverPrivatePrefix + "localkv_client"
  38. )