Documentation ¶
Index ¶
- type IPAllocator
- func (a *IPAllocator) AllocateIP(name string, ipAddress string) (string, error)
- func (a *IPAllocator) DeallocateIP(name, ipAddress 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, ipAddress string) (bool, error)
- func (a *IPAllocator) IsNetworkInitialized(name string) bool
- func (a *IPAllocator) ListAll(name string) (map[string]string, error)
- func (a *IPAllocator) NewIPSubnet(name, cidr, start, end string) error
- func (a *IPAllocator) RevokeIP(name, ipAddress string) error
- type IPAllocatorBuilder
- func (b *IPAllocatorBuilder) Allocate(name string, ipAddressList ...string) *IPAllocatorBuilder
- func (b *IPAllocatorBuilder) Build() *IPAllocator
- func (b *IPAllocatorBuilder) IPSubnet(name, cidr, start, end string) *IPAllocatorBuilder
- func (b *IPAllocatorBuilder) Revoke(name string, ipAddressList ...string) *IPAllocatorBuilder
- 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) AllocateIP ¶
func (a *IPAllocator) AllocateIP(name string, ipAddress string) (string, error)
func (*IPAllocator) DeallocateIP ¶
func (a *IPAllocator) DeallocateIP(name, ipAddress 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, ipAddress string) (bool, error)
func (*IPAllocator) IsNetworkInitialized ¶
func (a *IPAllocator) IsNetworkInitialized(name string) bool
func (*IPAllocator) NewIPSubnet ¶
func (a *IPAllocator) NewIPSubnet(name, cidr, start, end string) error
func (*IPAllocator) RevokeIP ¶
func (a *IPAllocator) RevokeIP(name, ipAddress string) error
type IPAllocatorBuilder ¶
type IPAllocatorBuilder struct {
// contains filtered or unexported fields
}
func NewIPAllocatorBuilder ¶
func NewIPAllocatorBuilder() *IPAllocatorBuilder
func (*IPAllocatorBuilder) Allocate ¶
func (b *IPAllocatorBuilder) Allocate(name string, ipAddressList ...string) *IPAllocatorBuilder
func (*IPAllocatorBuilder) Build ¶
func (b *IPAllocatorBuilder) Build() *IPAllocator
func (*IPAllocatorBuilder) IPSubnet ¶
func (b *IPAllocatorBuilder) IPSubnet(name, cidr, start, end string) *IPAllocatorBuilder
func (*IPAllocatorBuilder) Revoke ¶
func (b *IPAllocatorBuilder) Revoke(name string, ipAddressList ...string) *IPAllocatorBuilder
Click to show internal directories.
Click to hide internal directories.