filtering

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchCandidate

func MatchCandidate(flt *ObjectFilter, c Candidate) bool

Types

type Candidate

type Candidate struct {
	Key          string
	Size         int64
	LastModified time.Time
}

type ObjectFilter

type ObjectFilter struct {
	Path              string
	PathExcludeYn     string
	Contains          []string
	ContainExcludeYn  string
	Suffixes          []string
	Exact             []string
	Regex             *regexp.Regexp
	MinSize           *float64
	MaxSize           *float64
	ModifiedAfter     *time.Time
	ModifiedBefore    *time.Time
	SizeFilteringUnit string
}

func FromParams

func FromParams(p *models.ObjectFilterParams) (*ObjectFilter, error)

Jump to

Keyboard shortcuts

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