image

package
v0.0.0-...-824747b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const (
	AnnotationDockerReferenceDigest = "vnd.docker.reference.digest"
	AnnotationDockerReferenceType   = "vnd.docker.reference.type"
	AttestationManifestType         = "attestation-manifest"
)
View Source
const (
	ArtifactTypeCosignSignature   = "application/vnd.dev.cosign.artifact.sig.v1+json"
	ArtifactTypeSigstoreBundle    = "application/vnd.dev.sigstore.bundle.v0.3+json"
	ArtifactTypeInTotoJSON        = "application/vnd.in-toto+json"
	MediaTypeCosignSimpleSigning  = "application/vnd.dev.cosign.simplesigning.v1+json"
	SLSAProvenancePredicateType02 = "https://slsa.dev/provenance/v0.2"
	SLSAProvenancePredicateType1  = "https://slsa.dev/provenance/v1"
)

Variables

This section is empty.

Functions

func IsDHI

func IsDHI(ctx context.Context) bool

func ReadBlob

func ReadBlob(ctx context.Context, provider content.Provider, desc ocispecs.Descriptor) ([]byte, error)

Types

type Manifest

type Manifest struct {
	ocispecs.Descriptor
	// contains filtered or unexported fields
}

type ReferrersProvider

type ReferrersProvider interface {
	content.Provider
	remotes.ReferrersFetcher
}

type SignatureChain

type SignatureChain struct {
	ImageManifest       *Manifest
	AttestationManifest *Manifest
	SignatureManifest   *Manifest
	Provider            content.Provider
	DHI                 bool
}

func ResolveSignatureChain

func ResolveSignatureChain(ctx context.Context, provider ReferrersProvider, desc ocispecs.Descriptor, platform *ocispecs.Platform) (*SignatureChain, error)

func (*SignatureChain) ManifestBytes

func (sc *SignatureChain) ManifestBytes(ctx context.Context, m *Manifest) ([]byte, error)

func (*SignatureChain) OCIManifest

func (sc *SignatureChain) OCIManifest(ctx context.Context, m *Manifest) (*ocispecs.Manifest, error)

Jump to

Keyboard shortcuts

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