plugin

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

Weave network driver extension for Docker and Kubernetes

This directory implements both a Docker plugin to integrate Weave Net with Docker, and a Container Network Interface (CNI) plugin, to integrate Weave Net with Kubernetes.

The Docker plugin runs automatically when you weave launch, provided your Docker daemon is version 1.9 or newer.

More detail on the Docker plugin here.

More detail on the CNI plugin here.

Documentation

Index

Constants

View Source
const (
	MulticastOption = netplugin.MulticastOption
)

Variables

View Source
var Log = common.Log

Functions

This section is empty.

Types

type Config

type Config struct {
	Socket            string
	MeshSocket        string
	Enable            bool
	EnableV2          bool
	EnableV2Multicast bool
	DNS               bool
	DefaultSubnet     string
}

type Plugin

type Plugin struct {
	Config
}

func NewPlugin

func NewPlugin(config Config) *Plugin

func (*Plugin) NewStatus

func (plugin *Plugin) NewStatus() *Status

func (*Plugin) Start

func (plugin *Plugin) Start(weaveAPIAddr string, dockerClient *docker.Client, ready func())

type Status

type Status struct {
	Config         Config
	DriverName     string
	MeshDriverName string `json:"MeshDriverName,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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