Documentation
¶
Index ¶
- type IPAllocator
- func (a *IPAllocator) Available(name string) (i int)
- func (a *IPAllocator) DeleteSubnet(name string)
- func (a *IPAllocator) GetIP(name string, givenIP string) (string, error)
- func (a *IPAllocator) NewSubnet(name string, subnet string, start string, end string) (err error)
- func (a *IPAllocator) ReleaseIP(name string, givenIP string) (err error)
- func (a *IPAllocator) Usage(name string)
- func (a *IPAllocator) Used(name string) (i int)
- type IPSubnet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAllocator ¶
type IPAllocator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *IPAllocator
func NewIPAllocator ¶
func NewIPAllocator() *IPAllocator
func (*IPAllocator) Available ¶
func (a *IPAllocator) Available(name string) (i int)
func (*IPAllocator) DeleteSubnet ¶
func (a *IPAllocator) DeleteSubnet(name string)
func (*IPAllocator) GetIP ¶
func (a *IPAllocator) GetIP(name string, givenIP string) (string, error)
func (*IPAllocator) ReleaseIP ¶
func (a *IPAllocator) ReleaseIP(name string, givenIP string) (err error)
func (*IPAllocator) Usage ¶
func (a *IPAllocator) Usage(name string)
func (*IPAllocator) Used ¶
func (a *IPAllocator) Used(name string) (i int)
Click to show internal directories.
Click to hide internal directories.