Documentation ¶
Index ¶
- Constants
- func NewApplicationScanClient(port, path, apiKeyName, apiKeyHeader string, l logging.Logger) (applicationScanAPI, error)
- type ApplicationScanClient
- func (a *ApplicationScanClient) AscanProgress(scanid string) (map[string]interface{}, error)
- func (a *ApplicationScanClient) AscanScan(url string, recurse string, inscopeonly string, scanpolicyname string, ...) (map[string]interface{}, error)
- func (a *ApplicationScanClient) AscanStatus(scanid string) (map[string]interface{}, error)
- func (a *ApplicationScanClient) HandleActiveScan() error
- func (a *ApplicationScanClient) HandleBasicSetting(name string, maxDepth, maxChildren uint32) error
- func (a *ApplicationScanClient) HandleSpiderScan(contextName string, maxChildren uint32) error
- func (a *ApplicationScanClient) IncludeInContext(contextname string, regex string) (map[string]interface{}, error)
- func (a *ApplicationScanClient) Jsonreport() ([]byte, error)
- func (a *ApplicationScanClient) NewSession(name string) (map[string]interface{}, error)
- func (a *ApplicationScanClient) Request(path string, queryParams map[string]string) (map[string]interface{}, error)
- func (a *ApplicationScanClient) RequestOther(path string, queryParams map[string]string) ([]byte, error)
- func (a *ApplicationScanClient) SetOptionMaxChildren(i int) (map[string]interface{}, error)
- func (a *ApplicationScanClient) SetOptionMaxDepth(i int) (map[string]interface{}, error)
- func (a *ApplicationScanClient) SpiderScan(url string, maxchildren string, recurse string, contextname string, ...) (map[string]interface{}, error)
- func (a *ApplicationScanClient) SpiderStatus(scanid string) (map[string]interface{}, error)
- func (a *ApplicationScanClient) WaitForStartingZap(ctx context.Context) error
- type SqsHandler
- func (s *SqsHandler) CallAnalyzeAlert(ctx context.Context, projectID uint32) error
- func (s *SqsHandler) GetBasicScanSetting(ctx context.Context, projectID, applicationScanID uint32) (*diagnosis.ApplicationScanBasicSetting, error)
- func (s *SqsHandler) HandleMessage(ctx context.Context, sqsMsg *types.Message) error
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 ¶
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) 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) RequestOther ¶
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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.