Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FunctionsMap helper functions FunctionsMap = template.FuncMap{ "Hide": HideSecret, } )
Functions ¶
Types ¶
type Data ¶
type Data struct { Branch string Commit *object.Commit Condition hook.Condition Object string Operator string Operand string Tag string Value string }
Data data to be used for message rendering
type Issue ¶
type Issue struct { Author string `json:"author"` Commit string `json:"commit"` Condition hook.ConditionType `json:"condition"` Email string `json:"email"` Handler hook.HandlerType `json:"handler"` Leaks []security.Leak `json:"leaks,omitempty"` Message string `json:"message"` Severity Score `json:"severity"` }
Issue analysis issue
func NewIssue ¶
func NewIssue(handlerType hook.HandlerType, conditionType hook.ConditionType, data Data, severity Score, messageTemplate string) Issue
NewIssue create new issue
type Score ¶
type Score int
Score type used by severity and confidence values
func (Score) MarshalJSON ¶
MarshalJSON marshal score to json
func (*Score) UnmarshalJSON ¶
UnmarshalJSON unmarshal json to score
Click to show internal directories.
Click to hide internal directories.