ipam

package
v0.0.0-...-03ffbd0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPAllAllocator = &IPAM{SubnetAllocatorPath: paths.IPAllocatorPath, SubnetMap: make(map[string]*subnetConfig)}

Functions

This section is empty.

Types

type IPAM

type IPAM struct {
	SubnetAllocatorPath string
	SubnetMap           map[string]*subnetConfig `json:"subnet_map"`
}

func (*IPAM) Allocate

func (ipam *IPAM) Allocate(subnet net.IPNet) (ip net.IP, err error)

func (*IPAM) AllocateSubnet

func (ipam *IPAM) AllocateSubnet(subnet net.IPNet) (ip net.IP, exist bool, err error)

func (*IPAM) DeleteSubnet

func (ipam *IPAM) DeleteSubnet(subnet net.IPNet) error

func (*IPAM) Release

func (ipam *IPAM) Release(subnet net.IPNet, ip net.IP) (err error)

func (*IPAM) ResetSubnet

func (ipam *IPAM) ResetSubnet(subnet net.IPNet) error

Jump to

Keyboard shortcuts

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