Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Challenge ¶
type Challenge struct {
Mode string `yaml:"mode"`
Asset *string `yaml:"asset,omitempty"`
Url *string `yaml:"url,omitempty"`
Parameters map[string]string `json:"parameters,omitempty"`
Runtime struct {
Mode string `yaml:"mode,omitempty"`
Asset string `yaml:"asset,omitempty"`
Probability float64 `yaml:"probability,omitempty"`
} `yaml:"runtime"`
}
type Network ¶
type Policy ¶
type Policy struct {
// Networks map of networks and prefixes to be loaded
Networks map[string][]Network `yaml:"networks"`
Conditions map[string][]string `yaml:"conditions"`
Challenges map[string]Challenge `yaml:"challenges"`
Rules []Rule `yaml:"rules"`
// Backends
// Deprecated
Backends map[string]string `json:"backends"`
}
type RuleAction ¶
type RuleAction string
const ( RuleActionPASS RuleAction = "PASS" RuleActionDENY RuleAction = "DENY" RuleActionBLOCK RuleAction = "BLOCK" RuleActionCHALLENGE RuleAction = "CHALLENGE" RuleActionCHECK RuleAction = "CHECK" RuleActionPOISON RuleAction = "POISON" )
Click to show internal directories.
Click to hide internal directories.