package image

import "github.com/moby/policy-helpers/image"

Index

Constants

const (
	AnnotationDockerReferenceDigest = "vnd.docker.reference.digest"
	AnnotationDockerReferenceType   = "vnd.docker.reference.type"
	AttestationManifestType         = "attestation-manifest"
)
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"
)

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)

Source Files

dhi.go resolve.go

Version
v0.0.0-20260324161837-b7c0b994300b (latest)
Published
Mar 24, 2026
Platform
darwin/amd64
Imports
14 packages
Last checked
now

Tools for package owners.