Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(cfg *config.Config, p *PolicyConfig)
Types ¶
type Policy ¶
type Policy struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Condition Condition `yaml:"condition"`
Action string `yaml:"action"`
Message string `yaml:"message"`
}
func LoadPolicies ¶
type PolicyConfig ¶
type PolicyConfig struct {
Scan *struct {
MinScore *int `yaml:"min_score"`
} `yaml:"scan"`
}
func LoadFromFile ¶
func LoadFromFile(path string) (*PolicyConfig, error)
func LoadFromURL ¶
func LoadFromURL(url string) (*PolicyConfig, error)
Click to show internal directories.
Click to hide internal directories.