cache

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 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 Snapshot

type Snapshot struct {
	MonitoringAssignments envoy_cache.Resources
}

Snapshot is an internally consistent snapshot of xDS resources.

func NewSnapshot

func NewSnapshot(version string, assignments map[string]envoy_types.Resource) *Snapshot

NewSnapshot creates a snapshot from response types and a version.

func (*Snapshot) Consistent

func (s *Snapshot) Consistent() error

Consistent check verifies that the dependent resources are exactly listed in the snapshot.

func (*Snapshot) GetResources

func (s *Snapshot) GetResources(typ string) map[string]envoy_types.Resource

GetResources selects snapshot resources by type.

func (*Snapshot) GetResourcesAndTtl

func (s *Snapshot) GetResourcesAndTtl(typ string) map[string]envoy_types.ResourceWithTTL

func (*Snapshot) GetSupportedTypes

func (s *Snapshot) GetSupportedTypes() []string

GetSupportedTypes returns a list of xDS types supported by this snapshot.

func (*Snapshot) GetVersion

func (s *Snapshot) GetVersion(typ string) string

GetVersion returns the version for a resource type.

func (*Snapshot) WithVersion

func (s *Snapshot) WithVersion(typ string, version string) util_xds_v3.Snapshot

WithVersion creates a new snapshot with a different version for a given resource type.

Jump to

Keyboard shortcuts

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