MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / GetAllTeams

Function GetAllTeams

pkg/cmd/tenant/shared/shared.go:95–101  ·  view source on GitHub ↗
(client client.Client)

Source from the content-addressed store, hash-verified

93}
94
95func GetAllTeams(client client.Client) ([]*teams.Team, error) {
96 res, err := client.Teams.Get(teams.TeamsQuery{IncludeSystem: true})
97 if err != nil {
98 return nil, err
99 }
100 return res.Items, nil
101}
102
103func GetAllUsers(client client.Client) ([]*users.User, error) {
104 res, err := client.Users.GetAll()

Callers 1

NewCreateOptionsFunction · 0.92

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected