builtins

package
v0.33.29 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Check           string = "check"
	Checks          string = "checks"
	Graph           string = "graph"
	Object          string = "object"
	Relation        string = "relation"
	Relations       string = "relations"
	Resolve         string = "resolve"
	Identity        string = "identity"
	User            string = "user"
	CheckRelation   string = "check_relation"
	CheckPermission string = "check_permission"
)
View Source
const (
	DSCheck           string = ds + dot + Check           // ds.check
	DSChecks          string = ds + dot + Checks          // ds.checks
	DSGraph           string = ds + dot + Graph           // ds.graph
	DSObject          string = ds + dot + Object          // ds.object
	DSRelation        string = ds + dot + Relation        // ds.relation
	DSRelations       string = ds + dot + Relations       // ds.relations
	DSResolve         string = ds + dot + Resolve         // ds.resolve
	DSIdentity        string = ds + dot + Identity        // ds.identity (OBSOLETE, use `ds.resolve`)
	DSUser            string = ds + dot + User            // ds.user (OBSOLETE, use `ds.object“)
	DSCheckRelation   string = ds + dot + CheckRelation   // ds.check_relation (OBSOLETE, use `ds.check`)
	DSCheckPermission string = ds + dot + CheckPermission // ds.check_permission (OBSOLETE, use `ds.check`)
)

Topaz Directory built-ins.

View Source
const (
	Evaluation     string = "evaluation"
	Evaluations    string = "evaluations"
	SubjectSearch  string = "subject_search"
	ResourceSearch string = "resource_search"
	ActionSearch   string = "action_search"
)
View Source
const (
	AZEvaluation     string = az + dot + Evaluation     // az.evaluation
	AZEvaluations    string = az + dot + Evaluations    // az.evaluations
	AZSubjectSearch  string = az + dot + SubjectSearch  // az.subject_search
	AZResourceSearch string = az + dot + ResourceSearch // az.resource_search
	AZActionSearch   string = az + dot + ActionSearch   // az.action_search
)

OpenID AuthZEN built-ins, see https://openid.github.io/authzen/

View Source
const MaxPaginationSize = 1000

Variables

This section is empty.

Functions

func GetAccessClient

func GetAccessClient(conn *grpc.ClientConn) func() (access.AccessClient, error)

func GetDirectoryClient

func GetDirectoryClient(conn *grpc.ClientConn) func() (reader.ReaderClient, error)

func ProtoToBuf

func ProtoToBuf(w io.Writer, msg proto.Message) error

ProtoToBuf, marshal proto message to buffer.

func ResponseToTerm

func ResponseToTerm[T any, M Message[T]](resp M) (*ast.Term, error)

ResponseToTerm.

func TraceError

func TraceError(bctx *topdown.BuiltinContext, fnName string, err error)

TraceError.

Types

type Message

type Message[T any] interface {
	proto.Message
	*T
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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