Documentation ¶
Index ¶
Constants ¶
View Source
const ( IPAllocatorPrefix = "/ipalloc" IPAllocatorLockPrefix = "/ipalloc-lock" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllocateIPOpts ¶
type IPAllocator ¶
type IPAllocator interface { InitializePool(ctx context.Context, id string, addressRange string) (RangeAddresser, error) AllocateIP(ctx context.Context, id string, opts AllocateIPOpts) (string, error) ReleaseIP(ctx context.Context, id string, address string) error ReleasePool(ctx context.Context, id string) error }
type RangeAddresser ¶
type RangeAddresser interface {
GetAddressRange() string
}
Click to show internal directories.
Click to hide internal directories.