Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCustomFilterBufferThreshold = 100
DefaultCustomFilterBufferThreshold is the default value for BufferThreshold setting on CustomFilters.
Variables ¶
View Source
var ErrFilterNotFound = errors.New("specified filter was not found")
Functions ¶
This section is empty.
Types ¶
type ExternalCmd ¶
type ExternalCmd struct {
// contains filtered or unexported fields
}
func NewExternalCmd ¶
func NewExternalCmd(name string, cmd string, args []string, threshold int, idgen line.IDGenerator, enableSep bool) *ExternalCmd
NewExternalCmd creates a new filter that uses an external command to filter the input
func (*ExternalCmd) Apply ¶
func (ecf *ExternalCmd) Apply(ctx context.Context, buf []line.Line, out pipeline.ChanOutput) (err error)
func (ExternalCmd) BufSize ¶
func (ecf ExternalCmd) BufSize() int
func (*ExternalCmd) NewContext ¶
func (ExternalCmd) String ¶
func (ecf ExternalCmd) String() string
type Fuzzy ¶
type Fuzzy struct { }
func NewFuzzy ¶
func NewFuzzy() *Fuzzy
NewFuzzy builds a fuzzy-finder type of filter. In effect, this uses a smart case filter, and for q query like "ABC" it matches the equivalent of "A(.*)B(.*)C(.*)"
func (*Fuzzy) NewContext ¶
type Regexp ¶
type Regexp struct {
// contains filtered or unexported fields
}
func NewCaseSensitive ¶
func NewCaseSensitive() *Regexp
func NewIgnoreCase ¶
func NewIgnoreCase() *Regexp
func NewSmartCase ¶
func NewSmartCase() *Regexp
SmartCase turns ON the ignore-case flag in the regexp if the query contains a upper-case character
func (*Regexp) NewContext ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) SetCurrentByName ¶
Click to show internal directories.
Click to hide internal directories.