Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller service.
func NewController ¶
func NewController(m model.Model) (*Controller, error)
NewController creates Controller
func (*Controller) ScanLoop ¶ added in v1.1.0
func (c *Controller) ScanLoop(ctx context.Context, scanInterval, addressExpiration time.Duration) error
ScanLoop scans IP address assignment table and Pods information periodically.
func (*Controller) Sync ¶
func (c *Controller) Sync(ctx context.Context) (rev string, err error)
Sync retrieves all existing Node from Kubernetes API server then look for nodes that exist only in the coil database. Address blocks and IP addresses allocated to such deleted nodes are then released.
The function returns ResourceVersion rev for use in Watch().
Click to show internal directories.
Click to hide internal directories.