Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PoliciesFromPaths ¶
func PoliciesFromPaths(paths []string) ([]k8s.PolicyInterface, error)
PoliciesFromPaths returns a slice of policies from the given paths
Types ¶
type PolicyFile ¶
type PolicyFile struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata Metadata `yaml:"metadata"` Spec k8s.PolicySpec `yaml:"spec"` }
PolicyFile is the structure of the policy file
func (PolicyFile) GetDefaultActions ¶ added in v0.17.2
func (p PolicyFile) GetDefaultActions() []string
func (PolicyFile) GetDescription ¶ added in v0.17.2
func (p PolicyFile) GetDescription() string
func (PolicyFile) GetName ¶ added in v0.17.2
func (p PolicyFile) GetName() string
func (PolicyFile) GetRules ¶ added in v0.17.2
func (p PolicyFile) GetRules() []k8s.Rule
func (PolicyFile) GetScope ¶ added in v0.17.2
func (p PolicyFile) GetScope() []string
func (PolicyFile) Validate ¶
func (p PolicyFile) Validate() error
Click to show internal directories.
Click to hide internal directories.