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

Method getProviderBaseParams

runner/pool/pool.go:164–172  ·  view source on GitHub ↗
(pool params.Pool)

Source from the content-addressed store, hash-verified

162}
163
164func (r *basePoolManager) getProviderBaseParams(pool params.Pool) common.ProviderBaseParams {
165 r.mux.Lock()
166 defer r.mux.Unlock()
167
168 return common.ProviderBaseParams{
169 PoolInfo: pool,
170 ControllerInfo: r.controllerInfo,
171 }
172}
173
174// isEntityPool checks if a pool belongs to this manager's entity
175func (r *basePoolManager) isEntityPool(pool params.Pool) bool {

Callers 3

addInstanceToProviderMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected