ipam

package
v0.0.0-...-22c38b1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoVipAvailable = errors.New("No VIPs available")
)

Functions

This section is empty.

Types

type Allocator

type Allocator interface {
	AllocateVIP(s *types.Service) error
	ReleaseVIP(s types.Service) error
}

func New

func New(state state.State, config *config.BalancerConfig) (Allocator, error)

Init initilizes ipam module

type Ipam

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

func (*Ipam) AllocateVIP

func (i *Ipam) AllocateVIP(s *types.Service) error

Allocate allocates a new avaliable ip

func (*Ipam) ReleaseVIP

func (i *Ipam) ReleaseVIP(s types.Service) error

Release releases a allocated IP

Jump to

Keyboard shortcuts

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