(httpClient *http.Client, orgLogin string, databaseId string, host string)
| 18 | } |
| 19 | |
| 20 | func viewOrgRuleset(httpClient *http.Client, orgLogin string, databaseId string, host string) (*shared.RulesetREST, error) { |
| 21 | path, err := safeurl.JoinPath("orgs", orgLogin, "rulesets", databaseId) |
| 22 | if err != nil { |
| 23 | return nil, err |
| 24 | } |
| 25 | return viewRuleset(httpClient, host, path) |
| 26 | } |
| 27 | |
| 28 | func viewRuleset(httpClient *http.Client, hostname string, path safeurl.SafeURL) (*shared.RulesetREST, error) { |
| 29 | apiClient := api.NewClientFromHTTP(httpClient) |
no test coverage detected