network

package
v0.0.0-...-94cc96a Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() map[pb.NetMode]Provider

Default returns the default network provider set

Types

type Namespace

type Namespace interface {
	io.Closer
	// Set the namespace on the spec
	Set(*specs.Spec)
}

Namespace of network for workers

type NetworkOpts

type NetworkOpts struct {
	Type          string
	CNIConfigPath string
	CNIPluginPath string
}

NetworkOpts hold network options

type Provider

type Provider interface {
	New() (Namespace, error)
}

Provider interface for Network

func NewHostProvider

func NewHostProvider() Provider

func NewNoneProvider

func NewNoneProvider() Provider

Jump to

Keyboard shortcuts

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