Documentation
¶
Index ¶
- Variables
- type DriverConfigTypes
- type NetPlugin
- func (p *NetPlugin) CreateEndpoint(id string) error
- func (p *NetPlugin) CreateNetwork(id string) error
- func (p *NetPlugin) Deinit()
- func (p *NetPlugin) DeleteEndpoint(id string) error
- func (p *NetPlugin) DeleteNetwork(id string) error
- func (p *NetPlugin) FetchEndpoint(id string) (core.State, error)
- func (p *NetPlugin) FetchNetwork(id string) (core.State, error)
- func (p *NetPlugin) Init(configStr string) error
- func (p *NetPlugin) InitHelper(driverRegistry map[string]DriverConfigTypes, driverName string, ...) (core.Driver, *core.Config, error)
- type PluginConfig
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 NetPlugin ¶
type NetPlugin struct {
sync.Mutex
ConfigFile string
NetworkDriver core.NetworkDriver
EndpointDriver core.EndpointDriver
StateDriver core.StateDriver
}
func (*NetPlugin) CreateEndpoint ¶
func (*NetPlugin) CreateNetwork ¶
func (*NetPlugin) DeleteEndpoint ¶
func (*NetPlugin) DeleteNetwork ¶
type PluginConfig ¶
Click to show internal directories.
Click to hide internal directories.