Documentation ¶
Index ¶
- Constants
- func IsBuiltInDriver(name string) bool
- func RegisterManager(r driverapi.Registerer, networkType string) error
- type Provider
- func (p *Provider) NewAllocator(netConfig *networkallocator.Config) (networkallocator.NetworkAllocator, error)
- func (*Provider) PredefinedNetworks() []networkallocator.PredefinedNetworkData
- func (p *Provider) SetDefaultVXLANUDPPort(port uint32) error
- func (p *Provider) ValidateIPAMDriver(driver *api.Driver) error
- func (p *Provider) ValidateIngressNetworkDriver(driver *api.Driver) error
- func (p *Provider) ValidateNetworkDriver(driver *api.Driver) error
Constants ¶
View Source
const ( // DefaultDriver defines the name of the driver to be used by // default if a network without any driver name specified is // created. DefaultDriver = "overlay" )
Variables ¶
This section is empty.
Functions ¶
func IsBuiltInDriver ¶
IsBuiltInDriver returns whether the passed driver is an internal network driver
func RegisterManager ¶
func RegisterManager(r driverapi.Registerer, networkType string) error
RegisterManager registers a new instance of the manager driver for networkType with r.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(pg plugingetter.PluginGetter) *Provider
NewProvider returns a new cnmallocator provider.
func (*Provider) NewAllocator ¶
func (p *Provider) NewAllocator(netConfig *networkallocator.Config) (networkallocator.NetworkAllocator, error)
NewAllocator returns a new NetworkAllocator handle
func (*Provider) PredefinedNetworks ¶
func (*Provider) PredefinedNetworks() []networkallocator.PredefinedNetworkData
PredefinedNetworks returns the list of predefined network structures
func (*Provider) SetDefaultVXLANUDPPort ¶
func (*Provider) ValidateIPAMDriver ¶
ValidateIPAMDriver implements networkallocator.NetworkProvider.
func (*Provider) ValidateIngressNetworkDriver ¶
ValidateIngressNetworkDriver implements networkallocator.NetworkProvider.
Click to show internal directories.
Click to hide internal directories.