Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyFile ¶
type PolicyFile struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec PolicySpec `yaml:"spec"` }
PolicyFile is the structure of the policy file
func PoliciesFromPaths ¶
func PoliciesFromPaths(paths []string) ([]PolicyFile, error)
PoliciesFromPaths returns a slice of policies from the given paths
func (PolicyFile) DefaultActions ¶
func (p PolicyFile) DefaultActions() []string
func (PolicyFile) Description ¶
func (p PolicyFile) Description() string
func (PolicyFile) Name ¶
func (p PolicyFile) Name() string
func (PolicyFile) Rules ¶
func (p PolicyFile) Rules() []Rule
func (PolicyFile) Scope ¶
func (p PolicyFile) Scope() []string
func (PolicyFile) Validate ¶
func (p PolicyFile) Validate() error
type PolicySpec ¶
Click to show internal directories.
Click to hide internal directories.