style(metadb): use type aliases for metadb types to be easier to read (#2043)

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
LaurentiuNiculae
2024-02-14 19:08:08 +02:00
committed by GitHub
parent 36e04a40c2
commit de90abd5dc
14 changed files with 90 additions and 73 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ func IsResourceExistsException(err error) bool {
func (imgTrustStore *ImageTrustStore) VerifySignature(
signatureType string, rawSignature []byte, sigKey string, manifestDigest godigest.Digest, imageMeta mTypes.ImageMeta,
repo string,
) (string, time.Time, bool, error) {
) (mTypes.Author, mTypes.ExpiryDate, mTypes.Validity, error) {
desc := ispec.Descriptor{
MediaType: imageMeta.MediaType,
Digest: imageMeta.Digest,