condition

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator string
const (
	AggregatorCount Aggregator = "count"
	AggregatorMin   Aggregator = "min"
	AggregatorMax   Aggregator = "max"
	AggregatorAvg   Aggregator = "avg"
	AggregatorSum   Aggregator = "sum"
)

type Condition

type Condition interface {
	Or(cond Condition) Condition
	And(cond Condition) Condition
	yaml.Marshaler
	String() string
}

func AllOfPattern

func AllOfPattern(pattern string) Condition

func And

func And(a Condition, b Condition) Condition

func From

func From(identifier string) Condition

func OneOfThem

func OneOfThem() Condition

func Or

func Or(a Condition, b Condition) Condition

type Operator

type Operator string
const (
	OperatorLargerThan       Operator = ">"
	OperatorSmallerThan      Operator = "<"
	OperatorLargerOrEqualTo  Operator = ">="
	OperatorSmallerOrEqualTo Operator = "<="
	OperatorEqualTo          Operator = "="
)

Jump to

Keyboard shortcuts

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