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

Method GetImageDigest

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

Source from the content-addressed store, hash-verified

41type AuthFailClient struct{}
42
43func (c AuthFailClient) GetImageDigest(imgName string) (*v1.Hash, name.Reference, error) {
44 return nil, nil, ErrRegistryAuthz
45}
46
47func (c AuthFailClient) GetAttestations(name name.Reference, digest string) ([]*api.Attestation, error) {
48 return nil, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected