Documentation
¶
Index ¶
- Constants
- type AssignIPResponse
- type CIDRResource
- type DataStore
- func (d *DataStore) AddEIPPool(eip string, name string, usingKnownIPs bool, protocol string) error
- func (d *DataStore) AssignIP(serviceName, ns string, protocol string) (*AssignIPResponse, error)
- func (d *DataStore) AssignSpecifyIP(ipstr, protocol, serviceName, ns string) (*AssignIPResponse, error)
- func (d *DataStore) DelBalancer(ip string) error
- func (d *DataStore) GetEIPStatus(eip string) *EIPStatus
- func (d *DataStore) GetPoolUsage(name string) (v1alpha1.EipStatus, error)
- func (d *DataStore) RemoveEIPPool(eip, name string) error
- func (d *DataStore) SetBalancer(ip string, nexthops []string) error
- func (d *DataStore) UnassignIP(ipstr string) error
- type EIPRef
- type EIPStatus
- type IPAM
Constants ¶
View Source
const (
DefaultSyncInterval = time.Second * 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignIPResponse ¶
type CIDRResource ¶
type CIDRResource struct {
EIPRefName string
CIDRs []*net.IPNet
Used map[string]*EIPRef
Size int
UsingKnownIPs bool
Protocol string
}
func (*CIDRResource) IntersectsWith ¶
func (c *CIDRResource) IntersectsWith(ipnets []*net.IPNet) bool
func (*CIDRResource) IsFull ¶
func (c *CIDRResource) IsFull() bool
type DataStore ¶
type DataStore struct {
IPPool map[string]*CIDRResource
// contains filtered or unexported fields
}
func NewDataStore ¶
func NewDataStore(log logr.Logger, bgpServer bgpserver.AnnounceBgp) *DataStore
func (*DataStore) AddEIPPool ¶
func (*DataStore) AssignIP ¶
func (d *DataStore) AssignIP(serviceName, ns string, protocol string) (*AssignIPResponse, error)
func (*DataStore) AssignSpecifyIP ¶
func (d *DataStore) AssignSpecifyIP(ipstr, protocol, serviceName, ns string) (*AssignIPResponse, error)
func (*DataStore) DelBalancer ¶
func (*DataStore) GetEIPStatus ¶
func (*DataStore) GetPoolUsage ¶
func (*DataStore) RemoveEIPPool ¶
func (*DataStore) UnassignIP ¶
Click to show internal directories.
Click to hide internal directories.