Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashArguments ¶
Types ¶
type Config ¶
type Config struct {
Enabled bool
WarningsEnabled bool
HardStopsEnabled bool
ExactFailureWarn int
ExactFailureBlock int
SameToolFailureWarn int
SameToolFailureHalt int
NoProgressWarn int
NoProgressBlock int
IdenticalCallWarn int
IdenticalCallHalt int
MaxSignatures int
}
func DefaultConfig ¶
func DefaultConfig() Config
func (Config) Normalized ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) *Controller
func (*Controller) After ¶
func (c *Controller) After(observation Observation) Decision
type Decision ¶
type Decision struct {
Action Action
Code string
Tool string
ArgsHash string
Count int
Threshold int
Message string
}
func (Decision) AllowsExecution ¶
type Observation ¶
Click to show internal directories.
Click to hide internal directories.