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 Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
swagger:ignore
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` |
Click to show internal directories.
Click to hide internal directories.