filter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package filter defines which tickets pass which filters. Other implementations which help filter tickets (eg, a range index lookup) must conform to the same set of tickets being within the filter as here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolFilter added in v0.10.0

type PoolFilter struct {
	DoubleRangeFilters  []*pb.DoubleRangeFilter
	StringEqualsFilters []*pb.StringEqualsFilter
	TagPresentFilters   []*pb.TagPresentFilter
	CreatedBefore       time.Time
	CreatedAfter        time.Time
}

PoolFilter contains all the filtering criteria from a Pool that the Ticket needs to meet to belong to that Pool.

func NewPoolFilter added in v0.10.0

func NewPoolFilter(pool *pb.Pool) (*PoolFilter, error)

NewPoolFilter validates a Pool's filtering criteria and returns a PoolFilter.

func (*PoolFilter) In added in v0.10.0

func (pf *PoolFilter) In(entity filteredEntity) bool

In returns true if the Ticket meets all the criteria for this PoolFilter.

Directories

Path Synopsis
Package testcases contains lists of ticket filtering test cases.
Package testcases contains lists of ticket filtering test cases.

Jump to

Keyboard shortcuts

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