MCPcopy Index your code
hub / github.com/cli/cli / NewLiveClient

Function NewLiveClient

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

Source from the content-addressed store, hash-verified

75}
76
77func NewLiveClient(hc *http.Client, externalClient *http.Client, host string, l *ioconfig.Handler) *LiveClient {
78 return &LiveClient{
79 githubAPI: api.NewClientFromHTTP(hc),
80 host: strings.TrimSuffix(host, "/"),
81 externalHttpClient: externalClient,
82 logger: l,
83 }
84}
85
86// GetByDigest fetches the attestation by digest and either owner or repo
87// 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