You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/types/types.go
+17-26Lines changed: 17 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -425,32 +425,23 @@ type MountPoint struct {
425
425
426
426
// NetworkResource is the body of the "get network" http response message
427
427
typeNetworkResourcestruct {
428
-
Namestring// Name is the requested name of the network
429
-
IDstring`json:"Id"`// ID uniquely identifies a network on a single machine
430
-
Created time.Time// Created is the time the network created
431
-
Scopestring// Scope describes the level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level)
432
-
Driverstring// Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`)
433
-
EnableIPv6bool// EnableIPv6 represents whether to enable IPv6
434
-
IPAM network.IPAM// IPAM is the network's IP Address Management
435
-
Internalbool// Internal represents if the network is used internal only
436
-
Attachablebool// Attachable represents if the global scope is manually attachable by regular containers from workers in swarm mode.
437
-
Ingressbool// Ingress indicates the network is providing the routing-mesh for the swarm cluster.
438
-
ConfigFrom network.ConfigReference// ConfigFrom specifies the source which will provide the configuration for this network.
439
-
ConfigOnlybool// ConfigOnly networks are place-holder networks for network configurations to be used by other networks. ConfigOnly networks cannot be used directly to run containers or services.
440
-
Containersmap[string]EndpointResource// Containers contains endpoints belonging to the network
441
-
Optionsmap[string]string// Options holds the network specific options to use for when creating the network
442
-
Labelsmap[string]string// Labels holds metadata specific to the network being created
443
-
Peers []network.PeerInfo`json:",omitempty"`// List of peer nodes for an overlay network
// EndpointResource contains network resources allocated and used for a container in a network
448
-
typeEndpointResourcestruct {
449
-
Namestring
450
-
EndpointIDstring
451
-
MacAddressstring
452
-
IPv4Addressstring
453
-
IPv6Addressstring
428
+
Namestring// Name is the requested name of the network
429
+
IDstring`json:"Id"`// ID uniquely identifies a network on a single machine
430
+
Created time.Time// Created is the time the network created
431
+
Scopestring// Scope describes the level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level)
432
+
Driverstring// Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`)
433
+
EnableIPv6bool// EnableIPv6 represents whether to enable IPv6
434
+
IPAM network.IPAM// IPAM is the network's IP Address Management
435
+
Internalbool// Internal represents if the network is used internal only
436
+
Attachablebool// Attachable represents if the global scope is manually attachable by regular containers from workers in swarm mode.
437
+
Ingressbool// Ingress indicates the network is providing the routing-mesh for the swarm cluster.
438
+
ConfigFrom network.ConfigReference// ConfigFrom specifies the source which will provide the configuration for this network.
439
+
ConfigOnlybool// ConfigOnly networks are place-holder networks for network configurations to be used by other networks. ConfigOnly networks cannot be used directly to run containers or services.
440
+
Containersmap[string]network.EndpointResource// Containers contains endpoints belonging to the network
441
+
Optionsmap[string]string// Options holds the network specific options to use for when creating the network
442
+
Labelsmap[string]string// Labels holds metadata specific to the network being created
443
+
Peers []network.PeerInfo`json:",omitempty"`// List of peer nodes for an overlay network
0 commit comments