envoy

package
v0.0.0-...-1581578 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

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

Compiler represents a repeatedly executed compilation job

func NewCompiler

func NewCompiler(name, namespace, suffix string) (*Compiler, error)

NewCompiler instantiates a jsonnet compiler

func (*Compiler) Snapshot

func (g *Compiler) Snapshot(version int) cache.Snapshot

Snapshot ...

func (*Compiler) Update

func (g *Compiler) Update(services []*model.Service, instance model.Instance, instances map[string][]model.Endpoint) (bool, error)

Update re-compiles if necessary and returns true only then

type Generator

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

Generator produces envoy configs

func NewKubeGenerator

func NewKubeGenerator(kubeconfig string) (*Generator, error)

func (*Generator) Cache

func (g *Generator) Cache() cache.Cache

Cache ...

func (*Generator) Errorf

func (g *Generator) Errorf(format string, args ...interface{})

Errorf ...

func (*Generator) ID

func (g *Generator) ID(node *core.Node) string

ID ...

func (*Generator) Infof

func (g *Generator) Infof(format string, args ...interface{})

Infof ...

func (*Generator) OnFetchRequest

func (g *Generator) OnFetchRequest(req *v2.DiscoveryRequest)

OnFetchRequest ...

func (*Generator) OnFetchResponse

func (g *Generator) OnFetchResponse(req *v2.DiscoveryRequest, resp *v2.DiscoveryResponse)

OnFetchResponse ...

func (*Generator) OnStreamClosed

func (g *Generator) OnStreamClosed(int64)

OnStreamClosed ...

func (*Generator) OnStreamOpen

func (g *Generator) OnStreamOpen(int64, string)

OnStreamOpen ...

func (*Generator) OnStreamRequest

func (g *Generator) OnStreamRequest(id int64, req *v2.DiscoveryRequest)

OnStreamRequest ...

func (*Generator) OnStreamResponse

func (g *Generator) OnStreamResponse(int64, *v2.DiscoveryRequest, *v2.DiscoveryResponse)

OnStreamResponse ...

func (*Generator) Run

func (g *Generator) Run(stop <-chan struct{})

Run ...

func (*Generator) Update

func (g *Generator) Update()

Update ...

func (*Generator) UpdateInstances

func (g *Generator) UpdateInstances()

UpdateInstances ...

func (*Generator) UpdateNode

func (g *Generator) UpdateNode(key string)

UpdateNode ...

func (*Generator) UpdateServices

func (g *Generator) UpdateServices()

UpdateServices ...

Jump to

Keyboard shortcuts

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