MCPcopy Index your code
hub / github.com/google/go-github / getPublicKey

Method getPublicKey

github/codespaces_secrets.go:113–126  ·  view source on GitHub ↗
(ctx context.Context, url string)

Source from the content-addressed store, hash-verified

111}
112
113func (s *CodespacesService) getPublicKey(ctx context.Context, url string) (*PublicKey, *Response, error) {
114 req, err := s.client.NewRequest(ctx, "GET", url, nil)
115 if err != nil {
116 return nil, nil, err
117 }
118
119 var publicKey *PublicKey
120 resp, err := s.client.Do(req, &publicKey)
121 if err != nil {
122 return nil, resp, err
123 }
124
125 return publicKey, resp, nil
126}
127
128// GetUserSecret gets a users codespace secret
129//

Callers 3

GetUserPublicKeyMethod · 0.95
GetOrgPublicKeyMethod · 0.95
GetRepoPublicKeyMethod · 0.95

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45

Tested by

no test coverage detected