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

appStatus

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	HealthStatusSuspended   string = "Suspended"
	HealthStatusHibernating string = "HIBERNATING"
)

Variables

This section is empty.

Functions

This section is empty.

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