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

Method GetAllPools

cache/entity_cache.go:436–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

434}
435
436func (e *EntityCache) GetAllPools() []params.Pool {
437 e.mux.Lock()
438 defer e.mux.Unlock()
439
440 var pools []params.Pool
441 for _, pool := range e.pools {
442 pools = append(pools, pool)
443 }
444 sortByCreationDate(pools)
445 return pools
446}
447
448func (e *EntityCache) GetAllScaleSets() []params.ScaleSet {
449 e.mux.Lock()

Callers 1

GetAllPoolsFunction · 0.80

Calls 3

sortByCreationDateFunction · 0.85
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected