filter

package
Version: v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableFilters

func AvailableFilters() []string

func RegisterFilter

func RegisterFilter(ctx context.Context, name string, fn FilterInitializeFunc) error

Types

type AnyFilter

type AnyFilter struct {
	Filter
}

func (*AnyFilter) Continue

func (f *AnyFilter) Continue(ctx context.Context, bucket *blob.Bucket, path string) (bool, error)

type Filter

type Filter interface {
	Continue(context.Context, *blob.Bucket, string) (bool, error)
}

func NewAnyFilter

func NewAnyFilter(ctx context.Context, uri string) (Filter, error)

func NewFilter

func NewFilter(ctx context.Context, uri string) (Filter, error)

func NewMultiFilter

func NewMultiFilter(ctx context.Context, filters ...Filter) (Filter, error)

func NewRegexpFilter

func NewRegexpFilter(ctx context.Context, uri string) (Filter, error)

type FilterInitializeFunc

type FilterInitializeFunc func(context.Context, string) (Filter, error)

type MultiFilter

type MultiFilter struct {
	Filter
	// contains filtered or unexported fields
}

func (*MultiFilter) Continue

func (f *MultiFilter) Continue(ctx context.Context, bucket *blob.Bucket, path string) (bool, error)

type RegexpFilter

type RegexpFilter struct {
	Filter
	// contains filtered or unexported fields
}

func (*RegexpFilter) Continue

func (f *RegexpFilter) Continue(ctx context.Context, bucket *blob.Bucket, path string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL