Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Name string Description string Package string Roles []RoleDefinition SilentRoles []RoleDefinition DefaultRole string Policies []PolicyDefinition }
type PolicyDefinition ¶
type PolicyDefinition struct { // Name must begin with either "Allow" or "Deny" prefix. The prefix determines if the returned value when a policy matches will be either Allow or Deny. Name string // Description expresses the comment that will be added above the generated policy function. Description string MatchResourcePathExactly string MatchResourcePathByMask string MatchAnyAction []string MatchEachPredicate []PredicateDefinition MatchAnyPredicate []PredicateDefinition }
func (*PolicyDefinition) Validate ¶
func (p *PolicyDefinition) Validate() (err error)
type PredicateDefinition ¶
type RoleDefinition ¶
func (*RoleDefinition) Validate ¶
func (r *RoleDefinition) Validate() error
Click to show internal directories.
Click to hide internal directories.