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 (*Snapshot) GetResources ¶
func (s *Snapshot) GetResources(typ string) map[string]envoy_types.Resource
func (*Snapshot) GetSupportedTypes ¶
func (*Snapshot) GetVersion ¶
type SnapshotBuilder ¶
type SnapshotBuilder interface { With(typ string, resources []envoy_types.Resource) SnapshotBuilder Build(version string) util_xds.Snapshot }
func NewSnapshotBuilder ¶
func NewSnapshotBuilder() SnapshotBuilder
Click to show internal directories.
Click to hide internal directories.