(entityID string, scaleSet params.ScaleSet)
| 255 | } |
| 256 | |
| 257 | func (e *EntityCache) SetEntityScaleSet(entityID string, scaleSet params.ScaleSet) { |
| 258 | e.mux.Lock() |
| 259 | defer e.mux.Unlock() |
| 260 | |
| 261 | scaleSetEntity, err := scaleSet.GetEntity() |
| 262 | if err != nil || scaleSetEntity.ID != entityID { |
| 263 | return |
| 264 | } |
| 265 | |
| 266 | if cache, ok := e.entities[entityID]; ok { |
| 267 | e.scalesets[scaleSet.ID] = scaleSet |
| 268 | cache.ScaleSets[scaleSet.ID] = struct{}{} |
| 269 | e.entities[entityID] = cache |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | func (e *EntityCache) DeleteEntityPool(entityID string, poolID string) { |
| 274 | e.mux.Lock() |
no test coverage detected