ipam

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: BSD-3-Clause Imports: 14 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Free

func Free(danmClient danmclientset.Interface, netInfo danmtypes.DanmNet, ip string) error

Free inspects the DanmNet object received as an input, and releases an IPv4 or IPv6 address from the appropriate allocation pool The IP address liberation is represented by unsetting a bit in the network's BitArray type allocation matrix The refreshed DanmNet object is modified in the K8s API server at the end

func GarbageCollectIps

func GarbageCollectIps(danmClient danmclientset.Interface, netInfo *danmtypes.DanmNet, ip4, ip6 string)

func Reserve

func Reserve(danmClient danmclientset.Interface, netInfo danmtypes.DanmNet, req4, req6 string) (string, string, string, error)

Reserve inspects the DanmNet object received as an input, and allocates an IPv4 or IPv6 address from the appropriate allocation pool In case static IP allocation is requested, it will try reserver the requested error. If it is not possible, it returns an error The reserved IP address is represented by setting a bit in the network's BitArray type allocation matrix The refreshed DanmNet object is modified in the K8s API server at the end

Types

This section is empty.

Jump to

Keyboard shortcuts

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