network

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cmd exposes the top-level network command
	Cmd = &cobra.Command{
		Use:   "network",
		Short: "Network management",
	}
)

Functions

func GetNetwork

func GetNetwork(ctx context.Context, c api.ControlClient, input string) (*api.Network, error)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL