Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( SignalStart = prefix + "-start" SignalPing = prefix + "-ping" )
Variables ¶
This section is empty.
Functions ¶
func CreateManager ¶
func CreateManager( logger logr.Logger, restConfig *rest.Config, gatewaysCounter workflows.DiscoveredGatewaysCounter, fixedPayload Payload, reportCfg ReportConfig, ) (telemetry.Manager, error)
CreateManager creates telemetry manager using the provided rest.Config.
func SetupAnonymousReports ¶
func SetupAnonymousReports( ctx context.Context, kubeCfg *rest.Config, clientsProvider GatewayClientsProvider, reportCfg ReportConfig, instanceID interface{ String() string }, ) (func(), error)
SetupAnonymousReports sets up and starts the anonymous reporting and returns a cleanup function and an error. In case of no error returned - the caller is responsible to call the returned function - to stop the reports sending.
Types ¶
type GatewayClientsProvider ¶
type GatewayClientsProvider interface {
	GatewayClients() []*adminapi.Client
	GatewayClientsCount() int
}
    GatewayClientsProvider is an interface that provides clients for the currently discovered Gateway instances.
type Payload ¶
type Payload = types.ProviderReport
type ReportConfig ¶
type ReportConfig struct {
	SplunkEndpoint                   string
	SplunkEndpointInsecureSkipVerify bool
	TelemetryPeriod                  time.Duration
	ReportValues                     ReportValues
}
    type ReportValues ¶
 Click to show internal directories. 
   Click to hide internal directories.