Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultCollector ¶
type DefaultCollector struct {
// contains filtered or unexported fields
}
func NewDefaultCollector ¶
func NewDefaultCollector() *DefaultCollector
func (*DefaultCollector) RecordEndEvent ¶
func (d *DefaultCollector) RecordEndEvent(err error)
func (*DefaultCollector) RecordStartEvent ¶
func (d *DefaultCollector) RecordStartEvent(provider string)
func (*DefaultCollector) SetCLIData ¶
func (d *DefaultCollector) SetCLIData(command *cobra.Command, globalFlags *flags.GlobalFlags)
type EventCollector ¶
type EventCollector interface { // RecordStartEvent populates TelemetryRequest with the data about Command start and uploads the request to the telemetry backend RecordStartEvent(provider string) RecordEndEvent(err error) SetCLIData(*cobra.Command, *flags.GlobalFlags) }
var (
Collector EventCollector = NewDefaultCollector()
)
Click to show internal directories.
Click to hide internal directories.