usagerep

package
v3.0.11+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "https://usage.projectcalico.org/UsageCheck/calicoVersionCheck?"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UsageReporter

type UsageReporter struct {
	InitialDelay time.Duration
	BaseURL      string
	// contains filtered or unexported fields
}

func New

func New(
	initialDelay time.Duration,
	interval time.Duration,
	statsUpdateC <-chan calc.StatsUpdate,
	configUpdateC <-chan map[string]string,
) *UsageReporter

func (*UsageReporter) PeriodicallyReportUsage

func (u *UsageReporter) PeriodicallyReportUsage(ctx context.Context)

func (*UsageReporter) ReportUsage

func (u *UsageReporter) ReportUsage(clusterGUID, clusterType, calicoVersion string, stats calc.StatsUpdate)

Jump to

Keyboard shortcuts

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