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)
- type VisibilitySystemManager
Constants ¶
View Source
const (
ArtifactoryCallHomePrefix = "Artifactory Call Home:"
)
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)
type VisibilitySystemManager ¶ added in v2.57.2
type VisibilitySystemManager struct {
// contains filtered or unexported fields
}
func NewVisibilitySystemManager ¶ added in v2.57.2
func NewVisibilitySystemManager(serverDetails *config.ServerDetails) *VisibilitySystemManager
func (*VisibilitySystemManager) SendUsage ¶ added in v2.57.2
func (vsm *VisibilitySystemManager) SendUsage(commandName string) error
Click to show internal directories.
Click to hide internal directories.