discoveryservice

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	SetSnapshot(context.Context, string, Snapshot) error
	GetSnapshot(string) (Snapshot, error)
	ClearSnapshot(string)
	NewSnapshot() Snapshot
}

Cache is a snapshot-based cache that maintains a single versioned snapshot of responses per node. SnapshotCache consistently replies with the latest snapshot. For the protocol to work correctly in ADS mode, EDS/RDS requests are responded only when all resources in the snapshot xDS response are named as part of the request. It is expected that the CDS response names all EDS clusters, and the LDS response names all RDS routes in a snapshot, to ensure that Envoy makes the request for all EDS clusters or RDS routes eventually.

type Snapshot

type Snapshot interface {
	Consistent() error
	SetResources(envoy.Type, []envoy.Resource) Snapshot
	GetResources(envoy.Type) map[string]envoy.Resource
	GetVersion(envoy.Type) string
	SetVersion(envoy.Type, string)
}

Snapshot is an internally consistent snapshot of xDS resources. Consistency is important for the convergence as different resource types from the snapshot may be delivered to the proxy in arbitrary order.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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