MCPcopy
hub / github.com/cli/cli / REST

Method REST

pkg/cmd/attestation/api/client.go:56–56  ·  view source on GitHub ↗
(hostname, method, p string, body io.Reader, data interface{})

Source from the content-addressed store, hash-verified

54// githubApiClient makes REST calls to the GitHub API
55type githubApiClient interface {
56 REST(hostname, method, p string, body io.Reader, data interface{}) error
57 RESTWithNext(hostname, method, p string, body io.Reader, data interface{}) (string, error)
58}
59

Callers 15

deleteCacheByIDFunction · 0.65
deleteCacheByKeyFunction · 0.65
viewRulesetFunction · 0.65
checkRunFunction · 0.65
isNewReleaseFunction · 0.65
deleteLabelFunction · 0.65
createLabelFunction · 0.65
updateLabelFunction · 0.65
deleteGistFunction · 0.65
GetGistFunction · 0.65
updateGistFunction · 0.65
updateGistFunction · 0.65

Implementers 2

mockAPIClientpkg/cmd/attestation/api/mock_githubApi
Clientapi/client.go

Calls

no outgoing calls

Tested by 4

TestRESTGetDeleteFunction · 0.52
TestRESTWithFullURLFunction · 0.52
TestRESTErrorFunction · 0.52
TestHTTPHeadersFunction · 0.52