builtins

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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/

Variables

This section is empty.

Functions

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