Documentation ¶
Index ¶
- Constants
- func ShouldReportUsage() (reportUsage bool)
- type ReportFeature
- type ReportUsageAttribute
- type UsageReporter
- func (ur *UsageReporter) Report(features ...ReportFeature)
- func (ur *UsageReporter) SetSendToArtifactory(send bool) *UsageReporter
- func (ur *UsageReporter) SetSendToEcosystem(send bool) *UsageReporter
- func (ur *UsageReporter) SetSendToXray(send bool) *UsageReporter
- func (ur *UsageReporter) WaitForResponses() (err error)
Constants ¶
View Source
const (
ReportUsagePrefix = "Usage Report:"
)
Variables ¶
This section is empty.
Functions ¶
func ShouldReportUsage ¶
func ShouldReportUsage() (reportUsage bool)
Types ¶
type ReportFeature ¶
type ReportFeature struct { FeatureId string ClientId string Attributes []ReportUsageAttribute }
type ReportUsageAttribute ¶
type UsageReporter ¶
type UsageReporter struct { ProductId string // contains filtered or unexported fields }
func NewUsageReporter ¶
func NewUsageReporter(productId string, serverDetails *config.ServerDetails) *UsageReporter
func (*UsageReporter) Report ¶
func (ur *UsageReporter) Report(features ...ReportFeature)
Report usage to Artifactory, Xray and Ecosystem
func (*UsageReporter) SetSendToArtifactory ¶
func (ur *UsageReporter) SetSendToArtifactory(send bool) *UsageReporter
func (*UsageReporter) SetSendToEcosystem ¶
func (ur *UsageReporter) SetSendToEcosystem(send bool) *UsageReporter
func (*UsageReporter) SetSendToXray ¶
func (ur *UsageReporter) SetSendToXray(send bool) *UsageReporter
func (*UsageReporter) WaitForResponses ¶
func (ur *UsageReporter) WaitForResponses() (err error)
Click to show internal directories.
Click to hide internal directories.