mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-19 12:04:09 -04:00
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 1.5.1 to 1.6.0. - [Release notes](https://github.com/open-policy-agent/opa/releases) - [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-policy-agent/opa/compare/v1.5.1...v1.6.0) --- updated-dependencies: - dependency-name: github.com/open-policy-agent/opa dependency-version: 1.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
25 lines
662 B
Go
25 lines
662 B
Go
// Copyright 2024 The OPA Authors. All rights reserved.
|
|
// Use of this source code is governed by an Apache2
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package ast
|
|
|
|
import (
|
|
v1 "github.com/open-policy-agent/opa/v1/ast"
|
|
)
|
|
|
|
func InternedBooleanTerm(b bool) *Term {
|
|
return v1.InternedTerm(b)
|
|
}
|
|
|
|
// InternedIntNumberTerm returns a term with the given integer value. The term is
|
|
// cached between -1 to 512, and for values outside of that range, this function
|
|
// is equivalent to ast.IntNumberTerm.
|
|
func InternedIntNumberTerm(i int) *Term {
|
|
return v1.InternedTerm(i)
|
|
}
|
|
|
|
func HasInternedIntNumberTerm(i int) bool {
|
|
return v1.HasInternedIntNumberTerm(i)
|
|
}
|