network

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(docker *client.Docker, net types.NetworkResource, container types.ContainerJSONBase) error

Connect connects a container to a network

func Create

func Create(docker *client.Docker, name string) (types.NetworkCreateResponse, error)

Create creates a docker Network with the given name returns: NetworkCreateResponse, error

func Exists

func Exists(docker *client.Docker, name string) (types.NetworkResource, bool, error)

Exists returns type.NetworkResource and true if the network name exists, otherwise false.

func List

func List(docker *client.Docker, all bool) ([]types.NetworkResource, error)

List returns array of type NetworkResources and error

Types

This section is empty.

Jump to

Keyboard shortcuts

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