zotregistry.dev/zot@v1.4.4-0.20240314164342-eec277e14d20/pkg/extensions/imagetrust/image_trust_disabled.go (about) 1 //go:build !imagetrust 2 // +build !imagetrust 3 4 package imagetrust 5 6 import ( 7 "time" 8 9 godigest "github.com/opencontainers/go-digest" 10 11 mTypes "zotregistry.dev/zot/pkg/meta/types" 12 ) 13 14 func NewLocalImageTrustStore(dir string) (*imageTrustDisabled, error) { 15 return &imageTrustDisabled{}, nil 16 } 17 18 func NewAWSImageTrustStore(region, endpoint string) (*imageTrustDisabled, error) { 19 return &imageTrustDisabled{}, nil 20 } 21 22 type imageTrustDisabled struct{} 23 24 func (imgTrustStore *imageTrustDisabled) VerifySignature( 25 signatureType string, rawSignature []byte, sigKey string, manifestDigest godigest.Digest, imageMeta mTypes.ImageMeta, 26 repo string, 27 ) (string, time.Time, bool, error) { 28 return "", time.Time{}, false, nil 29 }