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

EAMode

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 23 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstalledAppDBService

type InstalledAppDBService interface {
	GetAll(filter *appStoreBean.AppStoreFilter) (appStoreBean.AppListDetail, error)
	CheckAppExists(appNames []*appStoreBean.AppNames) ([]*appStoreBean.AppNames, error)
	FindAppDetailsForAppstoreApplication(installedAppId, envId int) (bean2.AppDetailContainer, error)
	GetInstalledAppById(installedAppId int) (*appStoreRepo.InstalledApps, error)
	GetInstalledAppByClusterNamespaceAndName(appIdentifier *helmBean.AppIdentifier) (*appStoreBean.InstallAppVersionDTO, error)
	GetInstalledAppByInstalledAppId(installedAppId int) (*appStoreBean.InstallAppVersionDTO, error)
	GetInstalledAppVersion(id int, userId int32) (*appStoreBean.InstallAppVersionDTO, error)
	GetInstalledAppVersionByIdIncludeDeleted(id int, userId int32) (*appStoreBean.InstallAppVersionDTO, error)
	CreateInstalledAppVersion(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreRepo.InstalledAppVersions, error)
	UpdateInstalledAppVersion(installedAppVersion *appStoreRepo.InstalledAppVersions, installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreRepo.InstalledAppVersions, error)

	ChangeAppNameToDisplayNameForInstalledApp(installedApp *appStoreRepo.InstalledApps)
	GetReleaseInfo(appIdentifier *helmBean.AppIdentifier) (*appStoreBean.InstallAppVersionDTO, error)
	IsExternalAppLinkedToChartStore(appId int) (bool, []*appStoreRepo.InstalledApps, error)
	CreateNewAppEntryForAllInstalledApps(installedApps []*appStoreRepo.InstalledApps) error

	// MarkInstalledAppVersionsInactiveByInstalledAppId will mark the repository.InstalledAppVersions inactive for the given InstalledAppId
	MarkInstalledAppVersionsInactiveByInstalledAppId(installedAppId int, UserId int32, tx *pg.Tx) error
	// MarkInstalledAppVersionModelInActive will mark the given repository.InstalledAppVersions inactive
	MarkInstalledAppVersionModelInActive(installedAppVersionModel *appStoreRepo.InstalledAppVersions, UserId int32, tx *pg.Tx) error
	GetInstalledAppVersionByInstalledAppIdMeta(id int) ([]*appStoreRepo.InstalledAppVersions, error)
	GetInstalledAppVersionHistory(int int) (*appStoreRepo.InstalledAppVersionHistory, error)
	GetAppStoreApplicationVersionIdByInstalledAppVersionHistoryId(version int) (int, error)
	GetInstalledAppVersionHistoryByVersionId(id int) ([]*appStoreRepo.InstalledAppVersionHistory, error)
	UpdateDeploymentHistoryMessage(installedAppVersionHistoryId int, message string) error

	IsChartStoreAppManagedByArgoCd(appId int) (bool, error)
}

type InstalledAppDBServiceImpl

type InstalledAppDBServiceImpl struct {
	Logger                        *zap.SugaredLogger
	InstalledAppRepository        appStoreRepo.InstalledAppRepository
	AppRepository                 app.AppRepository
	UserService                   user.UserService
	EnvironmentService            environment.EnvironmentService
	InstalledAppRepositoryHistory appStoreRepo.InstalledAppVersionHistoryRepository
	DeploymentConfigService       common.DeploymentConfigService
}

func NewInstalledAppDBServiceImpl

func NewInstalledAppDBServiceImpl(logger *zap.SugaredLogger,
	installedAppRepository appStoreRepo.InstalledAppRepository,
	appRepository app.AppRepository,
	userService user.UserService,
	environmentService environment.EnvironmentService,
	installedAppRepositoryHistory appStoreRepo.InstalledAppVersionHistoryRepository,
	deploymentConfigService common.DeploymentConfigService) *InstalledAppDBServiceImpl

func (*InstalledAppDBServiceImpl) ChangeAppNameToDisplayNameForInstalledApp added in v0.7.0

func (impl *InstalledAppDBServiceImpl) ChangeAppNameToDisplayNameForInstalledApp(installedApp *appStoreRepo.InstalledApps)

func (*InstalledAppDBServiceImpl) CheckAppExists

func (impl *InstalledAppDBServiceImpl) CheckAppExists(appNames []*appStoreBean.AppNames) ([]*appStoreBean.AppNames, error)

