Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SeverityNames = util.NewStringSetWithValues([]string{
"info", "low", "medium", "high", "critical",
})
Functions ¶
func ParseFailThresholds ¶
func RegisterCIIntegration ¶
func RegisterCIIntegration(integ func(context.Context, *jnode.Node) CIIntegration)
Types ¶
type Assessment ¶
type Assessment struct {
ID string `json:"assessmentId"`
URL string `json:"appUrl"`
Title string
Module string
Category string
Markdown string
Findings []Finding
Failed bool `json:"-"`
}
func (*Assessment) HasFailures ¶
type Assessments ¶
type Assessments []Assessment
func FindCIEnvAssessments ¶
func FindCIEnvAssessments(client *api.Client) (Assessments, error)
type CIIntegration ¶
type CIIntegration interface {
Update(ctx context.Context, assessments Assessments)
}
type CIIntegrations ¶
type CIIntegrations []func(context.Context, *jnode.Node) CIIntegration
Click to show internal directories.
Click to hide internal directories.