(entityID string)
| 224 | } |
| 225 | |
| 226 | func (e *EntityCache) DeleteEntity(entityID string) { |
| 227 | e.mux.Lock() |
| 228 | defer e.mux.Unlock() |
| 229 | |
| 230 | if cache, ok := e.entities[entityID]; ok { |
| 231 | for poolID := range cache.Pools { |
| 232 | delete(e.pools, poolID) |
| 233 | } |
| 234 | for scaleSetID := range cache.ScaleSets { |
| 235 | delete(e.scalesets, scaleSetID) |
| 236 | } |
| 237 | } |
| 238 | delete(e.entities, entityID) |
| 239 | } |
| 240 | |
| 241 | func (e *EntityCache) SetEntityPool(entityID string, pool params.Pool) { |
| 242 | e.mux.Lock() |
no test coverage detected