(ctx context.Context, ids ...string)
| 57 | } |
| 58 | |
| 59 | func (s *imlClusterService) ListByClusters(ctx context.Context, ids ...string) ([]*Cluster, error) { |
| 60 | wm := make(map[string]interface{}) |
| 61 | |
| 62 | if len(ids) > 0 { |
| 63 | wm["uuid"] = ids |
| 64 | } |
| 65 | list, err := s.store.List(ctx, wm, "update_at desc") |
| 66 | if err != nil { |
| 67 | return nil, err |
| 68 | } |
| 69 | return utils.SliceToSlice(list, FromEntity), nil |
| 70 | } |
| 71 | |
| 72 | func (s *imlClusterService) GetLabels(ctx context.Context, ids ...string) map[string]string { |
| 73 | if len(ids) == 0 { |