Documentation ¶
Overview ¶
Package rules contains useful pre-defined rego AST rules.
Index ¶
- func GetDeviceCredential() *ast.Rule
- func GetDeviceEnrollment() *ast.Rule
- func GetDirectoryGroup() *ast.Rule
- func GetDirectoryUser() *ast.Rule
- func GetGroupIDs() *ast.Rule
- func GetSession() *ast.Rule
- func GetUser() *ast.Rule
- func GetUserEmail() *ast.Rule
- func InvertCriterionResult() *ast.Rule
- func MergeWithAnd() *ast.Rule
- func MergeWithOr() *ast.Rule
- func NormalizeCriterionResult() *ast.Rule
- func ObjectGet() *ast.Rule
- func ObjectUnion() *ast.Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceCredential ¶ added in v0.15.6
GetDeviceCredential gets the device credential for the given session.
func GetDeviceEnrollment ¶ added in v0.15.6
GetDeviceEnrollment gets the device enrollment for the given device credential.
func GetDirectoryGroup ¶
GetDirectoryGroup returns the directory group for the given id.
func GetDirectoryUser ¶
GetDirectoryUser returns the directory user for the given session.
func GetGroupIDs ¶
GetGroupIDs returns the group ids for the given session or directory user.
func GetUserEmail ¶
GetUserEmail gets the user email, either the impersonate email, or the user email.
func InvertCriterionResult ¶ added in v0.15.6
InvertCriterionResult changes the criterion result's value from false to true, or vice-versa.
func MergeWithAnd ¶ added in v0.15.6
MergeWithAnd merges criterion results using `and`.
func MergeWithOr ¶ added in v0.15.6
MergeWithOr merges criterion results using `or`.
func NormalizeCriterionResult ¶ added in v0.15.6
NormalizeCriterionResult converts a criterion result into a standard form.
func ObjectUnion ¶ added in v0.15.6
ObjectUnion merges objects together. It expects a set of objects.
Types ¶
This section is empty.