package verifier
import "github.com/moby/policy-helpers"
Index ¶
- type ArtifactVerifyOpt
- type ArtifactVerifyOpts
- type Config
- type NoSigChainError
- type Verifier
- func NewVerifier(cfg Config) (*Verifier, error)
- func (v *Verifier) VerifyArtifact(ctx context.Context, dgst digest.Digest, bundleBytes []byte, opt ...ArtifactVerifyOpt) (*types.SignatureInfo, error)
- func (v *Verifier) VerifyImage(ctx context.Context, provider image.ReferrersProvider, desc ocispecs.Descriptor, platform *ocispecs.Platform) (*types.SignatureInfo, error)
Types ¶
type ArtifactVerifyOpt ¶
type ArtifactVerifyOpt func(*ArtifactVerifyOpts)
func WithSLSANotRequired ¶
func WithSLSANotRequired() ArtifactVerifyOpt
type ArtifactVerifyOpts ¶
type ArtifactVerifyOpts struct {
SLSANotRequired bool
}
type Config ¶
type NoSigChainError ¶
func (*NoSigChainError) Error ¶
func (e *NoSigChainError) Error() string
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifier ¶
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 ¶
| Path | Synopsis |
|---|---|
| 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.