serverBean

package
v0.0.0-...-987a61a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerStatusHealthy       ServerStatus = "healthy"
	ServerStatusUpgrading     ServerStatus = "upgrading"
	ServerStatusUpgradeFailed ServerStatus = "upgradeFailed"
	ServerStatusUnknown       ServerStatus = "unknown"
	ServerStatusTimeout       ServerStatus = "timeout"

	InstallerCrdObjectStatusBlank      InstallerCrdObjectStatus = ""
	InstallerCrdObjectStatusDownloaded InstallerCrdObjectStatus = "Downloaded"
	InstallerCrdObjectStatusApplied    InstallerCrdObjectStatus = "Applied"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionResponse

type ActionResponse struct {
	Success bool `json:"success"`
}

type AppHealthStatusCode

type AppHealthStatusCode = string
const (
	AppHealthStatusProgressing AppHealthStatusCode = "Progressing"
	AppHealthStatusDegraded    AppHealthStatusCode = "Degraded"
)

type DevtronInstallationType

type DevtronInstallationType = string
const (
	DevtronInstallationTypeOssKubectl DevtronInstallationType = "oss_kubectl"
	DevtronInstallationTypeOssHelm    DevtronInstallationType = "oss_helm"
	DevtronInstallationTypeEnterprise DevtronInstallationType = "enterprise"
)

type HelmReleaseStatus

type HelmReleaseStatus = string
const (
	// HelmReleaseStatusUnknown indicates that a release is in an uncertain state.
	HelmReleaseStatusUnknown HelmReleaseStatus = "unknown"
	// HelmReleaseStatusDeployed indicates that the release has been pushed to Kubernetes.
	HelmReleaseStatusDeployed HelmReleaseStatus = "deployed"
	// HelmReleaseStatusUninstalled indicates that a release has been uninstalled from Kubernetes.
	HelmReleaseStatusUninstalled HelmReleaseStatus = "uninstalled"
	// HelmReleaseStatusSuperseded indicates that this release object is outdated and a newer one exists.
	HelmReleaseStatusSuperseded HelmReleaseStatus = "superseded"
	// HelmReleaseStatusFailed indicates that the release was not successfully deployed.
	HelmReleaseStatusFailed HelmReleaseStatus = "failed"
	// HelmReleaseStatusUninstalling indicates that a uninstall operation is underway.
	HelmReleaseStatusUninstalling HelmReleaseStatus = "uninstalling"
	// HelmReleaseStatusPendingInstall indicates that an install operation is underway.
	HelmReleaseStatusPendingInstall HelmReleaseStatus = "pending-install"
	// HelmReleaseStatusPendingUpgrade indicates that an upgrade operation is underway.
	HelmReleaseStatusPendingUpgrade HelmReleaseStatus = "pending-upgrade"
	// HelmReleaseStatusPendingRollback indicates that an rollback operation is underway.
	HelmReleaseStatusPendingRollback HelmReleaseStatus = "pending-rollback"
)

Describe the status of a release NOTE: Make sure to update cmd/helm/status.go when adding or modifying any of these statuses.

type InstallerCrdObjectStatus

type InstallerCrdObjectStatus = string

type ServerActionRequestDto

type ServerActionRequestDto struct {
	Action  string `json:"action,notnull" validate:"oneof=upgrade"`
	Version string `json:"version,notnull"`
}

type ServerInfoDto

type ServerInfoDto struct {
	CurrentVersion   string `json:"currentVersion,omitempty"`
	Status           string `json:"status,notnull" validate:"oneof=healthy upgrading upgradeFailed unknown timeout"`
	ReleaseName      string `json:"releaseName,notnull"`
	InstallationType string `json:"installationType,notnull" validate:"oneof=oss_kubectl oss_helm enterprise"`
}

type ServerStatus

type ServerStatus = string

Jump to

Keyboard shortcuts

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