package
1.21.0-rc1
Repository: https://github.com/hashicorp/consul.git
Documentation: pkg.go.dev

# Functions

NewMockRPC creates a new instance of MockRPC.
TestFetchCh returns a channel that returns the result of the Fetch call.
TestFetchChResult tests that the result from TestFetchCh matches within a reasonable period of time (it expects it to be "immediate" but waits some milliseconds).
TestRPC returns a mock implementation of the RPC interface.

# Constants

Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
IntentionUpstreamsDestinationName Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
PeeringListName is the recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.
Recommended name for registration.

# Structs

Datacenters supports fetching discovering all the known datacenters.
CatalogListServices supports fetching discovering service names via the catalog.
CatalogServiceList supports fetching service names via the catalog.
CatalogServices supports fetching discovering service instances via the catalog.
CompiledDiscoveryChain supports fetching the complete discovery chain for a service and caching its compilation.
ConfigEntry supports fetching a single configuration entry.
ConfigEntryList supports fetching discovering configuration entries.
ConnectCARoot supports fetching the Connect CA roots.
No description provided by the author
FederationState supports fetching federation states.
GatewayUpstreams supports fetching upstreams for a given gateway name.
HealthServices supports fetching discovering service instances via the catalog.
IntentionMatch supports fetching the intentions via match queries.
IntentionUpstreams supports fetching upstreams for a given service name.
IntentionUpstreamsDestination supports fetching upstreams for a given gateway name.
InternalServiceDump supports fetching discovering service names via the catalog.
MockRPC is an autogenerated mock type for the RPC type.
NodeServices supports fetching discovering service instances via the catalog.
PeeredUpstreams supports fetching imported upstream candidates of a given partition.
PeeringListRequest represents the combination of request payload and options that would normally be sent over headers.
Peerings supports fetching the list of peers for a given partition or wildcard-specifier.
PreparedQuery supports fetching discovering service instances via prepared queries.
No description provided by the author
RegisterOptionsBlockingRefresh can be embedded into a struct to implement part of the agent/cache.Type interface.
RegisterOptionsNoRefresh can be embedded into a struct to implement part of the agent/cache.Type interface.
ResolvedServiceConfig supports fetching the config for a service resolved from the global proxy defaults and the centrally registered service config.
GatewayUpstreams supports fetching upstreams for a given gateway name.
ServiceHTTPBasedChecks supports fetching discovering checks in the local state.
ServiceHTTPChecksRequest is the cache.Request implementation for the ServiceHTTPBasedChecks cache type.
TrustBundle supports fetching discovering service instances via prepared queries.
TrustBundleListRequest represents the combination of request payload and options that would normally be sent over headers.
TrustBundleReadRequest represents the combination of request payload and options that would normally be sent over headers.
TrustBundles supports fetching discovering service instances via prepared queries.

# Interfaces

No description provided by the author
go:generate mockery --name PeeringLister --inpackage --filename mock_PeeringLister_test.go.
RPC is an interface that an RPC client must implement.
go:generate mockery --name TrustBundleLister --inpackage --filename mock_TrustBundleLister_test.go.
go:generate mockery --name TrustBundleReader --inpackage --filename mock_TrustBundleReader_test.go.