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
Click to show internal directories.
Click to hide internal directories.