Documentation
¶
Index ¶
- type Snapshot
- func (s *Snapshot) Consistent() error
- func (s *Snapshot) GetResources(typ string) map[string]envoy_types.Resource
- func (s *Snapshot) GetResourcesAndTtl(typ string) map[string]envoy_types.ResourceWithTtl
- func (s *Snapshot) GetSupportedTypes() []string
- func (s *Snapshot) GetVersion(typ string) string
- func (s *Snapshot) WithVersion(typ string, version string) util_xds_v3.Snapshot
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 ¶
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 ¶
GetSupportedTypes returns a list of xDS types supported by this snapshot.
func (*Snapshot) GetVersion ¶
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.
Click to show internal directories.
Click to hide internal directories.