MCPcopy
hub / github.com/istio/istio / NumGetTokenCall

Method NumGetTokenCall

security/pkg/credentialfetcher/plugin/mock.go:93–98  ·  view source on GitHub ↗

NumGetTokenCall returns the number of token fetching request.

()

Source from the content-addressed store, hash-verified

91
92// NumGetTokenCall returns the number of token fetching request.
93func (ms *MetadataServer) NumGetTokenCall() int {
94 ms.mutex.RLock()
95 defer ms.mutex.RUnlock()
96
97 return ms.numGetTokenCall
98}
99
100// Reset resets members to default values.
101func (ms *MetadataServer) Reset() {

Callers 2

TestGCEPluginFunction · 0.80
TestTokenRotationJobFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestGCEPluginFunction · 0.64
TestTokenRotationJobFunction · 0.64