Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeprecatedGetAssignedAddressLabel ¶
DeprecatedGetAssignedAddressLabel returns the label that must be assigned to each egress IP address bound to an interface
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(name string, v4, v6 bool, linkHandlerFunc func(link netlink.Link) error) *Controller
NewController creates a controller to manage linux network interfaces
func (*Controller) AddAddress ¶
func (c *Controller) AddAddress(address netlink.Addr) error
AddAddress stores the address in a store and ensures its applied
func (*Controller) DelAddress ¶
func (c *Controller) DelAddress(address netlink.Addr) error
DelAddress removes the address from the store and ensure its removed from a link
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}, doneWg *sync.WaitGroup)
Run starts the controller and syncs at least every syncPeriod linkHandlerFunc fires as an additional handler when sync runs
Click to show internal directories.
Click to hide internal directories.