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

Function NewLiveClient

pkg/cmd/attestation/api/client.go:78–85  ·  view source on GitHub ↗
(hc *http.Client, externalClient *http.Client, host string, l *ioconfig.Handler)

Source from the content-addressed store, hash-verified

76}
77
78func NewLiveClient(hc *http.Client, externalClient *http.Client, host string, l *ioconfig.Handler) *LiveClient {
79 return &LiveClient{
80 githubAPI: api.NewClientFromHTTP(hc),
81 host: strings.TrimSuffix(host, "/"),
82 externalHttpClient: externalClient,
83 logger: l,
84 }
85}
86
87// GetByDigest fetches the attestation by digest and either owner or repo
88// depending on which is provided

Callers 10

NewCmdVerifyFunction · 0.92
NewCmdVerifyAssetFunction · 0.92
NewInspectCmdFunction · 0.92
NewTrustedRootCmdFunction · 0.92
NewVerifyCmdFunction · 0.92
TestVerifyIntegrationFunction · 0.92
NewDownloadCmdFunction · 0.92

Calls 1

NewClientFromHTTPFunction · 0.92