Documentation ¶
Index ¶
- Constants
- func IsMatcherNegate(m Matcher) bool
- func IsMatcherOperator(r rune) (ok bool)
- func IsNotMatcherNegate(m Matcher) bool
- func KennungContainsExactlyMatchable(k kennung.KennungSansGattung, m *sku.Transacted) bool
- func KennungContainsMatchable(k kennung.KennungSansGattung, m *sku.Transacted, ki kennung.Index) bool
- func LenMatchers(matchers ...Matcher) (i int)
- func MakeFilterFromQuery(ms Query) schnittstellen.FuncIter[*sku.CheckedOut]
- func MakeMatcherFuncIter[T *sku.Transacted](m Matcher) schnittstellen.FuncIter[T]
- func MakeMatcherFuncIter2(m Matcher) schnittstellen.FuncIter[*sku.Transacted]
- func MakeMatcherGattung(m map[gattung.Gattung]Matcher) *matcherGattung
- func SetQueryKennung(k schnittstellen.Setter, v string) (isNegated bool, isExact bool, err error)
- func SplitMatcher(data []byte, atEOF bool) (advance int, token []byte, err error)
- func VisitAllMatcherKennungSansGattungWrappers(f schnittstellen.FuncIter[MatcherKennungSansGattungWrapper], ...) (err error)
- func VisitAllMatchers(f schnittstellen.FuncIter[Matcher], matchers ...Matcher) (err error)
- type FD
- type FuncQueryTransactedLikePtr
- type FuncReaderTransactedLikePtr
- type FuncSigilTransactedLikePtr
- type IdLikeGetter
- type ImplicitEtikettenGetter
- type Konfig
- type Matchable
- type MatchableAdder
- type MatchableGetter
- type Matcher
- type MatcherBuilder
- func (mb MatcherBuilder) Build(vs ...string) (m Matcher, err error)
- func (mb *MatcherBuilder) WithCwd(cwd Matcher) *MatcherBuilder
- func (mb *MatcherBuilder) WithDefaultGattungen(defaultGattungen gattungen.Set) *MatcherBuilder
- func (mb *MatcherBuilder) WithExpanders(expanders kennung.Abbr) *MatcherBuilder
- func (mb *MatcherBuilder) WithFileExtensionGetter(feg schnittstellen.FileExtensionGetter) *MatcherBuilder
- func (mb *MatcherBuilder) WithHidden(hidden Matcher) *MatcherBuilder
- func (mb *MatcherBuilder) WithImplicitEtikettenGetter(ieg ImplicitEtikettenGetter) *MatcherBuilder
- type MatcherCwd
- type MatcherExact
- type MatcherExactlyThisOrAllOfThese
- type MatcherImplicit
- type MatcherKennungSansGattungWrapper
- type MatcherParentPtr
- func MakeMatcherAnd(ms ...Matcher) MatcherParentPtr
- func MakeMatcherAndDoNotMatchOnEmpty(ms ...Matcher) MatcherParentPtr
- func MakeMatcherImplicit(m Matcher) MatcherParentPtr
- func MakeMatcherNegate(m Matcher) MatcherParentPtr
- func MakeMatcherOr(ms ...Matcher) MatcherParentPtr
- func MakeMatcherOrDoNotMatchOnEmpty(ms ...Matcher) MatcherParentPtr
- type MatcherSigil
- type MatcherSigilPtr
- type Negate
- type Query
- type Sha
- type Tai
- type Time
- type Typ
Constants ¶
View Source
const ( QueryOrOperator = ", " QueryAndOperator = " " QueryGroupOpenOperator = "[" QueryGroupCloseOperator = "]" QueryNegationOperator = '^' QueryExactOperator = '=' )
Variables ¶
This section is empty.
Functions ¶
func IsMatcherNegate ¶
func IsMatcherOperator ¶
func IsNotMatcherNegate ¶
func KennungContainsExactlyMatchable ¶
func KennungContainsExactlyMatchable( k kennung.KennungSansGattung, m *sku.Transacted, ) bool
func KennungContainsMatchable ¶
func KennungContainsMatchable( k kennung.KennungSansGattung, m *sku.Transacted, ki kennung.Index, ) bool
func LenMatchers ¶
func MakeFilterFromQuery ¶
func MakeFilterFromQuery( ms Query, ) schnittstellen.FuncIter[*sku.CheckedOut]
func MakeMatcherFuncIter ¶
func MakeMatcherFuncIter[T *sku.Transacted]( m Matcher, ) schnittstellen.FuncIter[T]
func MakeMatcherFuncIter2 ¶
func MakeMatcherFuncIter2(m Matcher) schnittstellen.FuncIter[*sku.Transacted]
func MakeMatcherGattung ¶
func SetQueryKennung ¶
func SplitMatcher ¶
func VisitAllMatcherKennungSansGattungWrappers ¶
func VisitAllMatcherKennungSansGattungWrappers( f schnittstellen.FuncIter[MatcherKennungSansGattungWrapper], ex func(Matcher) bool, matchers ...Matcher, ) (err error)
func VisitAllMatchers ¶
func VisitAllMatchers( f schnittstellen.FuncIter[Matcher], matchers ...Matcher, ) (err error)
Types ¶
type FD ¶
func (FD) ContainsMatchable ¶
func (f FD) ContainsMatchable(m *sku.Transacted) (ok bool)
func (FD) ContainsMatchableExactly ¶
func (fd FD) ContainsMatchableExactly(m *sku.Transacted) (ok bool)
func (FD) MatcherLen ¶
type FuncQueryTransactedLikePtr ¶
type FuncQueryTransactedLikePtr func(Query, schnittstellen.FuncIter[*sku.Transacted]) error
type FuncReaderTransactedLikePtr ¶
type FuncReaderTransactedLikePtr func(schnittstellen.FuncIter[*sku.Transacted]) error
func MakeFuncReaderTransactedLikePtr ¶
func MakeFuncReaderTransactedLikePtr( ms Query, fq FuncQueryTransactedLikePtr, ) FuncReaderTransactedLikePtr
type FuncSigilTransactedLikePtr ¶
type FuncSigilTransactedLikePtr func(MatcherSigil, schnittstellen.FuncIter[*sku.Transacted]) error
type IdLikeGetter ¶
type IdLikeGetter interface { GetKennungLike() kennung.Kennung GetKennungLikePtr() kennung.KennungPtr }
type ImplicitEtikettenGetter ¶
type ImplicitEtikettenGetter interface {
GetImplicitEtiketten(*kennung.Etikett) kennung.EtikettSet
}
type Konfig ¶
func (Konfig) ContainsMatchable ¶
func (i Konfig) ContainsMatchable(m *sku.Transacted) bool
type Matchable ¶
type Matchable interface { schnittstellen.ValueLike schnittstellen.Stored *sku.Transacted }
type MatchableAdder ¶
type MatchableAdder interface {
AddMatchable(*sku.Transacted) error
}
type MatchableGetter ¶
type MatchableGetter interface {
GetMatchable() *sku.Transacted
}
type Matcher ¶
type Matcher interface { ContainsMatchable(*sku.Transacted) bool schnittstellen.Stringer MatcherLen() int Each(schnittstellen.FuncIter[Matcher]) error }
func MakeArchiviert ¶
func MakeArchiviert() Matcher
func MakeMatcher ¶
func MakeMatcherAlways ¶
func MakeMatcherAlways() Matcher
func MakeMatcherNever ¶
func MakeMatcherNever() Matcher
type MatcherBuilder ¶
type MatcherBuilder struct {
// contains filtered or unexported fields
}
func (*MatcherBuilder) WithCwd ¶
func (mb *MatcherBuilder) WithCwd( cwd Matcher, ) *MatcherBuilder
func (*MatcherBuilder) WithDefaultGattungen ¶
func (mb *MatcherBuilder) WithDefaultGattungen( defaultGattungen gattungen.Set, ) *MatcherBuilder
func (*MatcherBuilder) WithExpanders ¶
func (mb *MatcherBuilder) WithExpanders( expanders kennung.Abbr, ) *MatcherBuilder
func (*MatcherBuilder) WithFileExtensionGetter ¶
func (mb *MatcherBuilder) WithFileExtensionGetter( feg schnittstellen.FileExtensionGetter, ) *MatcherBuilder
func (*MatcherBuilder) WithHidden ¶
func (mb *MatcherBuilder) WithHidden( hidden Matcher, ) *MatcherBuilder
func (*MatcherBuilder) WithImplicitEtikettenGetter ¶
func (mb *MatcherBuilder) WithImplicitEtikettenGetter( ieg ImplicitEtikettenGetter, ) *MatcherBuilder
type MatcherCwd ¶
func MakeMatcherCwdNop ¶
func MakeMatcherCwdNop(m Matcher) MatcherCwd
type MatcherExact ¶
type MatcherExact interface { Matcher ContainsMatchableExactly(*sku.Transacted) bool }
type MatcherExactlyThisOrAllOfThese ¶
type MatcherExactlyThisOrAllOfThese interface { Matcher AddExactlyThis(Matcher) error AddAllOfThese(Matcher) error }
func MakeMatcherExactlyThisOrAllOfThese ¶
func MakeMatcherExactlyThisOrAllOfThese() MatcherExactlyThisOrAllOfThese
type MatcherImplicit ¶
type MatcherImplicit interface { Matcher GetImplicitMatcher() matcherImplicit }
type MatcherKennungSansGattungWrapper ¶
type MatcherKennungSansGattungWrapper interface { Matcher GetKennung() kennung.KennungSansGattung }
func MakeMatcherContains ¶
func MakeMatcherContains( k kennung.KennungSansGattung, ki kennung.Index, ) MatcherKennungSansGattungWrapper
func MakeMatcherContainsExactly ¶
func MakeMatcherContainsExactly( k kennung.KennungSansGattung, ) MatcherKennungSansGattungWrapper
type MatcherParentPtr ¶
func MakeMatcherAnd ¶
func MakeMatcherAnd(ms ...Matcher) MatcherParentPtr
func MakeMatcherAndDoNotMatchOnEmpty ¶
func MakeMatcherAndDoNotMatchOnEmpty(ms ...Matcher) MatcherParentPtr
func MakeMatcherImplicit ¶
func MakeMatcherImplicit(m Matcher) MatcherParentPtr
func MakeMatcherNegate ¶
func MakeMatcherNegate(m Matcher) MatcherParentPtr
func MakeMatcherOr ¶
func MakeMatcherOr(ms ...Matcher) MatcherParentPtr
func MakeMatcherOrDoNotMatchOnEmpty ¶
func MakeMatcherOrDoNotMatchOnEmpty(ms ...Matcher) MatcherParentPtr
type MatcherSigil ¶
type MatcherSigilPtr ¶
type MatcherSigilPtr interface { MatcherSigil AddSigil(kennung.Sigil) }
func MakeMatcherExcludeHidden ¶
func MakeMatcherExcludeHidden(m Matcher, s kennung.Sigil) MatcherSigilPtr
func MakeMatcherSigil ¶
func MakeMatcherSigil(s kennung.Sigil, m Matcher) MatcherSigilPtr
func MakeMatcherSigilMatchOnMissing ¶
func MakeMatcherSigilMatchOnMissing( s kennung.Sigil, m Matcher, ) MatcherSigilPtr
func MakeMatcherWithSigil ¶
func MakeMatcherWithSigil(m Matcher, s kennung.Sigil) MatcherSigilPtr
type Negate ¶
type Negate struct {
Child Matcher
}
func (Negate) ContainsMatchable ¶
func (matcher Negate) ContainsMatchable(matchable *sku.Transacted) bool
func (Negate) MatcherLen ¶
type Query ¶
type Query interface { Get(g gattung.Gattung) (s MatcherSigil, ok bool) GetCwdFDs() fd.Set GetExplicitCwdFDs() fd.Set GetEtiketten() kennung.EtikettSet GetTypen() schnittstellen.SetLike[kennung.Typ] Set(string) error SetMany(...string) error All(f func(gattung.Gattung, MatcherSigil) error) error GetGattungen() gattungen.Set Matcher }
TODO-P3 rename to QueryGattungGroup
func MakeQuery ¶
func MakeQuery( k schnittstellen.Konfig, cwd MatcherCwd, ex kennung.Abbr, hidden Matcher, feg schnittstellen.FileExtensionGetter, dg gattungen.Set, ki kennung.Index, ) Query
func MakeQueryAll ¶
func MakeQueryAll( k schnittstellen.Konfig, cwd MatcherCwd, ex kennung.Abbr, hidden Matcher, feg schnittstellen.FileExtensionGetter, ki kennung.Index, ) Query
func MakeQueryFromCheckedOutSet ¶
func MakeQueryFromCheckedOutSet( cos sku.CheckedOutSet, ) (q Query, err error)
type Sha ¶
func (Sha) ContainsMatchable ¶
func (t Sha) ContainsMatchable(m *sku.Transacted) bool
func (Sha) ContainsMatchableExactly ¶
func (t Sha) ContainsMatchableExactly(m *sku.Transacted) bool
func (Sha) MatcherLen ¶
type Tai ¶
func (Tai) ContainsMatchable ¶
func (t Tai) ContainsMatchable(m *sku.Transacted) bool
func (Tai) ContainsMatchableExactly ¶
func (t Tai) ContainsMatchableExactly(m *sku.Transacted) bool
type Time ¶
func (Time) ContainsMatchable ¶
func (t Time) ContainsMatchable(m *sku.Transacted) bool
type Typ ¶
func (Typ) ContainsMatchableExactly ¶
func (t Typ) ContainsMatchableExactly(m *sku.Transacted) bool
Click to show internal directories.
Click to hide internal directories.