appStatus

package
v0.6.24 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

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