plugin

package
v0.0.0-...-c65a67c Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointDriverRegistry = map[string]DriverConfigTypes{
	"ovs": DriverConfigTypes{
		DriverType: reflect.TypeOf(drivers.OvsDriver{}),
		ConfigType: reflect.TypeOf(drivers.OvsDriverConfig{}),
	},
}
View Source
var NetworkDriverRegistry = map[string]DriverConfigTypes{
	"ovs": DriverConfigTypes{
		DriverType: reflect.TypeOf(drivers.OvsDriver{}),
		ConfigType: reflect.TypeOf(drivers.OvsDriverConfig{}),
	},
}
View Source
var StateDriverRegistry = map[string]DriverConfigTypes{
	"etcd": DriverConfigTypes{
		DriverType: reflect.TypeOf(drivers.EtcdStateDriver{}),
		ConfigType: reflect.TypeOf(drivers.EtcdStateDriverConfig{}),
	},
}

Functions

This section is empty.

Types

type DriverConfigTypes

type DriverConfigTypes struct {
	DriverType reflect.Type
	ConfigType reflect.Type
}

type NetPlugin

type NetPlugin struct {
	sync.Mutex
	ConfigFile     string
	NetworkDriver  core.NetworkDriver
	EndpointDriver core.EndpointDriver
	StateDriver    core.StateDriver
}

func (*NetPlugin) CreateEndpoint

func (p *NetPlugin) CreateEndpoint(id string) error

func (*NetPlugin) CreateNetwork

func (p *NetPlugin) CreateNetwork(id string) error

func (*NetPlugin) Deinit

func (p *NetPlugin) Deinit()

func (*NetPlugin) DeleteEndpoint

func (p *NetPlugin) DeleteEndpoint(id string) error

func (*NetPlugin) DeleteNetwork

func (p *NetPlugin) DeleteNetwork(id string) error

func (*NetPlugin) FetchEndpoint

func (p *NetPlugin) FetchEndpoint(id string) (core.State, error)

func (*NetPlugin) FetchNetwork

func (p *NetPlugin) FetchNetwork(id string) (core.State, error)

func (*NetPlugin) Init

func (p *NetPlugin) Init(configStr string) error

func (*NetPlugin) InitHelper

func (p *NetPlugin) InitHelper(driverRegistry map[string]DriverConfigTypes,
	driverName string, configStr string) (core.Driver, *core.Config, error)

type PluginConfig

type PluginConfig struct {
	Drivers struct {
		Network  string
		Endpoint string
		State    string
	}
}

Jump to

Keyboard shortcuts

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