xsc

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const MinXscVersionForErrorReport = "1.7.7"

Variables

This section is empty.

Functions

func CreateAnalyticsEvent added in v1.13.2

func CreateAnalyticsEvent(product xscservices.ProductName, eventType xscservices.EventType, serviceDetails *config.ServerDetails) *xscservices.XscAnalyticsGeneralEvent

func CreateFinalizedEvent added in v1.13.2

func CreateFinalizedEvent(multiScanId string, startTime time.Time, totalFindings int, err error) xscservices.XscAnalyticsGeneralEventFinalize

func CreateXscService added in v1.13.2

func CreateXscService(xrayVersion string, serviceDetails *config.ServerDetails) (xsc.XscService, error)

func GetConfigProfile added in v1.8.0

func GetConfigProfile(xrayVersion, xscVersion string, serverDetails *config.ServerDetails, profileName string) (*services.ConfigProfile, error)

func GetScanEvent added in v1.13.2

func GetScanEvent(xrayVersion, xscVersion, multiScanId string, serviceDetails *config.ServerDetails) (*xscservices.XscAnalyticsGeneralEvent, error)

func IsReportLogErrorEventPossible

func IsReportLogErrorEventPossible(xscVersion string) bool

Determines if reporting the error is feasible.

func ReportError

func ReportError(xrayVersion, xscVersion string, serverDetails *config.ServerDetails, errorToReport error, source string) error

Sends an error report when the Xsc service is enabled. Errors returned by this function typically do not disrupt the flow, as reporting errors is optional.

func SendNewScanEvent added in v1.13.2

func SendNewScanEvent(xrayVersion, xscVersion string, serviceDetails *config.ServerDetails, event *xscservices.XscAnalyticsGeneralEvent) (multiScanId string, startTime time.Time)

func SendScanEndedEvent added in v1.13.2

func SendScanEndedEvent(xrayVersion, xscVersion string, serviceDetails *config.ServerDetails, multiScanId string, startTime time.Time, totalFindings int, scanError error)

func SendScanEndedWithResults added in v1.13.2

func SendScanEndedWithResults(serviceDetails *config.ServerDetails, cmdResults *results.SecurityCommandResults)

Types

This section is empty.

Jump to

Keyboard shortcuts

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