client

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func DojoClient(url, apiToken, user string) (*Client, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL