upload

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoFilesErr           = errors.New("failed to find dependency files")
	PollingTerminatedErr = errors.New("progress polling terminated due to long queue times")
	EmptyFileErr         = errors.New("tried to upload empty file")
	InitScanErr          = errors.New("failed to initialize a scan")
)

Functions

This section is empty.

Types

type DebrickedOptions

type DebrickedOptions struct {
	FileGroups             file.Groups
	GitMetaObject          git.MetaObject
	IntegrationsName       string
	CallGraphUploadTimeout int
	VersionHint            bool
}

type IOptions

type IOptions interface{}

type IUploader

type IUploader interface {
	Upload(o IOptions) (*UploadResult, error)
}

type UploadResult

type UploadResult struct {
	VulnerabilitiesFound           int               `json:"vulnerabilitiesFound"`
	UnaffectedVulnerabilitiesFound int               `json:"unaffectedVulnerabilitiesFound"`
	AutomationsAction              string            `json:"automationsAction"`
	AutomationRules                []automation.Rule `json:"automationRules"`
	DetailsUrl                     string            `json:"detailsUrl"`
}

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

func NewUploader

func NewUploader(c client.IDebClient) (*Uploader, error)

func (*Uploader) Upload

func (uploader *Uploader) Upload(o IOptions) (*UploadResult, error)

Jump to

Keyboard shortcuts

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