Documentation
¶
Index ¶
- type InstalledAppDBService
- type InstalledAppDBServiceImpl
- func (impl *InstalledAppDBServiceImpl) ChangeAppNameToDisplayNameForInstalledApp(installedApp *appStoreRepo.InstalledApps)
- func (impl *InstalledAppDBServiceImpl) CheckAppExists(appNames []*appStoreBean.AppNames) ([]*appStoreBean.AppNames, error)
- func (impl *InstalledAppDBServiceImpl) CreateInstalledAppVersion(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreRepo.InstalledAppVersions, error)
- func (impl *InstalledAppDBServiceImpl) CreateNewAppEntryForAllInstalledApps(installedApps []*appStoreRepo.InstalledApps) error
- func (impl *InstalledAppDBServiceImpl) FindAppDetailsForAppstoreApplication(installedAppId, envId int) (bean2.AppDetailContainer, error)
- func (impl *InstalledAppDBServiceImpl) GetAll(filter *appStoreBean.AppStoreFilter) (appStoreBean.AppListDetail, error)
- func (impl *InstalledAppDBServiceImpl) GetAppStoreApplicationVersionIdByInstalledAppVersionHistoryId(version int) (int, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppByClusterNamespaceAndName(appIdentifier *helmBean.AppIdentifier) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppById(installedAppId int) (*appStoreRepo.InstalledApps, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppByInstalledAppId(installedAppId int) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersion(id int, userId int32) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionByIdIncludeDeleted(id int, userId int32) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionByInstalledAppIdMeta(id int) ([]*appStoreRepo.InstalledAppVersions, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionHistory(version int) (*appStoreRepo.InstalledAppVersionHistory, error)
- func (impl *InstalledAppDBServiceImpl) GetInstalledAppVersionHistoryByVersionId(id int) ([]*appStoreRepo.InstalledAppVersionHistory, error)
- func (impl *InstalledAppDBServiceImpl) GetReleaseInfo(appIdentifier *helmBean.AppIdentifier) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl *InstalledAppDBServiceImpl) IsChartStoreAppManagedByArgoCd(appId int) (bool, error)
- func (impl *InstalledAppDBServiceImpl) IsExternalAppLinkedToChartStore(appId int) (bool, []*appStoreRepo.InstalledApps, error)
- func (impl *InstalledAppDBServiceImpl) MarkInstalledAppVersionModelInActive(installedAppVersionModel *appStoreRepo.InstalledAppVersions, UserId int32, ...) error
- func (impl *InstalledAppDBServiceImpl) MarkInstalledAppVersionsInactiveByInstalledAppId(installedAppId int, userId int32, tx *pg.Tx) error
- func (impl *InstalledAppDBServiceImpl) UpdateDeploymentHistoryMessage(installedAppVersionHistoryId int, message string) error
- func (impl *InstalledAppDBServiceImpl) UpdateInstalledAppVersion(installedAppVersion *appStoreRepo.InstalledAppVersions, ...) (*appStoreRepo.InstalledAppVersions, error)
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
// contains filtered or unexported fields
}
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 (impl *InstalledAppDBServiceImpl) GetAll(filter *appStoreBean.AppStoreFilter) (appStoreBean.AppListDetail, error)
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 (impl *InstalledAppDBServiceImpl) GetReleaseInfo(appIdentifier *helmBean.AppIdentifier) (*appStoreBean.InstallAppVersionDTO, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.