package
0.24.2
Repository: https://github.com/peripli/service-manager.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddCriteria adds the given criteria to the context and returns an error if any of the criteria is not valid.
ApplyLabelChangesToLabels applies the specified label changes to the specified labels.
No description provided by the author
ByField constructs a new criterion for field querying.
ByLabel constructs a new criterion for label querying.
No description provided by the author
No description provided by the author
ContextWithCriteria returns a new context with given criteria.
CriteriaForContext returns the criteria for the given context.
LabelChangesFromJSON returns the label changes from the json byte array and an error if the changes are not valid.
LimitResultBy constructs a new criterion for limit result with.
No description provided by the author
OrderResultBy constructs a new criterion for result order.
Parse parses the query expression for and builds criteria for the provided type.
RetrieveFromCriteria searches for the value (rightOp) of a given key (leftOp) in a set of criteria.

# Constants

AscOrder orders result in ascending order.
Contains takes two operands and tests if the left contains the right.
DescOrder orders result in descending order.
EqualsOperator takes two operands and tests if they are equal.
EqualsOrNilOperator takes two operands and tests if the left is equal to the right, or if the left is nil.
ExistQuery denotes that the query should test for the existence of any record in a given sub-query.
ExistsSubquery receives a sub-query as single left-operand and checks the sub-query for rows existence.
FieldQuery denotes that the query should be executed on the entity's fields.
GreaterThanOperator takes two operands and tests if the left is greater than the right.
GreaterThanOrEqualOperator takes two operands and tests if the left is greater than or equal the right.
InOperator takes two operands and tests if the left is contained in the right.
No description provided by the author
LabelQuery denotes that the query should be executed on the entity's labels.
LessThanOperator takes two operands and tests if the left is lesser than the right.
LessThanOrEqualOperator takes two operands and tests if the left is lesser than or equal the right.
Limit should be used as a left operand in Criterion to signify the.
MultivariateOperator denotes that the operator expects more than one variable on the right side.
No description provided by the author
NotEqualsOperator takes two operands and tests if they are not equal.
NotExistsSubquery receives a sub-query as single left-operand and checks the sub-query for rows existence.
NotInOperator takes two operands and tests if the left is not contained in the right.
OrderBy should be used as a left operand in Criterion.
ResultQuery is used to further process result.
Separator is the separator between queries of different type.
InQuery denotes that the query.
UnivariateOperator denotes that the operator expects exactly one variable on the right side.

# Variables

CriteriaTypes returns the supported query criteria types.
Operators returns the supported query operators.

# Structs

Criterion is a single part of a query criteria.

# Interfaces

Operator is a query operator.

# Type aliases

CriterionType is a type of criteria to be applied when querying.
OperatorType represents the type of the query operator.
OrderType is the type of the order in which result is presented.