Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexResourcesByName

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

    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) GetResourcesAndTtl

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

      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

      Source Files