filters

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlwaysMatch

type AlwaysMatch struct{}

AlwaysMatch is a filter that matches any attestation

func (AlwaysMatch) Matches

type NeverMatch

type NeverMatch struct{}

NeverMatch is a filter implementation that never matches an attestation

func (NeverMatch) Matches

type PredicateTypeMatcher

type PredicateTypeMatcher struct {
	PredicateTypes map[attestation.PredicateType]struct{}
}

func (*PredicateTypeMatcher) Matches

func (ptm *PredicateTypeMatcher) Matches(att attestation.Envelope) bool

type SubjectHashMatcher

type SubjectHashMatcher struct {
	HashSets []map[string]string
}

func (*SubjectHashMatcher) Matches

func (sm *SubjectHashMatcher) Matches(att attestation.Envelope) bool

type SubjectlessMatcher

type SubjectlessMatcher struct {
	HashSets []map[string]string
}

SubjectlessMatcher matches any attestation that does not have a subject. These typically are all that came from parsing plain json data, such as plain SBOMs published with artifacts.

func (*SubjectlessMatcher) Matches

func (sm *SubjectlessMatcher) Matches(att attestation.Envelope) bool

Jump to

Keyboard shortcuts

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