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

Method REST

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

Source from the content-addressed store, hash-verified

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

Callers 15

deleteCacheByIDFunction · 0.65
deleteCacheByKeyFunction · 0.65
viewRulesetFunction · 0.65
checkRunFunction · 0.65
deleteAssetFunction · 0.65
deleteReleaseFunction · 0.65
deleteTagFunction · 0.65
getTagsFunction · 0.65
generateReleaseNotesFunction · 0.65
createReleaseFunction · 0.65
publishReleaseFunction · 0.65
deleteReleaseFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 5

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