package network
import "github.com/docker/swarmkit/cmd/swarmctl/network"
Index ¶
- Variables
- func GetNetwork(ctx context.Context, c api.ControlClient, input string) (*api.Network, error)
- func ResolveServiceNetworks(ctx context.Context, c api.ControlClient, spec *api.ServiceSpec) error
Variables ¶
var ( // Cmd exposes the top-level network command Cmd = &cobra.Command{ Use: "network", Short: "Network management", } )
Functions ¶
func GetNetwork ¶
GetNetwork tries to query for a network as an ID and if it can't be found tries to query as a name. If the name query returns exactly one entry then it is returned to the caller. Otherwise an error is returned.
func ResolveServiceNetworks ¶
func ResolveServiceNetworks(ctx context.Context, c api.ControlClient, spec *api.ServiceSpec) error
ResolveServiceNetworks takes a service spec and resolves network names to network IDs.
Source Files ¶
cmd.go common.go create.go inspect.go list.go remove.go
- Version
- v1.12.0 (latest)
- Published
- Jul 26, 2016
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.