(name string)
| 42 | } |
| 43 | |
| 44 | func (i *InstanceCache) GetInstance(name string) (params.Instance, bool) { |
| 45 | i.mux.Lock() |
| 46 | defer i.mux.Unlock() |
| 47 | |
| 48 | if instance, ok := i.cache[name]; ok { |
| 49 | return instance, true |
| 50 | } |
| 51 | return params.Instance{}, false |
| 52 | } |
| 53 | |
| 54 | func (i *InstanceCache) DeleteInstance(name string) { |
| 55 | i.mux.Lock() |
no test coverage detected