globalnet

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 9 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(globalNetworks map[string]*GlobalNetwork, subctlData *datafile.SubctlData) (string, error)

func AssignGlobalnetIPs added in v0.3.1

func AssignGlobalnetIPs(subctlData *datafile.SubctlData, globalNetworks map[string]*GlobalNetwork, netconfig Config) (string, error)

func CheckForOverlappingCIDRs added in v0.3.1

func CheckForOverlappingCIDRs(globalNetworks map[string]*GlobalNetwork, netconfig Config) error

func CheckOverlappingCidr added in v0.3.1

func CheckOverlappingCidr(networks map[string]*GlobalNetwork, overlappingFor overlapType, netconfig Config) error

func Discover

func Discover(client *submarinerClientset.Clientset, namespace string) (map[string]*GlobalNetwork, error)

func GetGlobalNetworks added in v0.3.1

func GetGlobalNetworks(subctlData *datafile.SubctlData) (map[string]*GlobalNetwork, 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 ShowNetworks

func ShowNetworks(networks map[string]*GlobalNetwork)

func ValidateGlobalnetConfiguration added in v0.3.1

func ValidateGlobalnetConfiguration(subctlData *datafile.SubctlData, netconfig Config) (error, string, uint)

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

type Config added in v0.3.1

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

type GlobalCIDR added in v0.2.0

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

type GlobalNetwork

type GlobalNetwork struct {
	GlobalCIDRs  []string
	ServiceCIDRs []string
	ClusterCIDRs []string
	ClusterId    string
}

func (*GlobalNetwork) Show

func (gn *GlobalNetwork) Show()

Jump to

Keyboard shortcuts

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