Documentation ¶
Overview ¶
Package enforcer defines policy enforcement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conform ¶
type Conform struct { Policies []*PolicyDeclaration `yaml:"policies"` // contains filtered or unexported fields }
Conform is a struct that conform.yaml gets decoded into.
type PolicyDeclaration ¶
type PolicyDeclaration struct { Type string `yaml:"type"` Spec interface{} `yaml:"spec"` }
PolicyDeclaration allows a user to declare an arbitrary type along with a spec that will be decoded into the appropriate concrete type.
Click to show internal directories.
Click to hide internal directories.