Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudbase/garm
/ SetInstance
Method
SetInstance
workers/provider/provider.go:47–51 ·
view source on GitHub ↗
(inst params.Instance)
Source
from the content-addressed store, hash-verified
45
}
46
47
func
(r *runnerEntry) SetInstance(inst params.Instance) {
48
r.mux.Lock()
49
defer
r.mux.Unlock()
50
r.instance = inst
51
}
52
53
func
(r *runnerEntry) Stop() error {
54
r.mux.Lock()
Callers
2
handleInstanceAdded
Method · 0.95
handleInstanceEvent
Method · 0.45
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected