provider

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

Init calls all registered provider plugins Init func

func IsPlugin

func IsPlugin(name string) bool

IsPlugin returns true if name corresponds to an already registered Plugin

func OnSync

func OnSync(lb *lbapi.LoadBalancer)

OnSync calls all registered provider plugins OnSync func

func Plugins

func Plugins() []string

Plugins returns the name of all registered provider plugin in a string slice

func RegisterPlugin

func RegisterPlugin(name string, plugin Plugin)

RegisterPlugin registers a Plugin by name. Register does not allow user to override an existing Plugin. This is expected to happen during app startup.

func Run

func Run(stopCh <-chan struct{})

Run starts all registered provider plugins This is expected to happen after Init.

Types

type Plugin

type Plugin interface {
	Init(config.Configuration, informers.SharedInformerFactory)
	Run(stopCh <-chan struct{})
	OnSync(*lbapi.LoadBalancer)
}

Plugin defines a pluggable provider interface

func GetPlugin

func GetPlugin(name string) (Plugin, bool)

GetPlugin returns a registered Plugin, or nil if not

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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