# Functions
GetAllResourceReferences returns a map of dependent resources keyed by resources type, given all resources.
GetResourceName returns the resource name for a valid xDS response type.
GetResourceName returns the resource names for a list of valid xDS response types.
GetResourceReferences returns a map of dependent resources keyed by resource type, given a map of resources.
GetResponseType returns the enumeration for a valid xDS type URL.
GetResponseTypeURL returns the type url for a valid enum.
HashResource will take a resource and create a SHA256 hash sum out of the marshaled bytes.
IndexRawResourcesByName creates a map from the resource name to the resource.
IndexResourcesByName creates a map from the resource name to the resource.
MarshalResource converts the Resource to MarshaledResource.
NewLinearCache creates a new cache.
NewResources creates a new resource group.
NewResourcesWithTTL creates a new resource group.
NewSnapshot creates a snapshot from response types and a version.
NewSnapshotCache initializes a simple cache.
NewSnapshotCacheWithHeartbeating initializes a simple cache that sends periodic heartbeat responses for resources with a TTL.
NewSnapshotWithTTLs creates a snapshot of ResourceWithTTLs.
WithInitialResources initializes the initial set of resources.
No description provided by the author
WithVersionPrefix sets a version prefix of the form "prefixN" in the version info.
# Structs
DeltaPassthroughResponse is a pre constructed xDS response that need not go through marshaling transformations.
DeltaResponseWatch is a watch record keeping both the delta request and an open channel for the delta response.
IDHash uses ID field as the node hash.
LinearCache supports collections of opaque resources.
MuxCache multiplexes across several caches using a classification function.
PassthroughResponse is a pre constructed xDS response that need not go through marshaling transformations.
RawDeltaResponse is a pre-serialized xDS response that utilizes the delta discovery request/response objects.
RawResponse is a pre-serialized xDS response containing the raw resources to be included in the final Discovery Response.
Resources is a versioned group of resources.
ResponseWatch is a watch record keeping both the request and an open channel for the response.
Snapshot is an internally consistent snapshot of xDS resources.
# Interfaces
Cache is a generic config cache with a watcher.
ConfigFetcher fetches configuration resources from cache.
ConfigWatcher requests watches for configuration resources by a node, last applied version identifier, and resource names hint.
DeltaResponse is a wrapper around Envoy's DeltaDiscoveryResponse.
NodeHash computes string identifiers for Envoy nodes.
ResourceSnapshot is an abstract snapshot of a collection of resources that can be stored in a SnapshotCache.
Response is a wrapper around Envoy's DiscoveryResponse.
SnapshotCache is a snapshot-based cache that maintains a single versioned snapshot of responses per node.
StatusInfo publishes information about nodes that are watching the xDS cache.
# Type aliases
DeltaRequest is an alias for the delta discovery request type.
Options for modifying the behavior of the linear cache.
Request is an alias for the discovery request type.