ipam

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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 Data

type Data struct {
	InternalIPS pulumi.ArrayMap `yaml:"-"`
	Subnets     []*allocatedSubnet
}

type IPAM

type IPAM struct {
	Subnets []*allocatedSubnet
	// contains filtered or unexported fields
}

func FreshIPAM

func FreshIPAM(cidr string) *IPAM

FreshIPAM creates a new IPAM with a given CIDR.

func Load

func Load(data *Data) *IPAM

Load loads an IPAM from a given IPAMData.

func (*IPAM) GetFree

func (i *IPAM) GetFree(subnetID string) (string, error)

GetFreeIP returns a free IP from the IPAM.

func (*IPAM) ToData

func (i *IPAM) ToData() *Data

func (*IPAM) WithInternalIPS

func (i *IPAM) WithInternalIPS(ips pulumi.ArrayMap) *IPAM

Jump to

Keyboard shortcuts

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