2023-08-19 08:52:03 +03:00
|
|
|
//go:build !imagetrust
|
|
|
|
// +build !imagetrust
|
|
|
|
|
|
|
|
package imagetrust
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
godigest "github.com/opencontainers/go-digest"
|
|
|
|
)
|
|
|
|
|
2023-09-08 10:03:58 +03:00
|
|
|
func NewLocalImageTrustStore(dir string) (*imageTrustDisabled, error) {
|
|
|
|
return &imageTrustDisabled{}, nil
|
2023-08-19 08:52:03 +03:00
|
|
|
}
|
|
|
|
|
2023-09-08 10:03:58 +03:00
|
|
|
func NewAWSImageTrustStore(region, endpoint string) (*imageTrustDisabled, error) {
|
|
|
|
return &imageTrustDisabled{}, nil
|
2023-08-19 08:52:03 +03:00
|
|
|
}
|
|
|
|
|
2023-09-08 10:03:58 +03:00
|
|
|
type imageTrustDisabled struct{}
|
2023-08-19 08:52:03 +03:00
|
|
|
|
2023-09-08 10:03:58 +03:00
|
|
|
func (imgTrustStore *imageTrustDisabled) VerifySignature(
|
2023-08-19 08:52:03 +03:00
|
|
|
signatureType string, rawSignature []byte, sigKey string, manifestDigest godigest.Digest, manifestContent []byte,
|
|
|
|
repo string,
|
|
|
|
) (string, time.Time, bool, error) {
|
|
|
|
return "", time.Time{}, false, nil
|
|
|
|
}
|