(ctx context.Context, orgSlug string, filters ...Filter[Service])
| 323 | } |
| 324 | |
| 325 | func (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 | |
| 333 | func getServicePath(orgSlug, serviceSlug string) string { |
| 334 | return "/orgs/" + url.QueryEscape(orgSlug) + "/services/" + url.QueryEscape(serviceSlug) |
no test coverage detected