reporting

package
v1.103.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReportingInfo

func GetReportingInfo(appID string) *types.ReportingInfo

func GetReportingInfoHeaders added in v1.103.2

func GetReportingInfoHeaders(reportingInfo *types.ReportingInfo) map[string]string

func Init

func Init() error

func InjectReportingInfoHeaders

func InjectReportingInfoHeaders(req *http.Request, reportingInfo *types.ReportingInfo)

func WaitAndReportPreflightChecks added in v1.98.0

func WaitAndReportPreflightChecks(appID string, sequence int64, isSkipPreflights bool, isCLI bool) error

Types

type AirgapReporter added in v1.98.0

type AirgapReporter struct {
}

func (*AirgapReporter) SubmitAppInfo added in v1.98.0

func (r *AirgapReporter) SubmitAppInfo(appID string) error

func (*AirgapReporter) SubmitPreflightData added in v1.98.0

func (r *AirgapReporter) SubmitPreflightData(license *kotsv1beta1.License, appID string, clusterID string, sequence int64, skipPreflights bool, installStatus storetypes.DownstreamVersionStatus, isCLI bool, preflightStatus string, appStatus string) error

type Distribution added in v1.100.3

type Distribution int64
const (
	UnknownDistribution Distribution = iota
	AKS
	DigitalOcean
	EKS
	GKE
	GKEAutoPilot
	K0s
	K3s
	Kind
	Kurl
	MicroK8s
	Minikube
	OpenShift
	RKE2
	Tanzu
)

func GetDistribution added in v1.100.3

func GetDistribution(clientset kubernetes.Interface) Distribution

func (Distribution) String added in v1.100.3

func (d Distribution) String() string

type OnlineReporter added in v1.98.0

type OnlineReporter struct {
}

func (*OnlineReporter) SubmitAppInfo added in v1.98.0

func (r *OnlineReporter) SubmitAppInfo(appID string) error

func (*OnlineReporter) SubmitPreflightData added in v1.98.0

func (r *OnlineReporter) SubmitPreflightData(license *kotsv1beta1.License, appID string, clusterID string, sequence int64, skipPreflights bool, installStatus storetypes.DownstreamVersionStatus, isCLI bool, preflightStatus string, appStatus string) error

type Reporter added in v1.98.0

type Reporter interface {
	SubmitAppInfo(appID string) error
	SubmitPreflightData(license *kotsv1beta1.License, appID string, clusterID string, sequence int64, skipPreflights bool, installStatus storetypes.DownstreamVersionStatus, isCLI bool, preflightStatus string, appStatus string) error
}

func GetReporter added in v1.98.0

func GetReporter() Reporter

Jump to

Keyboard shortcuts

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