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

Function cacheKey

plugin/pkg/client/auth/exec/exec.go:79–81  ·  view source on GitHub ↗
(c *api.ExecConfig)

Source from the content-addressed store, hash-verified

77var spewConfig = &spew.ConfigState{DisableMethods: true, Indent: " "}
78
79func cacheKey(c *api.ExecConfig) string {
80 return spewConfig.Sprint(c)
81}
82
83type cache struct {
84 mu sync.Mutex

Callers 2

TestCacheKeyFunction · 0.70
newAuthenticatorFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestCacheKeyFunction · 0.56