Documentation ¶
Index ¶
- Constants
- func CreateAnalyticsEvent(product xscservices.ProductName, eventType xscservices.EventType, ...) *xscservices.XscAnalyticsGeneralEvent
- func CreateFinalizedEvent(multiScanId string, startTime time.Time, totalFindings int, err error) xscservices.XscAnalyticsGeneralEventFinalize
- func CreateXscService(xrayVersion string, serviceDetails *config.ServerDetails) (xsc.XscService, error)
- func GetConfigProfile(xrayVersion, xscVersion string, serverDetails *config.ServerDetails, ...) (*services.ConfigProfile, error)
- func GetScanEvent(xrayVersion, xscVersion, multiScanId string, ...) (*xscservices.XscAnalyticsGeneralEvent, error)
- func IsReportLogErrorEventPossible(xscVersion string) bool
- func ReportError(xrayVersion, xscVersion string, serverDetails *config.ServerDetails, ...) error
- func SendNewScanEvent(xrayVersion, xscVersion string, serviceDetails *config.ServerDetails, ...) (multiScanId string, startTime time.Time)
- func SendScanEndedEvent(xrayVersion, xscVersion string, serviceDetails *config.ServerDetails, ...)
- func SendScanEndedWithResults(serviceDetails *config.ServerDetails, ...)
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 ¶
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 SendScanEndedWithResults ¶ added in v1.13.2
func SendScanEndedWithResults(serviceDetails *config.ServerDetails, cmdResults *results.SecurityCommandResults)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.