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

Method GetOrgServices

api/api.go:325–331  ·  view source on GitHub ↗
(ctx context.Context, orgSlug string, filters ...Filter[Service])

Source from the content-addressed store, hash-verified

323}
324
325func (s *Session) GetOrgServices(ctx context.Context, orgSlug string, filters ...Filter[Service]) ([]Service, error) {
326 var svc Services
327 if err := s.get(ctx, getOrgServicesPath(orgSlug), &svc); err != nil {
328 return nil, err
329 }
330 return Filters[Service](filters).Apply(svc.Items), nil
331}
332
333func getServicePath(orgSlug, serviceSlug string) string {
334 return "/orgs/" + url.QueryEscape(orgSlug) + "/services/" + url.QueryEscape(serviceSlug)

Callers 5

serviceAPIDMethod · 0.80
serviceAPIDMethod · 0.80
getDiagnosticServiceMethod · 0.80
serviceAPIDMethod · 0.80
serviceAPIDMethod · 0.80

Calls 3

getMethod · 0.95
getOrgServicesPathFunction · 0.85
ApplyMethod · 0.45

Tested by

no test coverage detected