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

Function SetEntityPool

cache/entity_cache.go:516–518  ·  view source on GitHub ↗
(entityID string, pool params.Pool)

Source from the content-addressed store, hash-verified

514}
515
516func SetEntityPool(entityID string, pool params.Pool) {
517 entityCache.SetEntityPool(entityID, pool)
518}
519
520func SetEntityScaleSet(entityID string, scaleSet params.ScaleSet) {
521 entityCache.SetEntityScaleSet(entityID, scaleSet)

Callers 15

SetupTestMethod · 0.92
handlePoolEventMethod · 0.92
TestSetGetEntityCacheMethod · 0.85
TestSetEntityPoolMethod · 0.85
TestDeleteEntityPoolMethod · 0.85
TestGetEntityPoolsMethod · 0.85
TestGetEntityPoolMethod · 0.85
TestGetAllPoolsMethod · 0.85
TestGetEntityForPoolMethod · 0.85

Calls 1

SetEntityPoolMethod · 0.80

Tested by 15

SetupTestMethod · 0.74
TestSetGetEntityCacheMethod · 0.68
TestSetEntityPoolMethod · 0.68
TestDeleteEntityPoolMethod · 0.68
TestGetEntityPoolsMethod · 0.68
TestGetEntityPoolMethod · 0.68
TestGetAllPoolsMethod · 0.68
TestGetEntityForPoolMethod · 0.68
TestGetPoolByIDMethod · 0.68