oci

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// These annotations are defined here:
	// https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
	BaseImageNameAnnotation   = "org.opencontainers.image.base.name"
	BaseImageDigestAnnotation = "org.opencontainers.image.base.digest"
)

Variables

This section is empty.

Functions

func WithClient

func WithClient(ctx context.Context, client Client) context.Context

Types

type Client

type Client interface {
	VerifyImageSignatures(name.Reference, *cosign.CheckOpts) ([]oci.Signature, bool, error)
	VerifyImageAttestations(name.Reference, *cosign.CheckOpts) ([]oci.Signature, bool, error)
	Head(name.Reference) (*v1.Descriptor, error)
	ResolveDigest(name.Reference) (string, error)
	Image(name.Reference) (v1.Image, error)
	Layer(name.Digest) (v1.Layer, error)
	Index(name.Reference) (v1.ImageIndex, error)
}

func NewClient

func NewClient(ctx context.Context, opts ...remote.Option) Client

NewClient constructs a new application_snapshot_image with the default client.

Jump to

Keyboard shortcuts

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