upload

package
v1.8.16 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 20 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 DebrickedConfig added in v1.8.15

type DebrickedConfig struct {
	Overrides []purlConfig `json:"overrides" yaml:"overrides"`
}

func GetDebrickedConfig added in v1.8.15

func GetDebrickedConfig(path string) DebrickedConfig

type DebrickedConfigYAML added in v1.8.15

type DebrickedConfigYAML struct {
	Overrides []map[string]string `yaml:"overrides"`
}

type DebrickedOptions

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

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