MCPcopy
hub / github.com/cilium/cilium / NewRemoteCache

Method NewRemoteCache

pkg/allocator/allocator.go:1094–1102  ·  view source on GitHub ↗
(remoteName string, remoteAlloc *Allocator)

Source from the content-addressed store, hash-verified

1092}
1093
1094func (a *Allocator) NewRemoteCache(remoteName string, remoteAlloc *Allocator) RemoteIDCache {
1095 return &remoteCache{
1096 name: remoteName,
1097 allocator: remoteAlloc,
1098 cache: &remoteAlloc.mainCache,
1099
1100 watchFunc: a.watchRemoteKVStore,
1101 }
1102}
1103
1104// watchRemoteKVStore starts watching an allocator base prefix the kvstore
1105// represents by the provided backend. A local cache of all identities of that

Callers 3

TestWatchRemoteKVStoreFunction · 0.95
TestRemoteCacheFunction · 0.95
WatchRemoteIdentitiesMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestWatchRemoteKVStoreFunction · 0.76
TestRemoteCacheFunction · 0.76