Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) CreateEngagement(name, scanStartTime string, tags []string, productID int32) (*types.EngagementResponse, error)
- func (client *Client) CreateFinding(title, description, severity, target, date, numericalSeverity string, ...) (types.FindingCreateResponse, error)
- func (client *Client) CreateTest(scanStartTime, title, description string, tags []string, engagementID int32) (types.TestCreateResponse, error)
Constants ¶
View Source
const DojoTestType = 119
DojoTestType is the Defect dojo Enum ID for "ci/cd test".
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { UserID int32 DojoUser types.DojoUser // contains filtered or unexported fields }
Client represents a DefectDojo client.
func DojoClient ¶
DojoClient instantiates the DefectDojo client.
func (*Client) CreateEngagement ¶
func (client *Client) CreateEngagement( name, scanStartTime string, tags []string, productID int32, ) (*types.EngagementResponse, error)
CreateEngagement creates a new engagement in defectdojo.
func (*Client) CreateFinding ¶
func (client *Client) CreateFinding( title, description, severity, target, date, numericalSeverity string, tags []string, testID, line, cwe, foundBy int32, falseP, duplicate bool, cvssScore float64, ) (types.FindingCreateResponse, error)
CreateFinding creates a new finding in defectdojo.
func (*Client) CreateTest ¶
func (client *Client) CreateTest( scanStartTime, title, description string, tags []string, engagementID int32, ) (types.TestCreateResponse, error)
CreateTest creates a new Test in defectdojo.
Click to show internal directories.
Click to hide internal directories.