policy-helpers – github.com/moby/policy-helpers Index | Files | Directories

package verifier

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

Index

Types

type ArtifactVerifyOpt

type ArtifactVerifyOpt func(*ArtifactVerifyOpts)

func WithSLSANotRequired

func WithSLSANotRequired() ArtifactVerifyOpt

type ArtifactVerifyOpts

type ArtifactVerifyOpts struct {
	SLSANotRequired bool
}

type Config

type Config struct {
	UpdateInterval time.Duration
	RequireOnline  bool
	StateDir       string
}

type NoSigChainError

type NoSigChainError struct {
	Target         digest.Digest
	HasAttestation bool
}

func (*NoSigChainError) Error

func (e *NoSigChainError) Error() string

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

func NewVerifier

func NewVerifier(cfg Config) (*Verifier, error)

func (*Verifier) VerifyArtifact

func (v *Verifier) VerifyArtifact(ctx context.Context, dgst digest.Digest, bundleBytes []byte, opt ...ArtifactVerifyOpt) (*types.SignatureInfo, error)

func (*Verifier) VerifyImage

func (v *Verifier) VerifyImage(ctx context.Context, provider image.ReferrersProvider, desc ocispecs.Descriptor, platform *ocispecs.Platform) (*types.SignatureInfo, error)

Source Files

errors.go hashedrecordbundle.go verifier.go

Directories

PathSynopsis
cmd
cmd/policy-helper
githubapi
image
roots
roots/dhi
types
Version
v0.0.0-20260324161837-b7c0b994300b (latest)
Published
Mar 24, 2026
Platform
linux/amd64
Imports
29 packages
Last checked
1 second ago

Tools for package owners.