fake

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// define Upstream type name
	UpstreamTypeFake = "fake"
)

Variables

View Source
var FakeEndpointDiscovery = FakeED{
	EndpointGroups: make(chan endpointdiscovery.EndpointGroups, 100),
	Errors:         make(chan error, 100),
}

Functions

func EncodeUpstreamSpec

func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct

Types

type FakeED

type FakeED struct {
	EndpointGroups chan endpointdiscovery.EndpointGroups
	Errors         chan error
}

func (*FakeED) Endpoints

func (fed *FakeED) Endpoints() <-chan endpointdiscovery.EndpointGroups

func (*FakeED) Error

func (fed *FakeED) Error() <-chan error

func (*FakeED) Run

func (fed *FakeED) Run(stop <-chan struct{})

func (*FakeED) TrackUpstreams

func (fed *FakeED) TrackUpstreams(upstreams []*v1.Upstream)

type Plugin

type Plugin struct{}

func (*Plugin) GetDependencies

func (p *Plugin) GetDependencies(_ *v1.Config) *plugins.Dependencies

func (*Plugin) Init added in v0.4.2

func (p *Plugin) Init(options bootstrap.Options) error

func (*Plugin) ProcessUpstream

func (p *Plugin) ProcessUpstream(_ *plugins.UpstreamPluginParams, in *v1.Upstream, out *envoyapi.Cluster) error

func (*Plugin) SetupEndpointDiscovery

func (p *Plugin) SetupEndpointDiscovery() (endpointdiscovery.Interface, error)

type UpstreamSpec

type UpstreamSpec = static.UpstreamSpec

func DecodeUpstreamSpec

func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)

Jump to

Keyboard shortcuts

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