globalnet

package
v0.2.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 7 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 Discover

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

func IsOverlappingCIDR

func IsOverlappingCIDR(cidrList []string, cidr string) (bool, error)

func LastIp added in v0.2.0

func LastIp(network *net.IPNet) uint

func ShowNetworks

func ShowNetworks(networks map[string]*GlobalNetwork)

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 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