cnmallocator

package
v27.2.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

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

func IsBuiltInDriver(name string) bool

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 (p *Provider) SetDefaultVXLANUDPPort(port uint32) error

func (*Provider) ValidateIPAMDriver

func (p *Provider) ValidateIPAMDriver(driver *api.Driver) error

ValidateIPAMDriver implements networkallocator.NetworkProvider.

func (*Provider) ValidateIngressNetworkDriver

func (p *Provider) ValidateIngressNetworkDriver(driver *api.Driver) error

ValidateIngressNetworkDriver implements networkallocator.NetworkProvider.

func (*Provider) ValidateNetworkDriver

func (p *Provider) ValidateNetworkDriver(driver *api.Driver) error

ValidateNetworkDriver implements networkallocator.NetworkProvider.

Jump to

Keyboard shortcuts

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