MCPcopy Create free account
hub / github.com/cli/cli / getPubKey

Function getPubKey

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

Source from the content-addressed store, hash-verified

32}
33
34func 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
43func getOrgPublicKey(client *api.Client, host, orgName string, app shared.App) (*PubKey, error) {
44 u, err := safeurl.JoinPath("orgs", orgName, string(app), "secrets", "public-key")

Callers 4

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

Calls 2

RESTMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected