applicationscan

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PriorityScore
	MaxScore               = 10.0
	ScoreInformation       = 1.0
	ScoreLow               = 3.0
	ScoreMedium            = 6.0
	ScoreHigh              = 8.0
	ScoreOther             = 1.0
	ScorePrefixInformation = "information"
	ScorePrefixLow         = "low"
	ScorePrefixMedium      = "medium"
	ScorePrefixHigh        = "high"
)

Variables

This section is empty.

Functions

func NewApplicationScanClient

func NewApplicationScanClient(port, path, apiKeyName, apiKeyHeader string, l logging.Logger) (applicationScanAPI, error)

Types

type ApplicationScanClient

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

func (*ApplicationScanClient) AscanProgress

func (a *ApplicationScanClient) AscanProgress(scanid string) (map[string]interface{}, error)

func (*ApplicationScanClient) AscanScan

func (a *ApplicationScanClient) AscanScan(url string, recurse string, inscopeonly string, scanpolicyname string, method string, postdata string, contextid string) (map[string]interface{}, error)

func (*ApplicationScanClient) AscanStatus

func (a *ApplicationScanClient) AscanStatus(scanid string) (map[string]interface{}, error)

func (*ApplicationScanClient) HandleActiveScan

func (a *ApplicationScanClient) HandleActiveScan() error

func (*ApplicationScanClient) HandleBasicSetting

func (a *ApplicationScanClient) HandleBasicSetting(name string, maxDepth, maxChildren uint32) error

func (*ApplicationScanClient) HandleSpiderScan

func (a *ApplicationScanClient) HandleSpiderScan(contextName string, maxChildren uint32) error

func (*ApplicationScanClient) IncludeInContext

func (a *ApplicationScanClient) IncludeInContext(contextname string, regex string) (map[string]interface{}, error)

func (*ApplicationScanClient) Jsonreport

func (a *ApplicationScanClient) Jsonreport() ([]byte, error)

func (*ApplicationScanClient) NewSession

func (a *ApplicationScanClient) NewSession(name string) (map[string]interface{}, error)

func (*ApplicationScanClient) Request

func (a *ApplicationScanClient) Request(path string, queryParams map[string]string) (map[string]interface{}, error)

func (*ApplicationScanClient) RequestOther

func (a *ApplicationScanClient) RequestOther(path string, queryParams map[string]string) ([]byte, error)

func (*ApplicationScanClient) SetOptionMaxChildren

func (a *ApplicationScanClient) SetOptionMaxChildren(i int) (map[string]interface{}, error)

func (*ApplicationScanClient) SetOptionMaxDepth

func (a *ApplicationScanClient) SetOptionMaxDepth(i int) (map[string]interface{}, error)

func (*ApplicationScanClient) SpiderScan

func (a *ApplicationScanClient) SpiderScan(url string, maxchildren string, recurse string, contextname string, subtreeonly string) (map[string]interface{}, error)

func (*ApplicationScanClient) SpiderStatus

func (a *ApplicationScanClient) SpiderStatus(scanid string) (map[string]interface{}, error)

func (*ApplicationScanClient) WaitForStartingZap

func (a *ApplicationScanClient) WaitForStartingZap(ctx context.Context) error

type SqsHandler

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

func NewSqsHandler

func NewSqsHandler(
	fc finding.FindingServiceClient,
	ac alert.AlertServiceClient,
	dc diagnosis.DiagnosisServiceClient,
	appc applicationScanAPI,
	l logging.Logger,
) *SqsHandler

func (*SqsHandler) CallAnalyzeAlert

func (s *SqsHandler) CallAnalyzeAlert(ctx context.Context, projectID uint32) error

func (*SqsHandler) GetBasicScanSetting

func (s *SqsHandler) GetBasicScanSetting(ctx context.Context, projectID, applicationScanID uint32) (*diagnosis.ApplicationScanBasicSetting, error)

func (*SqsHandler) HandleMessage

func (s *SqsHandler) HandleMessage(ctx context.Context, sqsMsg *types.Message) error

Jump to

Keyboard shortcuts

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