reporter

package
v0.0.202 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Install
	InstallStepPreChecks                   CliEventType = "install.pre-installation-checks"
	InstallStepDownloadRuntimeDefinitions  CliEventType = "install.download-runtime-definitions"
	InstallStepGetServerAddress            CliEventType = "install.get-server-address"
	InstallStepCreateRuntimeOnPlatform     CliEventType = "install.create-runtime-on-platform"
	InstallStepBootstrapRepo               CliEventType = "install.bootstrap-repo"
	InstallStepCreateProject               CliEventType = "install.create-project"
	InstallStepCreateConfigMap             CliEventType = "install.create-codefresh-cm"
	InstallStepCreateComponent             CliEventType = "install.create-component"
	InstallStepInstallComponenets          CliEventType = "install.install-components"
	InstallStepCreateGitsource             CliEventType = "install.create-gitsource"
	InstallStepCreateMarketplaceGitsource  CliEventType = "install.create-marketplace-gitsource"
	InstallStepCompleteRuntimeInstallation CliEventType = "install.complete-runtime-installation"
	InstallStepCreateDefaultGitIntegration CliEventType = "install.create-default-git-integration"

	// Uninstall
	UninstallStepCheckRuntimeExists            CliEventType = "uninstall.check-runtime-exists"
	UninstallStepUninstallRepo                 CliEventType = "uninstall.uninstall-repo"
	UninstallStepDeleteRuntimeFromPlatform     CliEventType = "uninstall.delete-runtime-from-platform"
	UninstallStepCompleteRuntimeUninstallation CliEventType = "uninstall.complete-runtime-uninstall"

	// General
	SIGNAL_TERMINATION CliEventType = "signal-termination"

	SUCCESS  CliStepStatus = "SUCCESS"
	FAILURE  CliStepStatus = "FAILURE"
	CANCELED CliStepStatus = "CANCELED"
)

Variables

This section is empty.

Functions

func Init

func Init(user *codefresh.User)

Types

type AnalyticsReporter

type AnalyticsReporter interface {
	ReportStep(CliStepData)
	Close()
}

func G

G returns the global reporter

type CliEventType

type CliEventType string

type CliStepData

type CliStepData struct {
	Event       CliEventType
	Status      CliStepStatus
	Description string
	Err         error
}

type CliStepStatus

type CliStepStatus string

Jump to

Keyboard shortcuts

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