(hc *http.Client, externalClient *http.Client, host string, l *ioconfig.Handler)
| 75 | } |
| 76 | |
| 77 | func 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 |