mirror of
https://github.com/project-zot/zot.git
synced 2025-01-13 22:50:38 -05:00
cacf54e8cb
- the size of the binary-minimal becomes 32MB - "signatures" package is renamed into "imagetrust" and moved under extensions - if the binary is not built using "imagetrust" tag then the signatures verification will not be performed Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
29 lines
549 B
Go
29 lines
549 B
Go
//go:build !imagetrust
|
|
// +build !imagetrust
|
|
|
|
package imagetrust
|
|
|
|
import (
|
|
"time"
|
|
|
|
godigest "github.com/opencontainers/go-digest"
|
|
)
|
|
|
|
func InitCosignAndNotationDirs(rootDir string) error {
|
|
return nil
|
|
}
|
|
|
|
func InitCosignDir(rootDir string) error {
|
|
return nil
|
|
}
|
|
|
|
func InitNotationDir(rootDir string) error {
|
|
return nil
|
|
}
|
|
|
|
func VerifySignature(
|
|
signatureType string, rawSignature []byte, sigKey string, manifestDigest godigest.Digest, manifestContent []byte,
|
|
repo string,
|
|
) (string, time.Time, bool, error) {
|
|
return "", time.Time{}, false, nil
|
|
}
|