Documentation ¶
Overview ¶
network contains a controller that handles network lifecycle
Index ¶
Constants ¶
View Source
const ( // We'll attempt to recompute EVERY service's endpoints at least this // often. Higher numbers = lower CPU/network load; lower numbers = // shorter amount of time before a mistaken endpoint is corrected. FullServiceResyncPeriod = 5 * time.Minute // We'll keep enpoint watches open up to this long EndpointRelistPeriod = 5 * time.Minute // We'll keep network watches open up to this long NetworkRelistPeriod = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkController ¶
type NetworkController struct {
// contains filtered or unexported fields
}
NetworkController manages all networks
func NewNetworkController ¶
func NewNetworkController(client *client.Client, provider networkprovider.Interface) *NetworkController
NewNetworkController returns a new *NetworkController.
func (*NetworkController) Run ¶
func (e *NetworkController) Run(stopCh <-chan struct{}) error
Runs e; will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.
Click to show internal directories.
Click to hide internal directories.