mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
56ad9e6707
Use protocol buffers and update the metadb interface to better suit our search needs Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> Co-authored-by: Ramkumar Chinchani <rchincha@cisco.com>
29 lines
711 B
Go
29 lines
711 B
Go
//go:build !imagetrust
|
|
// +build !imagetrust
|
|
|
|
package imagetrust
|
|
|
|
import (
|
|
"time"
|
|
|
|
godigest "github.com/opencontainers/go-digest"
|
|
|
|
mTypes "zotregistry.io/zot/pkg/meta/types"
|
|
)
|
|
|
|
func NewLocalImageTrustStore(dir string) (*imageTrustDisabled, error) {
|
|
return &imageTrustDisabled{}, nil
|
|
}
|
|
|
|
func NewAWSImageTrustStore(region, endpoint string) (*imageTrustDisabled, error) {
|
|
return &imageTrustDisabled{}, nil
|
|
}
|
|
|
|
type imageTrustDisabled struct{}
|
|
|
|
func (imgTrustStore *imageTrustDisabled) VerifySignature(
|
|
signatureType string, rawSignature []byte, sigKey string, manifestDigest godigest.Digest, imageMeta mTypes.ImageMeta,
|
|
repo string,
|
|
) (string, time.Time, bool, error) {
|
|
return "", time.Time{}, false, nil
|
|
}
|