xsc

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateXscServiceManager

func CreateXscServiceManager(serviceDetails *config.ServerDetails) (*xsc.XscServicesManager, error)

func IsReportLogErrorEventPossible

func IsReportLogErrorEventPossible(xscManager *xsc.XscServicesManager) bool

Determines if reporting the error is feasible.

func ReportError

func ReportError(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 SendXscLogMessageIfEnabled

func SendXscLogMessageIfEnabled(errorLog *services.ExternalErrorLog, xscManager *xsc.XscServicesManager) error

Types

type AnalyticsMetricsService

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

func NewAnalyticsMetricsService

func NewAnalyticsMetricsService(serviceDetails *config.ServerDetails) *AnalyticsMetricsService

func (*AnalyticsMetricsService) AddGeneralEvent

func (ams *AnalyticsMetricsService) AddGeneralEvent(event *xscservices.XscAnalyticsGeneralEvent)

func (*AnalyticsMetricsService) AddScanFindingsToXscAnalyticsGeneralEventFinalize

func (ams *AnalyticsMetricsService) AddScanFindingsToXscAnalyticsGeneralEventFinalize(findingsAmount int)

func (*AnalyticsMetricsService) CreateGeneralEvent

func (*AnalyticsMetricsService) CreateXscAnalyticsGeneralEventFinalizeFromAuditResults

func (ams *AnalyticsMetricsService) CreateXscAnalyticsGeneralEventFinalizeFromAuditResults(auditResults *utils.Results) *xscservices.XscAnalyticsGeneralEventFinalize

func (*AnalyticsMetricsService) FinalizeEvent

func (*AnalyticsMetricsService) GetGeneralEvent

func (*AnalyticsMetricsService) GetMsi

func (ams *AnalyticsMetricsService) GetMsi() string

func (*AnalyticsMetricsService) GetStartTime

func (ams *AnalyticsMetricsService) GetStartTime() time.Time

func (*AnalyticsMetricsService) SetFinalizeEvent

func (ams *AnalyticsMetricsService) SetFinalizeEvent(finalizeEvent *xscservices.XscAnalyticsGeneralEventFinalize)

func (*AnalyticsMetricsService) SetMsi

func (ams *AnalyticsMetricsService) SetMsi(msi string)

func (*AnalyticsMetricsService) SetShouldReportEvents

func (ams *AnalyticsMetricsService) SetShouldReportEvents(shouldReportEvents bool)

func (*AnalyticsMetricsService) SetStartTime

func (ams *AnalyticsMetricsService) SetStartTime()

func (*AnalyticsMetricsService) ShouldReportEvents

func (ams *AnalyticsMetricsService) ShouldReportEvents() bool

func (*AnalyticsMetricsService) UpdateAndSendXscAnalyticsGeneralEventFinalize

func (ams *AnalyticsMetricsService) UpdateAndSendXscAnalyticsGeneralEventFinalize(err error)

func (*AnalyticsMetricsService) UpdateGeneralEvent

func (*AnalyticsMetricsService) UpdateXscAnalyticsGeneralEventFinalizeStatus

func (ams *AnalyticsMetricsService) UpdateXscAnalyticsGeneralEventFinalizeStatus(status xscservices.EventStatus)

func (*AnalyticsMetricsService) UpdateXscAnalyticsGeneralEventFinalizeWithTotalScanDuration

func (ams *AnalyticsMetricsService) UpdateXscAnalyticsGeneralEventFinalizeWithTotalScanDuration()

func (*AnalyticsMetricsService) XscManager

func (ams *AnalyticsMetricsService) XscManager() *xsc.XscServicesManager

Jump to

Keyboard shortcuts

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