xsc

package
v1.43.1 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: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XscServicesManager

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

XscServicesManager defines the http client and general configuration

func New

func New(config config.Config) (*XscServicesManager, error)

New creates a service manager to interact with Xsc

func (*XscServicesManager) AddAnalyticsGeneralEvent

func (sm *XscServicesManager) AddAnalyticsGeneralEvent(event services.XscAnalyticsGeneralEvent) (string, error)

AddAnalyticsGeneralEvent will send an analytics metrics general event to Xsc and return MSI (multi scan id) generated by Xsc.

func (*XscServicesManager) Client

Client will return the http client

func (*XscServicesManager) Config

func (sm *XscServicesManager) Config() config.Config

func (*XscServicesManager) GetAnalyticsGeneralEvent

func (sm *XscServicesManager) GetAnalyticsGeneralEvent(msi string) (*services.XscAnalyticsGeneralEvent, error)

GetAnalyticsGeneralEvent returns general event that match the msi provided.

func (*XscServicesManager) GetVersion

func (sm *XscServicesManager) GetVersion() (string, error)

GetVersion will return the Xsc version

func (*XscServicesManager) SendXscLogErrorRequest

func (sm *XscServicesManager) SendXscLogErrorRequest(errorLog *services.ExternalErrorLog) error

func (*XscServicesManager) UpdateAnalyticsGeneralEvent

func (sm *XscServicesManager) UpdateAnalyticsGeneralEvent(event services.XscAnalyticsGeneralEventFinalize) error

UpdateAnalyticsGeneralEvent upon completion of the scan and we have all the results to report on, we send a finalized analytics metrics event with information matching an existing event's msi.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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