Documentation ¶
Index ¶
- Variables
- func GetMachineID(cliConfig *config.CLI) string
- func GetPlatformInstanceID(cliConfig *config.CLI, self *managementv1.Self) string
- func GetPlatformUserID(cliConfig *config.CLI, self *managementv1.Self) string
- func StartCLI(cliConfig *config.CLI)
- func StartControlPlane(config *config.VirtualClusterConfig)
- type CLICollector
- type ChartInfo
- type ControlPlaneCollector
- type ErrorSeverityType
- type KubernetesVersion
Constants ¶
This section is empty.
Variables ¶
View Source
var SyncerVersion = "dev"
Functions ¶
func GetMachineID ¶ added in v0.18.0
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(cliConfig *config.CLI, self *managementv1.Self) string
GetPlatformInstanceID returns the loft instance id
func GetPlatformUserID ¶ added in v0.18.0
func GetPlatformUserID(cliConfig *config.CLI, self *managementv1.Self) string
GetPlatformUserID returns the loft instance id
func StartCLI ¶ added in v0.20.0
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(cliConfig *config.CLI, 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
Click to show internal directories.
Click to hide internal directories.