|
@@ -1,18 +1,24 @@
|
|
package netlabel
|
|
package netlabel
|
|
|
|
|
|
const (
|
|
const (
|
|
|
|
+ // 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"
|
|
|
|
+
|
|
// GenericData constant that helps to identify an option as a Generic constant
|
|
// GenericData constant that helps to identify an option as a Generic constant
|
|
- GenericData = "io.docker.network.generic"
|
|
|
|
|
|
+ GenericData = Prefix + ".generic"
|
|
|
|
|
|
// PortMap constant represents Port Mapping
|
|
// PortMap constant represents Port Mapping
|
|
- PortMap = "io.docker.network.endpoint.portmap"
|
|
|
|
|
|
+ PortMap = Prefix + ".portmap"
|
|
|
|
|
|
// MacAddress constant represents Mac Address config of a Container
|
|
// MacAddress constant represents Mac Address config of a Container
|
|
- MacAddress = "io.docker.network.endpoint.macaddress"
|
|
|
|
|
|
+ MacAddress = Prefix + ".endpoint.macaddress"
|
|
|
|
|
|
// ExposedPorts constant represents exposedports of a Container
|
|
// ExposedPorts constant represents exposedports of a Container
|
|
- ExposedPorts = "io.docker.network.endpoint.exposedports"
|
|
|
|
|
|
+ ExposedPorts = Prefix + ".endpoint.exposedports"
|
|
|
|
|
|
//EnableIPv6 constant represents enabling IPV6 at network level
|
|
//EnableIPv6 constant represents enabling IPV6 at network level
|
|
- EnableIPv6 = "io.docker.network.enable_ipv6"
|
|
|
|
|
|
+ EnableIPv6 = Prefix + ".enable_ipv6"
|
|
)
|
|
)
|