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

Struct EntityCache

cache/entity_cache.go:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46type EntityCache struct {
47 mux sync.Mutex
48 // entity IDs are UUID4s. It is highly unlikely they will collide (🤞).
49 entities map[string]EntityItem
50 pools map[string]params.Pool
51 scalesets map[uint]params.ScaleSet
52}
53
54func (e *EntityCache) GetEntityForScaleSet(scaleSetID uint) (params.ForgeEntity, bool) {
55 e.mux.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected