Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/derailed/k9s
/ get
Method
get
internal/client/gvr.go:42–51 ·
view source on GitHub ↗
(gvrs string)
Source
from the content-addressed store, hash-verified
40
}
41
42
func
(c *gvrCache) get(gvrs string) *GVR {
43
c.RLock()
44
defer
c.RUnlock()
45
46
if
gvr, ok := c.data[gvrs]; ok {
47
return
gvr
48
}
49
50
return
nil
51
}
52
53
var
gvrsCache = gvrCache{
54
data: make(
map
[string]*GVR),
Callers
2
add
Method · 0.95
NewGVR
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected