MCPcopy
hub / github.com/istio/istio / Run

Method Run

pilot/pkg/model/xds_cache.go:38–38  ·  view source on GitHub ↗

Run starts a background thread to flush evicted indexes periodically.

(stop <-chan struct{})

Source from the content-addressed store, hash-verified

36type XdsCache interface {
37 // Run starts a background thread to flush evicted indexes periodically.
38 Run(stop <-chan struct{})
39 // Add adds the given XdsCacheEntry with the value for the given pushContext to the cache.
40 // If the cache has been updated to a newer push context, the write will be dropped silently.
41 // This ensures stale data does not overwrite fresh data when dealing with concurrent

Callers 15

BenchmarkCacheFunction · 0.95
TestSecretsControllerFunction · 0.65
TestDockerCredentialsFunction · 0.65
TestForClusterFunction · 0.65
TestAuthorizeFunction · 0.65
RunMethod · 0.65
RunMethod · 0.65
RunMethod · 0.65
TestPrioritizationCyclesFunction · 0.65
testTryAcquireOrRenewFunction · 0.65

Implementers 2

XdsCacheImplpilot/pkg/model/xds_cache.go
DisabledCachepilot/pkg/model/xds_cache.go

Calls

no outgoing calls

Tested by 15

BenchmarkCacheFunction · 0.76
TestSecretsControllerFunction · 0.52
TestDockerCredentialsFunction · 0.52
TestForClusterFunction · 0.52
TestAuthorizeFunction · 0.52
TestPrioritizationCyclesFunction · 0.52
testTryAcquireOrRenewFunction · 0.52
testReleaseLeaseFunction · 0.52
TestIsExpectedGRPCErrorFunction · 0.52
Test_command_doFunction · 0.52