container

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunCosignImageVerification = func(ctx context.Context,
	image string, co *cosign.CheckOpts) ([]oci.Signature, bool, error) {
	signedImgRef, err := crname.ParseReference(image)
	if err != nil {
		return nil, false, err
	}
	return cosign.VerifyImageAttestations(ctx, signedImgRef, co)
}

Functions

func GetImageDigest

func GetImageDigest(image string) (string, error)

func ValidateArtifactReference

func ValidateArtifactReference(image, expectedDigest string) error

ValidateArtifactReference verifies that the reference is immutable and has digest `digest`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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