globalnet

package
v0.7.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateGlobalCIDR added in v0.2.0

func AllocateGlobalCIDR(globalnetInfo *GlobalnetInfo) (string, error)

func AssignGlobalnetIPs added in v0.3.1

func AssignGlobalnetIPs(globalnetInfo *GlobalnetInfo, netconfig Config) (string, error)

func CheckOverlappingCidrs added in v0.5.0

func CheckOverlappingCidrs(globalnetInfo *GlobalnetInfo, netconfig Config) error

func GetValidClusterSize added in v0.3.0

func GetValidClusterSize(cidrRange string, clusterSize uint) (uint, error)

func LastIp added in v0.2.0

func LastIp(network *net.IPNet) uint

func ValidateGlobalnetConfiguration added in v0.3.1

func ValidateGlobalnetConfiguration(globalnetInfo *GlobalnetInfo, netconfig Config) (string, error)

Types

type CIDR added in v0.2.0

type CIDR struct {
	// contains filtered or unexported fields
}

func NewCIDR added in v0.2.0

func NewCIDR(cidr string) (CIDR, error)

type Config added in v0.3.1

type Config struct {
	ClusterCIDR             string
	ClusterID               string
	GlobalnetCIDR           string
	ServiceCIDR             string
	GlobalnetClusterSize    uint
	ClusterCIDRAutoDetected bool
	ServiceCIDRAutoDetected bool
}

type GlobalCIDR added in v0.2.0

type GlobalCIDR struct {
	// contains filtered or unexported fields
}

type GlobalNetwork

type GlobalNetwork struct {
	GlobalCIDRs []string
	ClusterId   string
}

type GlobalnetInfo added in v0.5.0

type GlobalnetInfo struct {
	GlobalnetEnabled     bool
	GlobalnetCidrRange   string
	GlobalnetClusterSize uint
	GlobalCidrInfo       map[string]*GlobalNetwork
}

func GetGlobalNetworks added in v0.3.1

func GetGlobalNetworks(k8sClientset *kubernetes.Clientset, brokerNamespace string) (*GlobalnetInfo, *v1.ConfigMap, error)

Jump to

Keyboard shortcuts

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