Documentation
¶
Overview ¶
Package ast is the parsed form of a Writ policy file. It retains predicates in authored order and keeps negation confined to deny selectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowRule ¶
AllowRule carries plain expressions: negation on the allow path is unrepresentable, mirroring the IL's Selector / NegatableSelector split.
type File ¶
type File struct {
Items []Item
}
File is a parsed policy file: a sequence of macro definitions and rules.
type Item ¶
type Item interface {
// contains filtered or unexported methods
}
Item is one statement: *MacroDef, *AllowRule, or *DenyRule.
type Kind ¶
type Kind int
Kind is one of the three matcher kinds. A macro declares one; every selector position implies one.
type Name ¶
type Name struct{ Value Value }
Name is an account selector; its established glob semantics are retained.
type NegExpr ¶
NegExpr is an expression plus a bit; `!` applies to the whole expression, never to a predicate within a filter.