provider

package
v0.0.0-...-398fed0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProviderNotRegistered = errors.New("Provider not registered")

Functions

This section is empty.

Types

type Cloudstack

type Cloudstack struct {
	ProjectId string
	ApiUrl    string
	ApiKey    string
	SecretKey string
	Hostname  string
}

type Ipam

type Ipam struct {
	// contains filtered or unexported fields
}

func NewIpam

func NewIpam(iprange string) (*Ipam, error)

Init initilizes ipam module

func (*Ipam) Allocate

func (i *Ipam) Allocate(state ipvs.State) (string, error)

Allocate allocates a new avaliable ip

func (*Ipam) Release

func (i *Ipam) Release(allocIP string)

Release releases a allocated IP

type None

type None struct {
	// contains filtered or unexported fields
}

func (None) AllocateVIP

func (n None) AllocateVIP(s *types.Service, state ipvs.State) error

func (None) ReleaseVIP

func (n None) ReleaseVIP(s types.Service) error

func (None) SyncVIPs

func (n None) SyncVIPs(state ipvs.State) error

type Provider

type Provider interface {
	AllocateVIP(s *types.Service, state ipvs.State) error
	ReleaseVIP(s types.Service) error
	SyncVIPs(state ipvs.State) error
}

func New

func New(config *config.BalancerConfig) (Provider, error)

func NewNone

func NewNone(config *config.BalancerConfig) (Provider, error)

Jump to

Keyboard shortcuts

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