Documentation ¶
Index ¶
- type CIDRPool
- func (c *CIDRPool) BlockPoolSize() int
- func (c *CIDRPool) GetAvailableBlock(taken []string) string
- func (c *CIDRPool) GetAvailableSingleIP(taken []string) string
- func (c *CIDRPool) GetBlockPool() map[string]struct{}
- func (c *CIDRPool) GetSinglePool() map[string]struct{}
- func (c *CIDRPool) IsMember(subnet string) bool
- func (c *CIDRPool) SingleIPPoolSize() int
- type HardwareAddressGenerator
- type LeaseController
- func (c *LeaseController) AcquireSubnetLease(underlayIP string, singleOverlayIP bool) (*controller.Lease, error)
- func (c *LeaseController) ReleaseSubnetLease(underlayIP string) error
- func (c *LeaseController) RenewSubnetLease(lease controller.Lease) error
- func (c *LeaseController) RoutableLeases() ([]controller.Lease, error)
- type LeaseValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIDRPool ¶
type CIDRPool struct {
// contains filtered or unexported fields
}
func NewCIDRPool ¶
func (*CIDRPool) BlockPoolSize ¶
func (*CIDRPool) GetAvailableBlock ¶
func (*CIDRPool) GetAvailableSingleIP ¶
func (*CIDRPool) GetBlockPool ¶
func (*CIDRPool) GetSinglePool ¶
func (*CIDRPool) SingleIPPoolSize ¶
type HardwareAddressGenerator ¶
type HardwareAddressGenerator struct{}
func (*HardwareAddressGenerator) GenerateForVTEP ¶
func (g *HardwareAddressGenerator) GenerateForVTEP(containerIP net.IP) (net.HardwareAddr, error)
type LeaseController ¶
type LeaseController struct { DatabaseHandler databaseHandler HardwareAddressGenerator hardwareAddressGenerator AcquireSubnetLeaseAttempts int CIDRPool cidrPool LeaseValidator leaseValidator LeaseExpirationSeconds int Logger lager.Logger }
func (*LeaseController) AcquireSubnetLease ¶
func (c *LeaseController) AcquireSubnetLease(underlayIP string, singleOverlayIP bool) (*controller.Lease, error)
func (*LeaseController) ReleaseSubnetLease ¶
func (c *LeaseController) ReleaseSubnetLease(underlayIP string) error
func (*LeaseController) RenewSubnetLease ¶
func (c *LeaseController) RenewSubnetLease(lease controller.Lease) error
func (*LeaseController) RoutableLeases ¶
func (c *LeaseController) RoutableLeases() ([]controller.Lease, error)
type LeaseValidator ¶
type LeaseValidator struct{}
func (*LeaseValidator) Validate ¶
func (v *LeaseValidator) Validate(lease controller.Lease) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.