Documentation ¶
Index ¶
- Variables
- type IPAllocator
- func (a *IPAllocator) AllocateIP(name string, designatedIPStr string) (net.IP, error)
- func (a *IPAllocator) DeallocateIP(name string, designatedIPStr string) error
- func (a *IPAllocator) DeleteIPSubnet(name string)
- func (a *IPAllocator) GetAvailable(name string) (int, error)
- func (a *IPAllocator) GetUsage(name string) error
- func (a *IPAllocator) GetUsed(name string) (int, error)
- func (a *IPAllocator) IsAllocated(name string, designatedIPStr string) (bool, error)
- func (a *IPAllocator) NewIPSubnet(name string, cidr string, start, end net.IP) error
- func (a *IPAllocator) RevokeIP(name string, designatedIPStr string) error
- type IPSubnet
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnspecifiedIPAddress = net.IP{0, 0, 0, 0}
)
Functions ¶
This section is empty.
Types ¶
type IPAllocator ¶
type IPAllocator struct {
// contains filtered or unexported fields
}
func NewIPAllocator ¶
func NewIPAllocator() *IPAllocator
func (*IPAllocator) AllocateIP ¶
func (*IPAllocator) DeallocateIP ¶
func (a *IPAllocator) DeallocateIP(name string, designatedIPStr string) error
func (*IPAllocator) DeleteIPSubnet ¶
func (a *IPAllocator) DeleteIPSubnet(name string)
func (*IPAllocator) GetAvailable ¶
func (a *IPAllocator) GetAvailable(name string) (int, error)
func (*IPAllocator) GetUsage ¶
func (a *IPAllocator) GetUsage(name string) error
func (*IPAllocator) IsAllocated ¶
func (a *IPAllocator) IsAllocated(name string, designatedIPStr string) (bool, error)
func (*IPAllocator) NewIPSubnet ¶
Click to show internal directories.
Click to hide internal directories.