backend

package
v0.0.0-...-ca7731e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory BackendControllerFactory)

Register registers a backend factory by name

Types

type BackendController

type BackendController interface {
	Name() string
	GetBindIP(name string) (string, error)
	HandleConfigMapCreate(configMap *api.ConfigMap) error
	HandleConfigMapDelete(configMap *api.ConfigMap)
	HandleNodeCreate(node *api.Node)
	HandleNodeDelete(node *api.Node)
	HandleNodeUpdate(oldNode *api.Node, curNode *api.Node)
}

BackendController Interface for all Backends

func CreateBackendController

func CreateBackendController(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, configLabelKey, configLabelValue string) (BackendController, error)

CreateBackendController creates a backend controller factory for a specific backend

type BackendControllerFactory

type BackendControllerFactory func(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, configLabelKey, configLabelValue string) (BackendController, error)

BackendControllerFactory Factory for Backend controllers

Directories

Path Synopsis
f5

Jump to

Keyboard shortcuts

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