network

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkController

type NetworkController struct {
	// contains filtered or unexported fields
}

func New

func New(cloud cloudprovider.Interface, kubeClient clientset.Interface, clusterName string, namespace string) (*NetworkController, error)

New returns a new network controller to keep cloud provider network resource in sync with registry TODO: Currently only registry-to-cloud sync is performed. Is it necessary to perform the opposite sync? is network subject to change after creation?

func (*NetworkController) Run

func (s *NetworkController) Run(workers int)

Run starts a background goroutine that watches for changes of networks and ensures they are created/deleted properly networkSyncPeriod controls how often we resync our store with cluster registry

It's an error to call Run() more than once for a given networkController object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL