(client *api.Client, host string, path safeurl.SafeURL)
| 32 | } |
| 33 | |
| 34 | func getPubKey(client *api.Client, host string, path safeurl.SafeURL) (*PubKey, error) { |
| 35 | pk := PubKey{} |
| 36 | err := client.REST(host, "GET", path.String(), nil, &pk) |
| 37 | if err != nil { |
| 38 | return nil, err |
| 39 | } |
| 40 | return &pk, nil |
| 41 | } |
| 42 | |
| 43 | func getOrgPublicKey(client *api.Client, host, orgName string, app shared.App) (*PubKey, error) { |
| 44 | u, err := safeurl.JoinPath("orgs", orgName, string(app), "secrets", "public-key") |
no test coverage detected