MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / ListAllTeamNames

Method ListAllTeamNames

cli/internal/team/team.go:82–92  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

80}
81
82func (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
94func (c *Client) GetTeam(ctx context.Context, team string) (*Team, error) {
95 resp, err := c.api.GetTeamByNameWithResponse(ctx, team)

Callers

nothing calls this directly

Calls 1

ListAllTeamsMethod · 0.95

Tested by

no test coverage detected