Help us shape the future of Go! Take the 2026 Go Developer Survey

ape

package
v0.46.16 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceCondition = "resourcecondition"
	RequestCondition  = "requestcondition"
)

Variables

This section is empty.

Functions

func ParseAPEChain

func ParseAPEChain(chain *apechain.Chain, rules []string) error

ParseAPEChain parses APE chain rules.

func ParseAPEChainBinaryOrJSON

func ParseAPEChainBinaryOrJSON(chain *apechain.Chain, path string) error

func ParseAPERule

func ParseAPERule(r *apechain.Rule, rule string) error

ParseAPERule parses access-policy-engine statement from the following form: <status>[:status_detail] <action>... [<condition>...] <resource>...

Examples: deny Object.Put * deny:QuotaLimitReached Object.Put * allow Object.Put * allow Object.Get ResourceCondition:Department=HR RequestCondition:Actor=ownerA * allow Object.Get any ResourceCondition:Department=HR RequestCondition:Actor=ownerA * allow Object.Get all ResourceCondition:Department=HR RequestCondition:Actor=ownerA * allow Object.* * allow Container.* *

Types

This section is empty.

Jump to

Keyboard shortcuts

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