(entityID string, scaleSetID uint)
| 307 | } |
| 308 | |
| 309 | func (e *EntityCache) GetEntityScaleSet(entityID string, scaleSetID uint) (params.ScaleSet, bool) { |
| 310 | e.mux.Lock() |
| 311 | defer e.mux.Unlock() |
| 312 | |
| 313 | if cache, ok := e.entities[entityID]; ok { |
| 314 | if _, ok := cache.ScaleSets[scaleSetID]; ok { |
| 315 | if scaleSet, ok := e.scalesets[scaleSetID]; ok { |
| 316 | return scaleSet, true |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | return params.ScaleSet{}, false |
| 321 | } |
| 322 | |
| 323 | func (e *EntityCache) FindPoolsMatchingAllTags(entityID string, tags []string) []params.Pool { |
| 324 | e.mux.Lock() |
no test coverage detected