v2

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	envoylog.Logger
	envoyserver.Callbacks
	envoycache.NodeHash

	Ready() bool
	Run(threadiness int) error
	XDSCache() envoycache.Cache
	SetXDSCacheSnapshot(id string, endpoints, clusters, routes, listeners []envoycache.Resource) error
	ClearXDSCacheSnapshot(id string) error
	SystemServices(serviceCluster string) (map[tree.Path]*Service, error)
}

type CacheUpdateTask

type CacheUpdateTask struct {
	Name  string     `json:"name"`
	Type  EntityType `json:"type"`
	Event Event      `json:"event"`
}

type Component

type Component struct {
	// Ports maps the Component's ports to their envoy ports.
	Ports map[int32]ListenerPort
}

type EntityType

type EntityType int
const (
	EnvoyEntityType EntityType = iota
	LatticeEntityType
)

func (EntityType) String

func (t EntityType) String() string

type Event

type Event int
const (
	InformerAddEvent Event = iota
	InformerUpdateEvent
	InformerDeleteEvent

	EnvoyStreamRequestEvent
)

func (Event) String

func (e Event) String() string

type ListenerPort

type ListenerPort struct {
	Port     int32
	Protocol string
}

type Service

type Service struct {
	EgressPorts envoy.EnvoyEgressPorts
	Components  map[string]Component
	ServiceIP   string
	EndpointIPs []string
}

Directories

Path Synopsis
backend

Jump to

Keyboard shortcuts

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