Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
500
func
SetEntity(entity params.ForgeEntity) {
501
entityCache.SetEntity(entity)
502
}
503
504
func
ReplaceEntityPools(entityID string, pools []params.Pool) {
505
entityCache.ReplaceEntityPools(entityID, pools)
Callers
15
SetupTest
Method · 0.92
setCacheForEntity
Method · 0.92
handleEntityEvent
Method · 0.92
TestSetGetEntityCache
Method · 0.85
TestReplaceEntityPools
Method · 0.85
TestReplaceEntityScaleSets
Method · 0.85
TestDeleteEntity
Method · 0.85
TestSetEntityPool
Method · 0.85
TestSetEntityScaleSet
Method · 0.85
TestDeleteEntityPool
Method · 0.85
TestDeleteEntityScaleSet
Method · 0.85
TestFindPoolsMatchingAllTags
Method · 0.85
Calls
1
SetEntity
Method · 0.80
Tested by
15
SetupTest
Method · 0.74
TestSetGetEntityCache
Method · 0.68
TestReplaceEntityPools
Method · 0.68
TestReplaceEntityScaleSets
Method · 0.68
TestDeleteEntity
Method · 0.68
TestSetEntityPool
Method · 0.68
TestSetEntityScaleSet
Method · 0.68
TestDeleteEntityPool
Method · 0.68
TestDeleteEntityScaleSet
Method · 0.68
TestFindPoolsMatchingAllTags
Method · 0.68
TestGetEntityPools
Method · 0.68
TestGetEntityScaleSet
Method · 0.68