Versions in this module Expand all Collapse all v1 v1.2.3 Sep 20, 2024 Changes in this version + const OLMConstraintType + const PropertiesKey + var ErrMaxConstraintSizeExceeded = fmt.Errorf("olm.constraint value is greater than max constraint size %d bytes", ...) + type Cel struct + Rule string + type CelEnvironment struct + func NewCelEnvironment() *CelEnvironment + func (e *CelEnvironment) Validate(rule string) (CelProgram, error) + type CelProgram struct + func (e CelProgram) Evaluate(data map[string]interface{}) (bool, error) + type CompoundConstraint struct + Constraints []Constraint + type Constraint struct + All *CompoundConstraint + Any *CompoundConstraint + Cel *Cel + FailureMessage string + GVK *GVKConstraint + Not *CompoundConstraint + Package *PackageConstraint + func Parse(v json.RawMessage) (c Constraint, err error) + type GVKConstraint struct + Group string + Kind string + Version string + type PackageConstraint struct + PackageName string + VersionRange string