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 ¶
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) GetSupportedTypes ¶
GetSupportedTypes returns a list of xDS types supported by this snapshot.
func (*Snapshot) GetVersion ¶
GetVersion returns the version for a resource type.
Click to show internal directories.
Click to hide internal directories.