exporter

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Defect Dojo API Test

Writing a file

curl --location --request POST 'https://defectdojo.batcave.internal.cms.gov/api/v2/import-scan/' \
--header 'Authorization: Token 6dbd46fb21e8e5262e92d817d34cd7127d3854bb' \
--form 'scan_date="2022-08-23"' \
--form 'file=@"/Users/bacchus/Code/gatecheckdev/gatecheck/test/grype_python.json"' \
--form 'engagement="10"' \
--form 'scan_type="Anchore Grype"' \
--form 'auto_create_context="True"' -m 180
curl --location --request POST 'https://defectdojo.batcave.internal.cms.gov/api/v2/import-scan/' \
--header 'Authorization: Token 6dbd46fb21e8e5262e92d817d34cd7127d3854bb' \
--form 'product_name="Knight Light test"' \
--form 'scan_date="2022-08-23"' \
--form 'commit_hash="abc-hash-123"' \
--form 'file=@"/Users/bacchus/Code/gatecheckdev/gatecheck/test/grype_python.json"' \
--form 'engagement_name="engagement-test-1"' \
--form 'scan_type="Anchore Grype"' \
--form 'auto_create_context="True"' -m 180

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	ExportGrype(reportFile io.Reader) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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