rules

package
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package rules contains useful pre-defined rego AST rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceCredential added in v0.15.6

func GetDeviceCredential() *ast.Rule

GetDeviceCredential gets the device credential for the given session.

func GetDeviceEnrollment added in v0.15.6

func GetDeviceEnrollment() *ast.Rule

GetDeviceEnrollment gets the device enrollment for the given device credential.

func GetSession

func GetSession() *ast.Rule

GetSession gets the session for the given id.

func GetUser

func GetUser() *ast.Rule

GetUser returns the user for the given session.

func GetUserEmail

func GetUserEmail() *ast.Rule

GetUserEmail gets the user email, either the impersonate email, or the user email.

func InvertCriterionResult added in v0.15.6

func InvertCriterionResult() *ast.Rule

InvertCriterionResult changes the criterion result's value from false to true, or vice-versa.

func MergeWithAnd added in v0.15.6

func MergeWithAnd() *ast.Rule

MergeWithAnd merges criterion results using `and`.

func MergeWithOr added in v0.15.6

func MergeWithOr() *ast.Rule

MergeWithOr merges criterion results using `or`.

func NormalizeCriterionResult added in v0.15.6

func NormalizeCriterionResult() *ast.Rule

NormalizeCriterionResult converts a criterion result into a standard form.

func ObjectGet

func ObjectGet() *ast.Rule

ObjectGet recursively gets a value from an object.

func ObjectUnion added in v0.15.6

func ObjectUnion() *ast.Rule

ObjectUnion merges objects together. It expects a set of objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL