MCPcopy Index your code
hub / github.com/cli/cli / getPubKey

Function getPubKey

pkg/cmd/secret/set/http.go:33–40  ·  view source on GitHub ↗
(client *api.Client, host, path string)

Source from the content-addressed store, hash-verified

31}
32
33func getPubKey(client *api.Client, host, path string) (*PubKey, error) {
34 pk := PubKey{}
35 err := client.REST(host, "GET", path, nil, &pk)
36 if err != nil {
37 return nil, err
38 }
39 return &pk, nil
40}
41
42func getOrgPublicKey(client *api.Client, host, orgName string, app shared.App) (*PubKey, error) {
43 return getPubKey(client, host, fmt.Sprintf("orgs/%s/%s/secrets/public-key", orgName, app))

Callers 4

getOrgPublicKeyFunction · 0.85
getUserPublicKeyFunction · 0.85
getRepoPubKeyFunction · 0.85
getEnvPubKeyFunction · 0.85

Calls 1

RESTMethod · 0.65

Tested by

no test coverage detected