Documentation
¶
Overview ¶
Package verify provides utilities for verifying container image signatures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VerifyOptions ¶
type VerifyOptions struct {
// CheckOpts are the options for verifying the image signature.
//
// If Disabled is true, this field is ignored.
CheckOpts []cosign.CheckOpts
// Disabled disables image signature verification.
Disabled bool
}
VerifyOptions are the options for verifying the image signature.
type VerifyResult ¶
VerifyResult contains the result of image signature verification.
func VerifySignatures ¶
func VerifySignatures(ctx context.Context, digestRef name.Reference, imageVerifyOptions VerifyOptions, nameOpts ...name.Option) (VerifyResult, error)
VerifySignatures attempts to verify the image signature using the provided verification options.
Try to verify the image signature with the given verification options. Return the first option that worked, if any. Only the last encountered error will be returned.
Click to show internal directories.
Click to hide internal directories.