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

Method DeleteTemplate

cache/template_cache.go:58–63  ·  view source on GitHub ↗
(id uint)

Source from the content-addressed store, hash-verified

56}
57
58func (t *TemplateCache) DeleteTemplate(id uint) {
59 t.mux.Lock()
60 defer t.mux.Unlock()
61
62 delete(t.cache, id)
63}
64
65func SetTemplateCache(tpl params.Template) {
66 templateCache.SetTemplateCache(tpl)

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected