MCPcopy 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
496func GetEntity(entityID string) (params.ForgeEntity, bool) {
497 return entityCache.GetEntity(entityID)
498}
499
500func SetEntity(entity params.ForgeEntity) {
501 entityCache.SetEntity(entity)

Callers 15

handleEntityEventMethod · 0.92
updateToolsMethod · 0.92
GetEntityForInstanceMethod · 0.85
TestSetGetEntityCacheMethod · 0.85
TestDeleteEntityMethod · 0.85
TestSetEntityPoolMethod · 0.85
TestSetEntityScaleSetMethod · 0.85
TestDeleteEntityPoolMethod · 0.85

Calls 1

GetEntityMethod · 0.65

Tested by 15

TestSetGetEntityCacheMethod · 0.68
TestDeleteEntityMethod · 0.68
TestSetEntityPoolMethod · 0.68
TestSetEntityScaleSetMethod · 0.68
TestDeleteEntityPoolMethod · 0.68
TestGetEntityPoolsMethod · 0.68
TestGetEntityScaleSetMethod · 0.68
TestGetEntityPoolMethod · 0.68