reconciler

package
v0.0.0-...-7333c93 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler interface {
	Start() error
	Stop()
	Sync()
}

Reconciler reconciles store with local IPVS state.

func New

func New(period time.Duration, store Store, ipvs ipvs.IPVS) Reconciler

New returns a reconciler that populates the ipvs state periodically and on demand.

func NewStub

func NewStub() Reconciler

NewStub returns a reconciler which doesn't do anything.

type Store

type Store interface {
	ListServices(context.Context) ([]*types.VirtualService, error)
	ListServers(ctx context.Context, serviceID string) ([]*types.RealServer, error)
}

Store expected store interface for reconciler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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