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

Function OnGetByDigestFailure

pkg/cmd/attestation/api/mock_client.go:55–60  ·  view source on GitHub ↗
(params FetchParams)

Source from the content-addressed store, hash-verified

53}
54
55func 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
62func NewTestClient() *MockClient {
63 return &MockClient{

Calls 1

ErrorfMethod · 0.65