MCPcopy
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
42func (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
53var gvrsCache = gvrCache{
54 data: make(map[string]*GVR),

Callers 2

addMethod · 0.95
NewGVRFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected