lib

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delegator

type Delegator interface {
	DelegateAdd(delegatePlugin string, netconf []byte) (*types.Result, error)
	DelegateDel(delegatePlugin string, netconf []byte) error
}

func NewDelegator

func NewDelegator() Delegator

type PluginController

type PluginController struct {
	Delegator Delegator
}

func (*PluginController) DelegateAdd

func (c *PluginController) DelegateAdd(netconf map[string]interface{}) (*types.Result, error)

func (*PluginController) DelegateDel

func (c *PluginController) DelegateDel(netconf map[string]interface{}) error

type WrapperConfig

type WrapperConfig struct {
	Datastore string                 `json:"datastore"`
	Delegate  map[string]interface{} `json:"delegate"`
}

func LoadWrapperConfig

func LoadWrapperConfig(bytes []byte) (*WrapperConfig, error)

Jump to

Keyboard shortcuts

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