(instance params.Instance)
| 35 | } |
| 36 | |
| 37 | func (i *InstanceCache) SetInstance(instance params.Instance) { |
| 38 | i.mux.Lock() |
| 39 | defer i.mux.Unlock() |
| 40 | |
| 41 | i.cache[instance.Name] = instance |
| 42 | } |
| 43 | |
| 44 | func (i *InstanceCache) GetInstance(name string) (params.Instance, bool) { |
| 45 | i.mux.Lock() |
no test coverage detected