MCPcopy
hub / github.com/kubernetes/client-go / LastSyncResourceVersion

Method LastSyncResourceVersion

tools/cache/reflector.go:391–395  ·  view source on GitHub ↗

LastSyncResourceVersion is the resource version observed when last sync with the underlying store The value returned is not synchronized with access to the underlying store and is not thread-safe

()

Source from the content-addressed store, hash-verified

389// LastSyncResourceVersion is the resource version observed when last sync with the underlying store
390// The value returned is not synchronized with access to the underlying store and is not thread-safe
391func (r *Reflector) LastSyncResourceVersion() string {
392 r.lastSyncResourceVersionMutex.RLock()
393 defer r.lastSyncResourceVersionMutex.RUnlock()
394 return r.lastSyncResourceVersion
395}
396
397func (r *Reflector) setLastSyncResourceVersion(v string) {
398 r.lastSyncResourceVersionMutex.Lock()

Callers 1

Calls

no outgoing calls

Tested by 1