notation

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTrustPolicyDocument

func LoadTrustPolicyDocument(path string) (*trustpolicy.Document, error)

LoadTrustPolicyDocument loads a trust policy document from the given path. It returns the trust policy document or an error if the document cannot be loaded.

func NewClientWithFileCredStore

func NewClientWithFileCredStore(path string) (remote.Client, error)

Types

type ImageVerifier

type ImageVerifier interface {
	VerifyImage(ctx context.Context, imageReference string) error
}

func NewImageVerifier

func NewImageVerifier(policy *trustpolicy.Document, truststore truststore.X509TrustStore, repoPlainHTTP bool, maxSignatureAttempts int, credStorePath string, logger hclog.Logger) (ImageVerifier, error)

NewImageVerifier creates a new ImageVerifier instance with the given trust policy, trust store, and repoPlainHTTP flag. It returns the ImageVerifier instance or an error if the verifier cannot be created.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL