diff --git a/pkg/oci/interface.go b/pkg/oci/interface.go index bf7a8973caa0..9d5bb9a0fe10 100644 --- a/pkg/oci/interface.go +++ b/pkg/oci/interface.go @@ -15,7 +15,12 @@ package oci +import v1 "github.com/google/go-containerregistry/pkg/v1" + type SignedEntity interface { + // Digest returns the sha256 of this image's manifest. + Digest() (v1.Hash, error) + // Signatures returns the set of signatures currently associated with this // entity, or the empty equivalent if none are found. Signatures() (Signatures, error)