network

package
v4.0.0-2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subnets

type Subnets struct {
	Parent net.IPNet
	Calico net.IPNet
	Master net.IPNet
	VPN    net.IPNet
	Worker net.IPNet
}

Subnets holds network subnets used by guest clusters.

func Compute

func Compute(network net.IPNet) (subnets *Subnets, err error)

Compute computes subnets within network.

subnets computation rely on ipam.Free and use ipv4MaskSize as IPMask length.

func (Subnets) Equal

func (a Subnets) Equal(b Subnets) bool

Equal return true when every network IP and Mask in a and b are equal.

Jump to

Keyboard shortcuts

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