proxy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter added in v1.0.0

type Adapter interface {
	Start() error
	Stop() error
}

Adapter interface for proxy implementations.

type EnvoyAdapter added in v1.0.0

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

EnvoyAdapter manages an Envoy based proxy.

func NewEnvoyAdapter added in v1.0.0

func NewEnvoyAdapter(conf *config.Config, discoveryMonitor monitor.DiscoveryMonitor,
	identity identity.Provider, rulesMonitor monitor.RulesMonitor,
	discoveryClient api.ServiceDiscovery, rulesClient api.RulesService) (*EnvoyAdapter, error)

NewEnvoyAdapter creates a new adapter instance.

func (*EnvoyAdapter) CatalogChange added in v1.0.0

func (a *EnvoyAdapter) CatalogChange(instances []api.ServiceInstance) error

CatalogChange updates on a change in the catalog.

func (*EnvoyAdapter) RuleChange added in v1.0.0

func (a *EnvoyAdapter) RuleChange(rules []api.Rule) error

RuleChange updates Envoy on a change in the proxy configuration.

func (*EnvoyAdapter) Start added in v1.0.0

func (a *EnvoyAdapter) Start() error

Start Envoy proxy.

func (*EnvoyAdapter) Stop added in v1.0.0

func (a *EnvoyAdapter) Stop() error

Stop Envoy proxy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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