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.
Types ¶
type ImageVerifier ¶
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.
Click to show internal directories.
Click to hide internal directories.