verify

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

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

type VerifyResult struct {
	Method   string
	Verified bool
}

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.

Jump to

Keyboard shortcuts

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