(orgID, username, passwordHash string, passthrough *bool, maxVCPUs *int)
| 123 | return true, nil |
| 124 | } |
| 125 | |
| 126 | func (s *fakeAPIStore) seedTeam(team configstore.OrgTeam) { |
| 127 | if s.teams[team.OrgID] == nil { |
| 128 | s.teams[team.OrgID] = make(map[int64]*configstore.OrgTeam) |
| 129 | } |
| 130 | clone := team |
| 131 | s.teams[team.OrgID][team.TeamID] = &clone |
| 132 | } |
| 133 | |
| 134 | func (s *fakeAPIStore) ListAllOrgTeams() ([]configstore.OrgTeam, error) { |
| 135 | var out []configstore.OrgTeam |
| 136 | for _, orgTeams := range s.teams { |
| 137 | for _, t := range orgTeams { |
| 138 | out = append(out, *t) |
| 139 | } |
| 140 | } |
| 141 | sort.Slice(out, func(i, j int) bool { |
| 142 | if out[i].OrgID != out[j].OrgID { |
| 143 | return out[i].OrgID < out[j].OrgID |
| 144 | } |
| 145 | return out[i].TeamID < out[j].TeamID |
nothing calls this directly
no outgoing calls
no test coverage detected