func (*InstalledAppDBServiceImpl) CreateInstalledAppVersion added in v0.7.0

func (impl *InstalledAppDBServiceImpl) CreateInstalledAppVersion(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreRepo.InstalledAppVersions, error)

func (*InstalledAppDBServiceImpl) CreateNewAppEntryForAllInstalledApps added in v0.7.0

func (impl *InstalledAppDBServiceImpl) CreateNewAppEntryForAllInstalledApps(installedApps []*appStoreRepo.InstalledApps) error

func (*InstalledAppDBServiceImpl) FindAppDetailsForAppstoreApplication

func (impl *InstalledAppDBServiceImpl) FindAppDetailsForAppstoreApplication(installedAppId, envId int) (bean2.AppDetailContainer, error)

func (*InstalledAppDBServiceImpl) GetAll

func (*InstalledAppDBServiceImpl) GetAppStoreApplicationVersionIdByInstalledAppVersionHistoryId added in v1.0.1

func (impl *InstalledAppDBServiceImpl) GetAppStoreApplicationVersionIdByInstalledAppVersionHistoryId(version int) (int, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppByClusterNamespaceAndName

func (impl *InstalledAppDBServiceImpl) GetInstalledAppByClusterNamespaceAndName(appIdentifier *helmBean.AppIdentifier) (*appStoreBean.InstallAppVersionDTO, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppById added in v0.7.0

func (impl *InstalledAppDBServiceImpl) GetInstalledAppById(installedAppId int) (*appStoreRepo.InstalledApps, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppByInstalledAppId

func (impl *InstalledAppDBServiceImpl) GetInstalledAppByInstalledAppId(installedAppId int) (*appStoreBean.InstallAppVersionDTO, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppVersion added in v0.7.0

func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersion(id int, userId int32) (*appStoreBean.InstallAppVersionDTO, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppVersionByIdIncludeDeleted added in v1.0.1

func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionByIdIncludeDeleted(id int, userId int32) (*appStoreBean.InstallAppVersionDTO, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppVersionByInstalledAppIdMeta added in v1.0.1

func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionByInstalledAppIdMeta(id int) ([]*appStoreRepo.InstalledAppVersions, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppVersionHistory added in v1.0.1

func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionHistory(version int) (*appStoreRepo.InstalledAppVersionHistory, error)

func (*InstalledAppDBServiceImpl) GetInstalledAppVersionHistoryByVersionId added in v1.0.1

func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionHistoryByVersionId(id int) ([]*appStoreRepo.InstalledAppVersionHistory, error)

func (*InstalledAppDBServiceImpl) GetReleaseInfo added in v0.7.0

func (*InstalledAppDBServiceImpl) IsChartStoreAppManagedByArgoCd added in v1.3.0

func (impl *InstalledAppDBServiceImpl) IsChartStoreAppManagedByArgoCd(appId int) (bool, error)

func (*InstalledAppDBServiceImpl) IsExternalAppLinkedToChartStore added in v0.7.0

func (impl *InstalledAppDBServiceImpl) IsExternalAppLinkedToChartStore(appId int) (bool, []*appStoreRepo.InstalledApps, error)

IsExternalAppLinkedToChartStore checks for an appId, if that app is linked to any chart-store app or not, if it's linked then it returns true along with all the installedApps linked to that appId

func (*InstalledAppDBServiceImpl) MarkInstalledAppVersionModelInActive added in v1.0.0

func (impl *InstalledAppDBServiceImpl) MarkInstalledAppVersionModelInActive(installedAppVersionModel *appStoreRepo.InstalledAppVersions, UserId int32, tx *pg.Tx) error

func (*InstalledAppDBServiceImpl) MarkInstalledAppVersionsInactiveByInstalledAppId added in v1.0.0

func (impl *InstalledAppDBServiceImpl) MarkInstalledAppVersionsInactiveByInstalledAppId(installedAppId int, userId int32, tx *pg.Tx) error

func (*InstalledAppDBServiceImpl) UpdateDeploymentHistoryMessage added in v1.0.1

func (impl *InstalledAppDBServiceImpl) UpdateDeploymentHistoryMessage(installedAppVersionHistoryId int, message string) error

func (*InstalledAppDBServiceImpl) UpdateInstalledAppVersion added in v0.7.0

func (impl *InstalledAppDBServiceImpl) UpdateInstalledAppVersion(installedAppVersion *appStoreRepo.InstalledAppVersions, installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreRepo.InstalledAppVersions, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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