network

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect added in v2.2.0

func Connect(ctx context.Context, networkName string, options entities.NetworkConnectOptions) error

Connect adds a container to a network

func Create

Create makes a new CNI network configuration

func Disconnect added in v2.2.0

func Disconnect(ctx context.Context, networkName string, options entities.NetworkDisconnectOptions) error

Disconnect removes a container from a given network

func Inspect

func Inspect(ctx context.Context, nameOrID string) ([]entities.NetworkInspectReport, error)

Inspect returns low level information about a CNI network configuration

func List

List returns a summary of all CNI network configurations

func Remove

func Remove(ctx context.Context, nameOrID string, force *bool) ([]*entities.NetworkRmReport, error)

Remove deletes a defined CNI network configuration by name. The optional force boolean will remove all containers associated with the network when set to true. A slice of NetworkRemoveReports are returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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