(params FetchParams)
| 53 | } |
| 54 | |
| 55 | func OnGetByDigestFailure(params FetchParams) ([]*Attestation, error) { |
| 56 | if params.Repo != "" { |
| 57 | return nil, fmt.Errorf("failed to fetch attestations from %s", params.Repo) |
| 58 | } |
| 59 | return nil, fmt.Errorf("failed to fetch attestations from %s", params.Owner) |
| 60 | } |
| 61 | |
| 62 | func NewTestClient() *MockClient { |
| 63 | return &MockClient{ |