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
func WithTlogThreshold ¶
func WithTlogThreshold(threshold int) ArtifactVerifyOpt
WithTlogThreshold sets the minimum number of verified transparency logs. By default, all distinct logs in the bundle are required. Explicit zero skips log verification and returns no log timestamps, so a TSA timestamp is required.
type ArtifactVerifyOpts ¶
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)
Click to show internal directories.
Click to hide internal directories.