Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
58
func
(t *TemplateCache) DeleteTemplate(id uint) {
59
t.mux.Lock()
60
defer
t.mux.Unlock()
61
62
delete(t.cache, id)
63
}
64
65
func
SetTemplateCache(tpl params.Template) {
66
templateCache.SetTemplateCache(tpl)
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected