network

package
v0.0.0-...-814f547 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfiguration

func ReadConfiguration(reader io.Reader, config *Config) error

func Register

func Register(networkImpl string, allocFn Allocator)

Types

type Allocator

type Allocator func(*client.Client, []string) NetworkController

type Config

type Config struct {
	KubeUrl        string        `gcfg:"master"`
	KubeConfig     string        `gcfg:"kubeconfig"`
	ResyncPeriod   time.Duration `gcfg:"resync-interval"`
	ClusterIpRange string        `gcfg:"service-cluster-ip-range"`
}

type NetworkController

type NetworkController interface {
	Init(global *Config, configFile io.Reader) error

	SetNamespaceStore(store cache.Store)
	AddNamespace(obj *api.Namespace)
	UpdateNamespace(oldObj, newObj *api.Namespace)
	DeleteNamespace(obj *api.Namespace)

	SetPodStore(store cache.Indexer)
	AddPod(obj *api.Pod)
	UpdatePod(oldObj, newObj *api.Pod)
	DeletePod(obj *api.Pod)

	SetReplicationControllerStore(store cache.Store)
	AddReplicationController(obj *api.ReplicationController)
	UpdateReplicationController(oldObj, newObj *api.ReplicationController)
	DeleteReplicationController(obj *api.ReplicationController)

	SetServiceStore(store cache.Store)
	AddService(obj *api.Service)
	UpdateService(oldObj, newObj *api.Service)
	DeleteService(obj *api.Service)

	Run(shutdown chan struct{})
}

type NetworkFactory

type NetworkFactory struct {
}

Placeholder class that constructs a NetworkController

func NewNetworkFactory

func NewNetworkFactory() *NetworkFactory

func (*NetworkFactory) Create

func (f *NetworkFactory) Create(client *client.Client, args []string) NetworkController

Directories

Path Synopsis
cni
Common CNI plugin for Kubernetes and Mesos.
Common CNI plugin for Kubernetes and Mesos.
args
Common code to parse agruments for both Kubernetes and Mesos.
Common code to parse agruments for both Kubernetes and Mesos.
cni
cni/args
Common code to parse agruments for both Kubernetes and Mesos.
Common code to parse agruments for both Kubernetes and Mesos.
cni/cni
Common CNI plugin for Kubernetes and Mesos.
Common CNI plugin for Kubernetes and Mesos.

Jump to

Keyboard shortcuts

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