Help us shape the future of Go! Take the 2026 Go Developer Survey

appStatus

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	HealthStatusSuspended           string = "Suspended"
	HealthStatusHibernatingFilter   string = "HIBERNATING"
	HealthStatusHibernating         string = "Hibernated"
	HealthStatusPartiallyHibernated string = "Partially Hibernated"
)

Variables

This section is empty.

Functions

func GetHibernationStatus added in v0.7.1

func GetHibernationStatus(status health.HealthStatusCode) string

Types

type AppStatusRequestResponseDto

type AppStatusRequestResponseDto struct {
	AppId                       int                          `json:"appId"`
	InstalledAppId              int                          `json:"installedAppId"`
	EnvironmentStatusContainers []EnvironmentStatusContainer `json:"environmentStatusContainers"`
}

type AppStatusService

type AppStatusService interface {
	UpdateStatusWithAppIdEnvId(appIdEnvId, envId int, status string) error
	DeleteWithAppIdEnvId(tx *pg.Tx, appId, envId int) error
}

type AppStatusServiceImpl

type AppStatusServiceImpl struct {
	// contains filtered or unexported fields
}

func NewAppStatusServiceImpl

func NewAppStatusServiceImpl(appStatusRepository appStatus.AppStatusRepository, logger *zap.SugaredLogger, enforcer casbin.Enforcer, enforcerUtil rbac.EnforcerUtil) *AppStatusServiceImpl

func (*AppStatusServiceImpl) DeleteWithAppIdEnvId

func (impl *AppStatusServiceImpl) DeleteWithAppIdEnvId(tx *pg.Tx, appId, envId int) error

func (*AppStatusServiceImpl) UpdateStatusWithAppIdEnvId

func (impl *AppStatusServiceImpl) UpdateStatusWithAppIdEnvId(appId, envId int, status string) error

type EnvironmentStatusContainer

type EnvironmentStatusContainer struct {
	EnvId  int    `json:"envId"`
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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