network

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 13 Imported by: 174

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Providers added in v0.6.0

func Providers(opt Opt) (map[pb.NetMode]Provider, error)

Providers returns the 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 Opt added in v0.6.0

type Opt struct {
	Root          string
	Mode          string
	CNIConfigPath string
	CNIBinaryDir  string
}

type Provider

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

Provider interface for Network

func NewCNIProvider added in v0.6.0

func NewCNIProvider(opt Opt) (Provider, error)

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