engine

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package engine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompiler

func NewCompiler(directory packr.Box, logger logrus.FieldLogger) (*ast.Compiler, error)

Types

type AuthorizationResult

type AuthorizationResult struct {
	// Allowed is true if the request should be allowed and false otherwise.
	//
	// required: true
	Allowed bool `json:"allowed"`
}

AuthorizationResult is the result of an access control decision. It contains the decision outcome. swagger:model authorizationResult

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

swagger:ignore

func NewEngine

func NewEngine(
	compiler *ast.Compiler,
	h herodot.Writer,
) *Engine

func (*Engine) Evaluate

func (h *Engine) Evaluate(e evaluator) httprouter.Handle

type Registry

type Registry interface {
	Engine() *Engine
}

Directories

Path Synopsis
Package ladon
Package ladon
rego
Package rego is a placeholder package to force download this package and its subpackages when we run `go mod vendor`
Package rego is a placeholder package to force download this package and its subpackages when we run `go mod vendor`
rego/condition
Package condition is placeholder package to force download this package when we run `go mod vendor`
Package condition is placeholder package to force download this package when we run `go mod vendor`
rego/core
Package core is placeholder package to force download this package when we run `go mod vendor`
Package core is placeholder package to force download this package when we run `go mod vendor`
rego/exact
Package exact is placeholder package to force download this package when we run `go mod vendor`
Package exact is placeholder package to force download this package when we run `go mod vendor`
rego/glob
Package exact is placeholder package to force download this package when we run `go mod vendor`
Package exact is placeholder package to force download this package when we run `go mod vendor`
rego/regex
Package regex is placeholder package to force download this package when we run `go mod vendor`
Package regex is placeholder package to force download this package when we run `go mod vendor`

Jump to

Keyboard shortcuts

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