(ctx context.Context, partitionId string)
| 31 | } |
| 32 | |
| 33 | func (i *imlMonitorService) GetByCluster(ctx context.Context, partitionId string) (*Monitor, error) { |
| 34 | info, err := i.store.First(ctx, map[string]interface{}{ |
| 35 | "cluster": partitionId, |
| 36 | }) |
| 37 | if err != nil { |
| 38 | return nil, err |
| 39 | } |
| 40 | return &Monitor{ |
| 41 | ID: info.UUID, |
| 42 | Cluster: info.Cluster, |
| 43 | Driver: info.Driver, |
| 44 | Config: info.Config, |
| 45 | Creator: info.Creator, |
| 46 | Updater: info.Updater, |
| 47 | CreateAt: info.CreateAt, |
| 48 | UpdateAt: info.UpdateAt, |
| 49 | }, nil |
| 50 | } |
| 51 | |
| 52 | func (i *imlMonitorService) Get(ctx context.Context, id string) (*Monitor, error) { |
| 53 | info, err := i.store.First(ctx, map[string]interface{}{ |
nothing calls this directly
no outgoing calls
no test coverage detected