MCPcopy 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
47func (r *runnerEntry) SetInstance(inst params.Instance) {
48 r.mux.Lock()
49 defer r.mux.Unlock()
50 r.instance = inst
51}
52
53func (r *runnerEntry) Stop() error {
54 r.mux.Lock()

Callers 2

handleInstanceAddedMethod · 0.95
handleInstanceEventMethod · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected