(ctx context.Context)
| 80 | } |
| 81 | |
| 82 | func (c *Client) ListAllTeamNames(ctx context.Context) ([]string, error) { |
| 83 | teams, err := c.ListAllTeams(ctx) |
| 84 | if err != nil { |
| 85 | return nil, err |
| 86 | } |
| 87 | names := make([]string, 0, len(teams)) |
| 88 | for _, t := range teams { |
| 89 | names = append(names, t.Name) |
| 90 | } |
| 91 | return names, nil |
| 92 | } |
| 93 | |
| 94 | func (c *Client) GetTeam(ctx context.Context, team string) (*Team, error) { |
| 95 | resp, err := c.api.GetTeamByNameWithResponse(ctx, team) |
nothing calls this directly
no test coverage detected