Documentation ¶
Index ¶
- Variables
- type AllocationConfig
- type Allocator
- func (a *Allocator) Allocate(ctx context.Context, nodeName string) (map[string]*pool.IPPool, error)
- func (a *Allocator) Configure(ctx context.Context, configs []AllocationConfig)
- func (a *Allocator) ConfigureAndLoadAllocations(ctx context.Context, configs []AllocationConfig, nodes []corev1.Node)
- func (a *Allocator) Deallocate(ctx context.Context, nodeName string)
- func (a *Allocator) IsConfigured() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFreeRanges = errors.New("no free IP ranges available")
Functions ¶
This section is empty.
Types ¶
type AllocationConfig ¶
type AllocationConfig struct { PoolName string Subnet *net.IPNet Gateway net.IP PerNodeBlockSize int }
AllocationConfig contains configuration of the IP pool
func (*AllocationConfig) Equal ¶
func (pc *AllocationConfig) Equal(other *AllocationConfig) bool
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
func (*Allocator) Configure ¶
func (a *Allocator) Configure(ctx context.Context, configs []AllocationConfig)
Configure update allocator configuration
func (*Allocator) ConfigureAndLoadAllocations ¶
func (a *Allocator) ConfigureAndLoadAllocations(ctx context.Context, configs []AllocationConfig, nodes []corev1.Node)
ConfigureAndLoadAllocations configures allocator and load data from the node objects
func (*Allocator) Deallocate ¶
Deallocate release all ranges allocated for node
func (*Allocator) IsConfigured ¶
IsConfigured returns true if allocator is configured
Click to show internal directories.
Click to hide internal directories.