Skip to content

Commit

Permalink
docs: annotate policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed May 4, 2017
1 parent 50fd293 commit 2ac77dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions policy.go
Expand Up @@ -44,12 +44,24 @@ type Policy interface {

// DefaultPolicy is the default implementation of the policy interface.
type DefaultPolicy struct {
// ID of the policy.
ID string `json:"id" gorethink:"id"`

// Description of the policy.
Description string `json:"description" gorethink:"description"`

// Subjects impacted by the policy.
Subjects []string `json:"subjects" gorethink:"subjects"`
// Effect of the policy
Effect string `json:"effect" gorethink:"effect"`

// Resources impacted by the policy.
Resources []string `json:"resources" gorethink:"resources"`

// Actions impacted by the policy.
Actions []string `json:"actions" gorethink:"actions"`

// Conditions under which the policy is active.
Conditions Conditions `json:"conditions" gorethink:"conditions"`
}

Expand Down

0 comments on commit 2ac77dd

Please sign in to comment.