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
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -457,24 +457,24 @@ type EndpointResource struct {
457
457
typeNetworkCreatestruct {
458
458
// Deprecated: CheckDuplicate is deprecated since API v1.44, but it defaults to true when sent by the client
459
459
// package to older daemons.
460
-
CheckDuplicatebool`json:",omitempty"`
461
-
Driverstring
462
-
Scopestring
463
-
EnableIPv6bool
464
-
IPAM*network.IPAM
465
-
Internalbool
466
-
Attachablebool
467
-
Ingressbool
468
-
ConfigOnlybool
469
-
ConfigFrom*network.ConfigReference
470
-
Optionsmap[string]string
471
-
Labelsmap[string]string
460
+
CheckDuplicatebool`json:",omitempty"`
461
+
Driverstring// Driver is the driver-name used to create the network (e.g. `bridge`, `overlay`)
462
+
Scopestring// Scope describes the level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level).
463
+
EnableIPv6bool// EnableIPv6 represents whether to enable IPv6.
464
+
IPAM*network.IPAM// IPAM is the network's IP Address Management.
465
+
Internalbool// Internal represents if the network is used internal only.
466
+
Attachablebool// Attachable represents if the global scope is manually attachable by regular containers from workers in swarm mode.
467
+
Ingressbool// Ingress indicates the network is providing the routing-mesh for the swarm cluster.
468
+
ConfigOnlybool// ConfigOnly creates a config-only network. Config-only 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.
469
+
ConfigFrom*network.ConfigReference// ConfigFrom specifies the source which will provide the configuration for this network. The specified network must be a config-only network; see [NetworkCreate.ConfigOnly].
470
+
Optionsmap[string]string// Options specifies the network-specific options to use for when creating the network.
471
+
Labelsmap[string]string// Labels holds metadata specific to the network being created.
472
472
}
473
473
474
474
// NetworkCreateRequest is the request message sent to the server for network create call.
475
475
typeNetworkCreateRequeststruct {
476
476
NetworkCreate
477
-
Namestring
477
+
Namestring// Name is the requested name of the network.
478
478
}
479
479
480
480
// NetworkCreateResponse is the response message sent by the server for network create call
0 commit comments