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

Method DeleteEntityScaleSet

cache/entity_cache.go:284–293  ·  view source on GitHub ↗
(entityID string, scaleSetID uint)

Source from the content-addressed store, hash-verified

282}
283
284func (e *EntityCache) DeleteEntityScaleSet(entityID string, scaleSetID uint) {
285 e.mux.Lock()
286 defer e.mux.Unlock()
287
288 if cache, ok := e.entities[entityID]; ok {
289 delete(cache.ScaleSets, scaleSetID)
290 e.entities[entityID] = cache
291 }
292 delete(e.scalesets, scaleSetID)
293}
294
295func (e *EntityCache) GetEntityPool(entityID string, poolID string) (params.Pool, bool) {
296 e.mux.Lock()

Callers 1

DeleteEntityScaleSetFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected