Versions in this module Expand all Collapse all v0 v0.3.0 Oct 4, 2026 Changes in this version + const QueryModeAnd + const QueryModeOr + var ErrFetcherMethodNotImplemented = errors.New("fetching method not implemented") + var ErrNotCorrectFormat = errors.New("data does not conform to parser's format") + var ErrStorerMethodNotImplemented = errors.New("storing method not implemented") + var WithMode = func(mode string) optFunc + func SubjectsMatch(s1, s2 Subject) bool + type Certificate interface + type EnvVerOptsConvertable interface + ToEnvelopeVerificationOptions func() EnvelopeVerificationOptions + type Envelope interface + GetCertificate func() Certificate + GetPredicate func() Predicate + GetSignatures func() []Signature + GetStatement func() Statement + GetVerification func() Verification + Verify func(...any) error + type EnvelopeParser interface + FileExtensions func() []string + ParseStream func(r io.Reader) ([]Envelope, error) + type EnvelopeVerificationOptions struct + AllowUnsigned bool + type FetchOptions struct + Limit int + MaxReadSize int64 + Query *Query + type Fetcher interface + Fetch func(context.Context, FetchOptions) ([]Envelope, error) + type FetcherByPredicateType interface + FetchByPredicateType func(context.Context, FetchOptions, []PredicateType) ([]Envelope, error) + type FetcherByPredicateTypeAndSubject interface + FetchByPredicateTypeAndSubject func(context.Context, FetchOptions, []PredicateType, []Subject) ([]Envelope, error) + type FetcherBySubject interface + FetchBySubject func(context.Context, FetchOptions, []Subject) ([]Envelope, error) + type Filter interface + Matches func(Envelope) bool + type FilterSet []Filter + func (fs FilterSet) FilterList(in []Envelope, funcs ...optFunc) []Envelope + func (fs FilterSet) MatchesAll(att Envelope) bool + func (fs FilterSet) MatchesOne(att Envelope) bool + type Predicate interface + GetData func() []byte + GetOrigin func() Subject + GetParsed func() any + GetType func() PredicateType + GetVerification func() Verification + SetOrigin func(Subject) + SetType func(PredicateType) error + SetVerification func(Verification) + type PredicateParser interface + Parse func([]byte) (Predicate, error) + SupportsType func(...PredicateType) bool + type PredicateType string + type Query struct + Filters FilterSet + func NewQuery() *Query + func (query *Query) Run(atts []Envelope, funcs ...optFunc) []Envelope + func (query *Query) WithFilter(filters ...Filter) *Query + type QueryOptions struct + Mode string + type Repository interface + type Signature interface + type Statement interface + GetPredicate func() Predicate + GetPredicateType func() PredicateType + GetSubjects func() []Subject + GetType func() string + GetVerification func() Verification + type StatementParser interface + Parse func([]byte) (Statement, error) + type StoreOptions struct + type Storer interface + Store func(context.Context, StoreOptions, []Envelope) error + type Subject interface + GetDigest func() map[string]string + GetName func() string + GetUri func() string + type Verification interface + GetVerified func() bool + MatchesIdentity func(any) bool + type VerificationOptions interface