plugin

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MulticastOption = "works.weave.multicast"
)

Variables

This section is empty.

Functions

func New

func New(client *docker.Client, weave *weaveapi.Client, name, scope string, dns, isPluginV2, forceMulticast bool) (skel.Driver, error)

Types

type CNIPlugin added in v1.5.0

type CNIPlugin struct {
	// contains filtered or unexported fields
}

func NewCNIPlugin added in v1.5.0

func NewCNIPlugin(weave *weaveapi.Client) *CNIPlugin

func (*CNIPlugin) CmdAdd added in v1.5.0

func (c *CNIPlugin) CmdAdd(args *skel.CmdArgs) error

func (*CNIPlugin) CmdDel added in v1.5.0

func (c *CNIPlugin) CmdDel(args *skel.CmdArgs) error

As of CNI 0.5 spec:

"Plugins should generally complete a DEL action without error even if some resources are missing"

this method should therefore return nil in most, if not all, cases.

type NetConf added in v1.5.0

type NetConf struct {
	types.NetConf
	BrName      string `json:"bridge"`
	IsGW        bool   `json:"isGateway"`
	IPMasq      bool   `json:"ipMasq"`
	MTU         int    `json:"mtu"`
	HairpinMode bool   `json:"hairpinMode"`
}

type Watcher

type Watcher interface {
}

func NewWatcher

func NewWatcher(client *docker.Client, weave *weaveapi.Client, driver *driver) (Watcher, error)

Jump to

Keyboard shortcuts

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