# Functions
NewControllableCacheType returns a cache.Type that can be controlled for testing.
NewManager constructs a manager from the provided agent cache.
NewTestCacheTypes creates a set of ControllableCacheTypes for all types that proxycfg will watch suitable for testing a proxycfg.State or Manager.
TestCacheWithTypes registers ControllableCacheTypes for all types that proxycfg will watch suitable for testing a proxycfg.State or Manager.
TestCerts generates a CA and Leaf suitable for returning as mock CA root/leaf cache requests.
TestConfigSnapshot returns a fully populated snapshot.
TestIntentions returns a sample intentions match result useful to mocking service discovery cache results.
TestLeafForCA generates new Leaf suitable for returning as mock CA leaf cache response, signed by an existing CA.
TestUpstreamNodes returns a sample service discovery result useful to mocking service discovery cache results.
# Variables
ErrStarted is returned from Run if the manager instance has already run.
ErrStopped is returned from Run if the manager instance has already been stopped.
# Structs
ConfigSnapshot captures all the resulting config needed for a proxy instance.
ControllableCacheType is a cache.Type that simulates a typical blocking RPC but lets us control the responses and when they are delivered easily.
Manager is a component that integrates into the agent and manages Connect proxy configuration state.
ManagerConfig holds the required external dependencies for a Manager instance.
TestCacheTypes encapsulates all the different cache types proxycfg.State will watch/request for controlling one during testing.
# Type aliases
CancelFunc is a type for a returned function that can be called to cancel a watch.