globalnet

package
v0.11.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 12 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 IsValidCIDR added in v0.10.1

func IsValidCIDR(cidr string) error

func LastIP added in v0.9.0

func LastIP(network *net.IPNet) uint

func ValidateExistingGlobalNetworks added in v0.10.1

func ValidateExistingGlobalNetworks(config *rest.Config, namespace string) error

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