Documentation ¶
Index ¶
- Constants
- Variables
- func AgeEqualsV3(age float64) *rulesv1beta3.Atom
- func AgeNotEqualsV3(age float64) *rulesv1beta3.Atom
- func AgeV3(op string, age float64) *rulesv1beta3.Atom
- func CityEqualsV3(city string) *rulesv1beta3.Atom
- func CityInV3(cities ...interface{}) *rulesv1beta3.Atom
- func CityV3(op, city string) *rulesv1beta3.Atom
- func CtxBuilder() *ctxBuilder
- func NewV1Beta3(rule *rulesv1beta3.Rule, evalCtx EvalContext) *v1beta3
- type EvalContext
Constants ¶
View Source
const ( ContextKeyAge = "age" ContextKeyCity = "city" )
Variables ¶
View Source
var ( ErrEmptyRule error = fmt.Errorf("empty rule") ErrUnknownLogicalOperator error = fmt.Errorf("unknown logical operator") ErrEmptyRuleComparisonValue error = fmt.Errorf("empty rule comparison value") ErrMismatchedType error = fmt.Errorf("mismatched context type") ErrUnsupportedType error = fmt.Errorf("unsupported type") )
Functions ¶
func CityInV3 ¶ added in v0.2.9
func CityInV3(cities ...interface{}) *rulesv1beta3.Atom
func CityV3 ¶ added in v0.2.9
func CityV3(op, city string) *rulesv1beta3.Atom
func CtxBuilder ¶
func CtxBuilder() *ctxBuilder
func NewV1Beta3 ¶ added in v0.2.9
func NewV1Beta3(rule *rulesv1beta3.Rule, evalCtx EvalContext) *v1beta3
Represents the rules defined in the proto package 'lekko.rules.v1beta3'.
Types ¶
type EvalContext ¶ added in v0.2.32
Click to show internal directories.
Click to hide internal directories.