container

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 8 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 GetDigestFromImmutableReference added in v2.2.0

func GetDigestFromImmutableReference(image string) (string, error)

GetDigestFromImmutableReference verifies that the reference is immutable and returns the `digest`.

func GetImageDigest

func GetImageDigest(image string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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