Documentation
¶
Overview ¶
Package signedcontainer contains functions to verify container image signatures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageSignature ¶
ImageSignature represents a container image signature.
type VerifiedSignature ¶
type VerifiedSignature struct { KeyID string `json:"key_id,omitempty"` Signature string `json:"signature,omitempty"` Alg string `json:"signature_algorithm,omitempty"` }
VerifiedSignature contains information about a successfully verified signature.
type VerifyResult ¶
type VerifyResult struct { Verified []*VerifiedSignature Errors []error }
VerifyResult contains the results of verifying a list of signatures.
func Verify ¶
func Verify(imageDigest string, signatures []*ImageSignature) (*VerifyResult, error)
Verify attempts to verify the provided signatures with imageDigest and returns a VerifyResults object, which contains successfully verified signatures and the errors that arose from verification errors.
Click to show internal directories.
Click to hide internal directories.