telemetry

package
v0.20.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncerVersion = "dev"
)

Functions

func GetMachineID added in v0.18.0

func GetMachineID(log log.Logger) string

GetMachineID retrieves machine ID and encodes it together with users $HOME path and extra key to protect privacy. Returns a hex-encoded string.

func GetPlatformInstanceID added in v0.18.0

func GetPlatformInstanceID(self *managementv1.Self) string

GetPlatformInstanceID returns the loft instance id

func GetPlatformUserID added in v0.18.0

func GetPlatformUserID(self *managementv1.Self) string

GetPlatformUserID returns the loft instance id

func StartCLI added in v0.20.0

func StartCLI()

StartCLI starts collecting events and sending them to the backend from the CLI

func StartControlPlane added in v0.20.0

func StartControlPlane(config *config.VirtualClusterConfig)

Types

type CLICollector added in v0.20.0

type CLICollector interface {
	RecordCLI(self *managementv1.Self, err error)

	// Flush makes sure all events are sent to the backend
	Flush()
}
var CollectorCLI CLICollector = &noopCollector{}

type ChartInfo added in v0.18.0

type ChartInfo struct {
	Values  *config.VirtualClusterConfig
	Name    string
	Version string
}

type ControlPlaneCollector added in v0.20.0

type ControlPlaneCollector interface {
	RecordStart(ctx context.Context, config *config.VirtualClusterConfig)
	RecordError(ctx context.Context, config *config.VirtualClusterConfig, severity ErrorSeverityType, err error)

	// Flush makes sure all events are sent to the backend
	Flush()

	SetVirtualClient(virtualClient kubernetes.Interface)
}
var CollectorControlPlane ControlPlaneCollector = &noopCollector{}

type ErrorSeverityType added in v0.18.0

type ErrorSeverityType string
const (
	WarningSeverity ErrorSeverityType = "warning"
	ErrorSeverity   ErrorSeverityType = "error"
	FatalSeverity   ErrorSeverityType = "fatal"
	PanicSeverity   ErrorSeverityType = "panic"
)

type KubernetesVersion added in v0.18.0

type KubernetesVersion struct {
	Major      string `json:"major"`
	Minor      string `json:"minor"`
	GitVersion string `json:"gitVersion"`
}

Jump to

Keyboard shortcuts

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