Discover Packages
github.com/willeponken/elvisp
lease
package
Version:
v2.0.0-beta+incompatible
Opens a new window with list of versions in this module.
Published: Jun 24, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Generate takes the CIDR (both IPv4 and IPv6 is supported) and a ID (which is used to increment the IP address from the CIDR). Then the incremented IP address is returned.
CIDR holds a start address, the allowed network and a ID to add to the start IP.
ParseCIDR acts as a wrapper for net.ParseCIDR and populates a lease.CIDR struct.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.