(ctx context.Context, ids ...string)
| 46 | } |
| 47 | |
| 48 | func (s *imlTeamService) GetLabels(ctx context.Context, ids ...string) map[string]string { |
| 49 | if len(ids) == 0 { |
| 50 | return nil |
| 51 | } |
| 52 | list, err := s.teamStore.ListQuery(ctx, "`uuid` in (?)", []interface{}{ids}, "id") |
| 53 | if err != nil { |
| 54 | return nil |
| 55 | } |
| 56 | return utils.SliceToMapO(list, func(i *team.Team) (string, string) { |
| 57 | return i.UUID, i.Name |
| 58 | }) |
| 59 | } |
| 60 | func labelHandler(e *team.Team) []string { |
| 61 | return []string{e.Name, e.UUID, e.Description} |
| 62 | } |
nothing calls this directly
no outgoing calls
no test coverage detected