package
0.9.7
Repository: https://github.com/asishrs/go-control-plane.git
Documentation: pkg.go.dev

# Functions

GetResourceName returns the resource name for a valid xDS response type.
GetResourceReferences returns the names for dependent resources (EDS cluster names for CDS, RDS routes names for LDS).
GetResponseType returns the enumeration for a valid xDS type URL.
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.
NewSnapshot creates a snapshot from response types and a version.
NewSnapshotCache initializes a simple cache.
WithInitialResources initializes the initial set of resources.
WithVersionPrefix sets a version prefix of the form "prefixN" in the version info.

# Structs

IDHash uses ID field as the node hash.
LinearCache supports collectons of opaque resources.
MuxCache multiplexes across several caches using a classification function.
PassthroughResponse is a pre constructed xDS response that need not go through marshalling transformations.
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.
ConfigWatcher requests watches for configuration resources by a node, last applied version identifier, and resource names hint.
NodeHash computes string identifiers for Envoy nodes.
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 tracks the server state for the remote Envoy node.

# Type aliases

Options for modifying the behavior of the linear cache.
Request is an alias for the discovery request type.