providers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProvider

func RegisterProvider(name string, provider Provider)

Types

type Provider

type Provider interface {
	// GetName returns the name of the provider.
	GetName() string
	// Init initializes the provider.
	Init() error
	// HealthCheck checks the connection to the provider.
	HealthCheck() error
	// AddLBConfig adds a new endpoint configuration. It may
	// return the FQDN for the endpoint if supported by the provider.
	AddLBConfig(config model.LBConfig) (fqdn string, err error)
	// UpdateLBConfig updates the endpoint configuration. It may
	// return the FQDN for the endpoint if supported by the provider.
	UpdateLBConfig(config model.LBConfig) (fqdn string, err error)
	// RemoveLBConfig removes the specified endpoint configuration.
	RemoveLBConfig(config model.LBConfig) error
	// GetLBConfigs returns all endpoint configurations.
	GetLBConfigs() ([]model.LBConfig, error)
}

func GetProvider

func GetProvider(name string) (Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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