ladon

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: 14 Imported by: 0

Documentation

Overview

Package ladon

Index

Constants

View Source
const (
	Allow = "allow"
	Deny  = "deny"
)
View Source
const (
	BasePath = "/engines/acp/ory/:flavor"
)

Variables

View Source
var EnabledFlavors = []string{"exact", "glob", "regex"}

Functions

func RoutesToObserve

func RoutesToObserve() []string

Types

type Context

type Context map[string]interface{}

type Engine

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

swagger:ignore

func NewEngine

func NewEngine(store kstorage.Manager, sh *kstorage.Handler, e *engine.Engine, h herodot.Writer) *Engine

func (*Engine) Register

func (e *Engine) Register(r *httprouter.Router)

type Input

type Input struct {
	// Resource is the resource that access is requested to.
	Resource string `json:"resource"`

	// Action is the action that is requested on the resource.
	Action string `json:"action"`

	// Subject is the subject that is requesting access.
	Subject string `json:"subject"`

	// Context is the request's environmental context.
	Context map[string]interface{} `json:"context"`
}

Input for checking if a request is allowed or not.

swagger:ignore

Directories

Path Synopsis
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`
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`
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`
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`
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`
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