reporter

package
v0.0.205 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

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

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

	// General
	SIGNAL_TERMINATION CliStep = "signal-termination"

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

	InstallFlow   FlowType = "installation"
	UninstallFlow FlowType = "uninstallation"
)

Variables

This section is empty.

Functions

func Init

func Init(user *codefresh.User, flow FlowType)

Types

type AnalyticsReporter

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

func G

G returns the global reporter

type CliStep added in v0.0.204

type CliStep string

type CliStepData

type CliStepData struct {
	Step        CliStep
	Status      CliStepStatus
	Description string
	Err         error
}

type CliStepStatus

type CliStepStatus string

type FlowType added in v0.0.204

type FlowType string

Jump to

Keyboard shortcuts

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