plugin

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 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

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

func NewCNIPlugin

func NewCNIPlugin(weave *weaveapi.Client) *CNIPlugin

func (*CNIPlugin) CmdAdd

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

func (*CNIPlugin) CmdDel

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

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