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

Method SetClient

cache/github_client.go:37–42  ·  view source on GitHub ↗
(entityID string, client common.GithubClient)

Source from the content-addressed store, hash-verified

35}
36
37func (g *GithubClientCache) SetClient(entityID string, client common.GithubClient) {
38 g.mux.Lock()
39 defer g.mux.Unlock()
40
41 g.cache[entityID] = client
42}
43
44func (g *GithubClientCache) GetClient(entityID string) (common.GithubClient, bool) {
45 g.mux.Lock()

Callers 1

SetGithubClientFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected