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

Method GetAllScaleSets

cache/entity_cache.go:448–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446}
447
448func (e *EntityCache) GetAllScaleSets() []params.ScaleSet {
449 e.mux.Lock()
450 defer e.mux.Unlock()
451
452 var scaleSets []params.ScaleSet
453 for _, scaleSet := range e.scalesets {
454 scaleSets = append(scaleSets, scaleSet)
455 }
456 sortByID(scaleSets)
457 return scaleSets
458}
459
460func (e *EntityCache) SetEntityRunnerGroup(entityID, runnerGroupName string, runnerGroupID int64) {
461 e.mux.Lock()

Callers 1

GetAllScaleSetsFunction · 0.80

Calls 3

sortByIDFunction · 0.85
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected