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

Method GetOrgRealms

api/api.go:313–319  ·  view source on GitHub ↗
(ctx context.Context, orgApid string)

Source from the content-addressed store, hash-verified

311}
312
313func (s *Session) GetOrgRealms(ctx context.Context, orgApid string) ([]Realm, error) {
314 var realms Realms
315 if err := s.get(ctx, getOrgRealmsPath(orgApid), &realms); err != nil {
316 return nil, err
317 }
318 return realms.Items, nil
319}
320
321func getOrgServicesPath(orgSlug string) string {
322 return "/orgs/" + url.QueryEscape(orgSlug) + "/services"

Callers 8

realmAPIDMethod · 0.80
realmAPIDMethod · 0.80
FetchLocalDevCAsFunction · 0.80
realmAPIDMethod · 0.80
realmAPIDMethod · 0.80
realmAPIDMethod · 0.80
realmAPIDMethod · 0.80
realmAPIDMethod · 0.80

Calls 2

getMethod · 0.95
getOrgRealmsPathFunction · 0.85

Tested by

no test coverage detected