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

Function SetEntity

cache/entity_cache.go:500–502  ·  view source on GitHub ↗
(entity params.ForgeEntity)

Source from the content-addressed store, hash-verified

498}
499
500func SetEntity(entity params.ForgeEntity) {
501 entityCache.SetEntity(entity)
502}
503
504func ReplaceEntityPools(entityID string, pools []params.Pool) {
505 entityCache.ReplaceEntityPools(entityID, pools)

Callers 15

SetupTestMethod · 0.92
setCacheForEntityMethod · 0.92
handleEntityEventMethod · 0.92
TestSetGetEntityCacheMethod · 0.85
TestDeleteEntityMethod · 0.85
TestSetEntityPoolMethod · 0.85
TestSetEntityScaleSetMethod · 0.85
TestDeleteEntityPoolMethod · 0.85

Calls 1

SetEntityMethod · 0.80

Tested by 15

SetupTestMethod · 0.74
TestSetGetEntityCacheMethod · 0.68
TestDeleteEntityMethod · 0.68
TestSetEntityPoolMethod · 0.68
TestSetEntityScaleSetMethod · 0.68
TestDeleteEntityPoolMethod · 0.68
TestGetEntityPoolsMethod · 0.68
TestGetEntityScaleSetMethod · 0.68