engine

package
v0.5.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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

Jump to

Keyboard shortcuts

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