MCPcopy Create free account
hub / github.com/cloudbase/garm / GetCredentials

Method GetCredentials

cache/credentials_cache.go:79–87  ·  view source on GitHub ↗
(id uint)

Source from the content-addressed store, hash-verified

77}
78
79func (g *CredentialCache) GetCredentials(id uint) (params.ForgeCredentials, bool) {
80 g.mux.Lock()
81 defer g.mux.Unlock()
82
83 if creds, ok := g.cache[id]; ok {
84 return creds, true
85 }
86 return params.ForgeCredentials{}, false
87}
88
89func (g *CredentialCache) DeleteCredentials(id uint) {
90 g.mux.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected