cnmallocator

package
v0.0.0-...-967c829 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 27 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 New

New returns a new NetworkAllocator handle

func PredefinedNetworks

func PredefinedNetworks() []networkallocator.PredefinedNetworkData

PredefinedNetworks returns the list of predefined network structures

Types

type NetworkConfig

type NetworkConfig struct {
	// DefaultAddrPool specifies default subnet pool for global scope networks
	DefaultAddrPool []string

	// SubnetSize specifies the subnet size of the networks created from
	// the default subnet pool
	SubnetSize uint32

	// VXLANUDPPort specifies the UDP port number for VXLAN traffic
	VXLANUDPPort uint32
}

NetworkConfig is used to store network related cluster config in the Manager.

Jump to

Keyboard shortcuts

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