MCPcopy Create free account
hub / github.com/anchordotdev/cli / GetOrgs

Method GetOrgs

api/api.go:301–307  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

299}
300
301func (s *Session) GetOrgs(ctx context.Context) ([]Organization, error) {
302 var orgs Organizations
303 if err := s.get(ctx, "/orgs", &orgs); err != nil {
304 return nil, err
305 }
306 return orgs.Items, nil
307}
308
309func getOrgRealmsPath(orgApid string) string {
310 return "/orgs/" + url.QueryEscape(orgApid) + "/realms"

Callers 9

orgAPIDMethod · 0.80
orgAPIDMethod · 0.80
FetchLocalDevCAsFunction · 0.80
orgAPIDMethod · 0.80
TestSelectorFunction · 0.80
orgAPIDMethod · 0.80
orgAPIDMethod · 0.80
orgAPIDMethod · 0.80
orgAPIDMethod · 0.80

Calls 1

getMethod · 0.95

Tested by 1

TestSelectorFunction · 0.64