cache

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexResourcesByName

func IndexResourcesByName(items []envoy_types.Resource) map[string]envoy_types.Resource

IndexResourcesByName creates a map from the resource name to the resource. Name should be unique across meshes that's why Name is <name>.<mesh>

Types

type ResourceBuilder

type ResourceBuilder interface {
}

type Snapshot

type Snapshot struct {
	Resources map[string]envoy_cache.Resources
}

Snapshot is an internally consistent snapshot of xDS resources.

func (*Snapshot) Consistent

func (s *Snapshot) Consistent() error

func (*Snapshot) GetResources

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

func (*Snapshot) GetSupportedTypes

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

func (*Snapshot) GetVersion

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

func (*Snapshot) WithVersion

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

type SnapshotBuilder

type SnapshotBuilder interface {
	With(typ string, resources []envoy_types.Resource) SnapshotBuilder
	Build(version string) util_xds.Snapshot
}

func NewSnapshotBuilder

func NewSnapshotBuilder() SnapshotBuilder

Jump to

Keyboard shortcuts

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