Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudbase/garm
/ GetEntity
Function
GetEntity
cache/entity_cache.go:496–498 ·
view source on GitHub ↗
(entityID string)
Source
from the content-addressed store, hash-verified
494
}
495
496
func
GetEntity(entityID string) (params.ForgeEntity, bool) {
497
return
entityCache.GetEntity(entityID)
498
}
499
500
func
SetEntity(entity params.ForgeEntity) {
501
entityCache.SetEntity(entity)
Callers
15
handleEntityEvent
Method · 0.92
updateTools
Method · 0.92
GetEntityForInstance
Method · 0.85
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
GetEntity
Method · 0.65
Tested by
15
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
TestGetEntityPool
Method · 0.68