verifier

package module
v0.0.0-...-9fcc1a9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

README

Work in progress policy helpers for Moby & BuildKit.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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)

Directories

Path Synopsis
cmd
policy-helper command
dhi

Jump to

Keyboard shortcuts

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