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

Method GetImageDigest

pkg/cmd/attestation/artifact/oci/mock_client.go:18–23  ·  view source on GitHub ↗
(imgName string)

Source from the content-addressed store, hash-verified

16type MockClient struct{}
17
18func (c MockClient) GetImageDigest(imgName string) (*v1.Hash, name.Reference, error) {
19 return &v1.Hash{
20 Hex: "1234567890abcdef",
21 Algorithm: "sha256",
22 }, nil, nil
23}
24
25func (c MockClient) GetAttestations(name name.Reference, digest string) ([]*api.Attestation, error) {
26 att1 := makeTestAttestation()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected