Documentation
¶
Index ¶
- Constants
- type AppStoreValuesService
- type AppStoreValuesServiceImpl
- func (impl AppStoreValuesServiceImpl) CreateAppStoreVersionValues(request *appStoreBean.AppStoreVersionValuesDTO) (*appStoreBean.AppStoreVersionValuesDTO, error)
- func (impl AppStoreValuesServiceImpl) DeleteAppStoreVersionValues(appStoreValueId int) (bool, error)
- func (impl AppStoreValuesServiceImpl) FindValuesByAppStoreId(appStoreId int, installedAppVersionId int) (*appStoreBean.AppSotoreVersionDTOWrapper, error)
- func (impl AppStoreValuesServiceImpl) FindValuesByAppStoreIdAndReferenceType(appStoreId int, referenceType string) ([]*appStoreBean.AppStoreVersionValuesDTO, error)
- func (impl AppStoreValuesServiceImpl) FindValuesByIdAndKind(referenceId int, kind string) (*appStoreBean.AppStoreVersionValuesDTO, error)
- func (impl AppStoreValuesServiceImpl) GetSelectedChartMetaData(req *ChartMetaDataRequestWrapper) ([]*ChartMetaDataResponse, error)
- func (impl AppStoreValuesServiceImpl) UpdateAppStoreVersionValues(request *appStoreBean.AppStoreVersionValuesDTO) (*appStoreBean.AppStoreVersionValuesDTO, error)
- type ChartComponent
- type ChartComponents
- type ChartGroupBean
- type ChartGroupEntryBean
- type ChartGroupList
- type ChartGroupService
- type ChartGroupServiceImpl
- func (impl *ChartGroupServiceImpl) ChartGroupList(max int) (*ChartGroupList, error)
- func (impl *ChartGroupServiceImpl) ChartGroupListMin(max int) ([]*ChartGroupBean, error)
- func (impl *ChartGroupServiceImpl) CreateChartGroup(req *ChartGroupBean) (*ChartGroupBean, error)
- func (impl *ChartGroupServiceImpl) DeleteChartGroup(req *ChartGroupBean) error
- func (impl *ChartGroupServiceImpl) GetChartGroupWithChartMetaData(chartGroupId int) (*ChartGroupBean, error)
- func (impl *ChartGroupServiceImpl) GetChartGroupWithInstallationDetail(chartGroupId int) (*ChartGroupBean, error)
- func (impl *ChartGroupServiceImpl) SaveChartGroupEntries(req *ChartGroupBean) (*ChartGroupBean, error)
- func (impl *ChartGroupServiceImpl) UpdateChartGroup(req *ChartGroupBean) (*ChartGroupBean, error)
- type ChartMetaData
- type ChartMetaDataRequest
- type ChartMetaDataRequestWrapper
- type ChartMetaDataResponse
- type InstalledAppService
- type InstalledAppServiceImpl
- func (impl InstalledAppServiceImpl) AppStoreDeployOperationACD(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, ...) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl InstalledAppServiceImpl) AppStoreDeployOperationDB(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl InstalledAppServiceImpl) AppStoreDeployOperationGIT(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, *util.ChartGitAttribute, error)
- func (impl InstalledAppServiceImpl) AppStoreDeployOperationStatusUpdate(installAppId int, status appStoreBean.AppstoreDeploymentStatus) (bool, error)
- func (impl InstalledAppServiceImpl) CheckAppExists(appNames []*appStoreBean.AppNames) ([]*appStoreBean.AppNames, error)
- func (impl InstalledAppServiceImpl) CreateInstalledAppV2(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, ...) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl InstalledAppServiceImpl) DeleteInstalledApp(ctx context.Context, ...) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl InstalledAppServiceImpl) DeployBulk(chartGroupInstallRequest *appStoreBean.ChartGroupInstallRequest) (*appStoreBean.ChartGroupInstallAppRes, error)
- func (impl *InstalledAppServiceImpl) DeployDefaultChartOnCluster(bean *cluster2.ClusterBean, userId int32) (bool, error)
- func (impl InstalledAppServiceImpl) DeployDefaultComponent(chartGroupInstallRequest *appStoreBean.ChartGroupInstallRequest) (*appStoreBean.ChartGroupInstallAppRes, error)
- func (impl *InstalledAppServiceImpl) FindAppDetailsForAppstoreApplication(installedAppId, envId int) (bean2.AppDetailContainer, error)
- func (impl InstalledAppServiceImpl) GetAll(filter *appStoreBean.AppStoreFilter) (openapi.AppList, error)
- func (impl InstalledAppServiceImpl) GetAllInstalledAppsByAppStoreId(w http.ResponseWriter, r *http.Request, token string, appStoreId int) ([]appStoreBean.InstalledAppsResponse, error)
- func (impl InstalledAppServiceImpl) GetInstalledApp(id int) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl InstalledAppServiceImpl) GetInstalledAppVersion(id int) (*appStoreBean.InstallAppVersionDTO, error)
- func (impl *InstalledAppServiceImpl) IsChartRepoActive(appStoreVersionId int) (bool, error)
- func (impl *InstalledAppServiceImpl) Subscribe() error
- func (impl InstalledAppServiceImpl) UpdateInstalledApp(ctx context.Context, ...) (*appStoreBean.InstallAppVersionDTO, error)
- type InstalledChart
- type InstalledChartData
Constants ¶
View Source
const ( DEFAULT_ENVIRONMENT_OR_NAMESPACE_OR_PROJECT = "devtron" CLUSTER_COMPONENT_DIR_PATH = "/cluster/component" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppStoreValuesService ¶
type AppStoreValuesService interface { CreateAppStoreVersionValues(model *appStoreBean.AppStoreVersionValuesDTO) (*appStoreBean.AppStoreVersionValuesDTO, error) UpdateAppStoreVersionValues(model *appStoreBean.AppStoreVersionValuesDTO) (*appStoreBean.AppStoreVersionValuesDTO, error) FindValuesByIdAndKind(referenceId int, kind string) (*appStoreBean.AppStoreVersionValuesDTO, error) DeleteAppStoreVersionValues(appStoreValueId int) (bool, error) FindValuesByAppStoreId(appStoreId int, installedAppVersionId int) (*appStoreBean.AppSotoreVersionDTOWrapper, error) FindValuesByAppStoreIdAndReferenceType(appStoreVersionId int, referenceType string) ([]*appStoreBean.AppStoreVersionValuesDTO, error) GetSelectedChartMetaData(req *ChartMetaDataRequestWrapper) ([]*ChartMetaDataResponse, error) }
type AppStoreValuesServiceImpl ¶
type AppStoreValuesServiceImpl struct {
// contains filtered or unexported fields
}
func NewAppStoreValuesServiceImpl ¶
func NewAppStoreValuesServiceImpl(logger *zap.SugaredLogger, appStoreApplicationRepository appStoreDiscoverRepository.AppStoreApplicationVersionRepository, installedAppRepository appStoreRepository.InstalledAppRepository, appStoreVersionValuesRepository appStoreRepository.AppStoreVersionValuesRepository) *AppStoreValuesServiceImpl
func (AppStoreValuesServiceImpl) CreateAppStoreVersionValues ¶
func (impl AppStoreValuesServiceImpl) CreateAppStoreVersionValues(request *appStoreBean.AppStoreVersionValuesDTO) (*appStoreBean.AppStoreVersionValuesDTO, error)
func (AppStoreValuesServiceImpl) DeleteAppStoreVersionValues ¶
func (impl AppStoreValuesServiceImpl) DeleteAppStoreVersionValues(appStoreValueId int) (bool, error)
func (AppStoreValuesServiceImpl) FindValuesByAppStoreId ¶
func (impl AppStoreValuesServiceImpl) FindValuesByAppStoreId(appStoreId int, installedAppVersionId int) (*appStoreBean.AppSotoreVersionDTOWrapper, error)
func (AppStoreValuesServiceImpl) FindValuesByAppStoreIdAndReferenceType ¶
func (impl AppStoreValuesServiceImpl) FindValuesByAppStoreIdAndReferenceType(appStoreId int, referenceType string) ([]*appStoreBean.AppStoreVersionValuesDTO, error)
func (AppStoreValuesServiceImpl) FindValuesByIdAndKind ¶
func (impl AppStoreValuesServiceImpl) FindValuesByIdAndKind(referenceId int, kind string) (*appStoreBean.AppStoreVersionValuesDTO, error)
func (AppStoreValuesServiceImpl) GetSelectedChartMetaData ¶
func (impl AppStoreValuesServiceImpl) GetSelectedChartMetaData(req *ChartMetaDataRequestWrapper) ([]*ChartMetaDataResponse, error)
func (AppStoreValuesServiceImpl) UpdateAppStoreVersionValues ¶
func (impl AppStoreValuesServiceImpl) UpdateAppStoreVersionValues(request *appStoreBean.AppStoreVersionValuesDTO) (*appStoreBean.AppStoreVersionValuesDTO, error)
type ChartComponent ¶
type ChartComponents ¶
type ChartComponents struct {
ChartComponent []*ChartComponent `json:"charts"`
}
type ChartGroupBean ¶
type ChartGroupBean struct { Name string `json:"name,omitempty" validate:"name-component,max=200"` Description string `json:"description,omitempty"` Id int `json:"id,omitempty"` ChartGroupEntries []*ChartGroupEntryBean `json:"chartGroupEntries,omitempty"` InstalledChartData []*InstalledChartData `json:"installedChartData,omitempty"` UserId int32 `json:"-"` }
type ChartGroupEntryBean ¶
type ChartGroupEntryBean struct { Id int `json:"id,omitempty"` AppStoreValuesVersionId int `json:"appStoreValuesVersionId,omitempty"` //AppStoreVersionValuesId AppStoreValuesVersionName string `json:"appStoreValuesVersionName,omitempty"` AppStoreValuesChartVersion string `json:"appStoreValuesChartVersion,omitempty"` //chart version corresponding to values AppStoreApplicationVersionId int `json:"appStoreApplicationVersionId,omitempty"` //AppStoreApplicationVersionId ChartMetaData *ChartMetaData `json:"chartMetaData,omitempty"` ReferenceType string `json:"referenceType, omitempty"` }
type ChartGroupList ¶
type ChartGroupList struct {
Groups []*ChartGroupBean `json:"groups,omitempty"`
}
type ChartGroupService ¶
type ChartGroupService interface { CreateChartGroup(req *ChartGroupBean) (*ChartGroupBean, error) UpdateChartGroup(req *ChartGroupBean) (*ChartGroupBean, error) SaveChartGroupEntries(req *ChartGroupBean) (*ChartGroupBean, error) GetChartGroupWithChartMetaData(chartGroupId int) (*ChartGroupBean, error) ChartGroupList(max int) (*ChartGroupList, error) GetChartGroupWithInstallationDetail(chartGroupId int) (*ChartGroupBean, error) ChartGroupListMin(max int) ([]*ChartGroupBean, error) DeleteChartGroup(req *ChartGroupBean) error }
type ChartGroupServiceImpl ¶
type ChartGroupServiceImpl struct { Logger *zap.SugaredLogger // contains filtered or unexported fields }
func NewChartGroupServiceImpl ¶
func NewChartGroupServiceImpl(chartGroupEntriesRepository appStoreRepository.ChartGroupEntriesRepository, chartGroupRepository appStoreRepository.ChartGroupReposotory, Logger *zap.SugaredLogger, chartGroupDeploymentRepository appStoreRepository.ChartGroupDeploymentRepository, installedAppRepository appStoreRepository.InstalledAppRepository, appStoreVersionValuesRepository appStoreRepository.AppStoreVersionValuesRepository, userAuthService user.UserAuthService) *ChartGroupServiceImpl
func (*ChartGroupServiceImpl) ChartGroupList ¶
func (impl *ChartGroupServiceImpl) ChartGroupList(max int) (*ChartGroupList, error)
func (*ChartGroupServiceImpl) ChartGroupListMin ¶
func (impl *ChartGroupServiceImpl) ChartGroupListMin(max int) ([]*ChartGroupBean, error)
func (*ChartGroupServiceImpl) CreateChartGroup ¶
func (impl *ChartGroupServiceImpl) CreateChartGroup(req *ChartGroupBean) (*ChartGroupBean, error)
func (*ChartGroupServiceImpl) DeleteChartGroup ¶
func (impl *ChartGroupServiceImpl) DeleteChartGroup(req *ChartGroupBean) error
func (*ChartGroupServiceImpl) GetChartGroupWithChartMetaData ¶
func (impl *ChartGroupServiceImpl) GetChartGroupWithChartMetaData(chartGroupId int) (*ChartGroupBean, error)
func (*ChartGroupServiceImpl) GetChartGroupWithInstallationDetail ¶
func (impl *ChartGroupServiceImpl) GetChartGroupWithInstallationDetail(chartGroupId int) (*ChartGroupBean, error)
func (*ChartGroupServiceImpl) SaveChartGroupEntries ¶
func (impl *ChartGroupServiceImpl) SaveChartGroupEntries(req *ChartGroupBean) (*ChartGroupBean, error)
func (*ChartGroupServiceImpl) UpdateChartGroup ¶
func (impl *ChartGroupServiceImpl) UpdateChartGroup(req *ChartGroupBean) (*ChartGroupBean, error)
type ChartMetaData ¶
type ChartMetaData struct { ChartName string `json:"chartName,omitempty"` ChartRepoName string `json:"chartRepoName,omitempty"` Icon string `json:"icon,omitempty"` AppStoreId int `json:"appStoreId"` AppStoreApplicationVersion string `json:"appStoreApplicationVersion"` EnvironmentName string `json:"environmentName,omitempty"` EnvironmentId int `json:"environmentId,omitempty"` //FIXME REMOVE THIS ATTRIBUTE AFTER REMOVING ENVORONMENTID FROM GETINSTALLEDAPPCALL IsChartRepoActive bool `json:"isChartRepoActive"` }
type ChartMetaDataRequest ¶
func (impl AppStoreValuesServiceImpl) adaptorForValuesCategoryWise(values *appstore.AppStoreVersionValues) (val *AppStoreVersionValuesCategoryWiseDTO) { version := "" if values.AppStoreApplicationVersion != nil { version = values.AppStoreApplicationVersion.Version } valDto:= &AppStoreVersionValuesDTO{ Name: values.Name, Id: values.Id, Values: values.ValuesYaml, ChartVersion: version, AppStoreVersionId: values.AppStoreApplicationVersionId, } val = &AppStoreVersionValuesCategoryWiseDTO{ Values:valDto } return val }
type ChartMetaDataRequestWrapper ¶
type ChartMetaDataRequestWrapper struct {
Values []*ChartMetaDataRequest `json:"values"`
}
type ChartMetaDataResponse ¶
type InstalledAppService ¶
type InstalledAppService interface { UpdateInstalledApp(ctx context.Context, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, error) GetInstalledApp(id int) (*appStoreBean.InstallAppVersionDTO, error) GetInstalledAppVersion(id int) (*appStoreBean.InstallAppVersionDTO, error) GetAll(filter *appStoreBean.AppStoreFilter) (openapi.AppList, error) GetAllInstalledAppsByAppStoreId(w http.ResponseWriter, r *http.Request, token string, appStoreId int) ([]appStoreBean.InstalledAppsResponse, error) DeleteInstalledApp(ctx context.Context, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, error) DeployBulk(chartGroupInstallRequest *appStoreBean.ChartGroupInstallRequest) (*appStoreBean.ChartGroupInstallAppRes, error) CreateInstalledAppV2(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, ctx context.Context) (*appStoreBean.InstallAppVersionDTO, error) AppStoreDeployOperationGIT(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, *util.ChartGitAttribute, error) AppStoreDeployOperationACD(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, chartGitAttr *util.ChartGitAttribute, ctx context.Context) (*appStoreBean.InstallAppVersionDTO, error) AppStoreDeployOperationDB(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreBean.InstallAppVersionDTO, error) AppStoreDeployOperationStatusUpdate(installAppId int, status appStoreBean.AppstoreDeploymentStatus) (bool, error) CheckAppExists(appNames []*appStoreBean.AppNames) ([]*appStoreBean.AppNames, error) DeployDefaultChartOnCluster(bean *cluster2.ClusterBean, userId int32) (bool, error) IsChartRepoActive(appStoreVersionId int) (bool, error) DeployDefaultComponent(chartGroupInstallRequest *appStoreBean.ChartGroupInstallRequest) (*appStoreBean.ChartGroupInstallAppRes, error) FindAppDetailsForAppstoreApplication(installedAppId, envId int) (bean2.AppDetailContainer, error) // contains filtered or unexported methods }
type InstalledAppServiceImpl ¶
type InstalledAppServiceImpl struct { ArgoK8sClient argocdServer.ArgoK8sClient // contains filtered or unexported fields }
func NewInstalledAppServiceImpl ¶
func NewInstalledAppServiceImpl(logger *zap.SugaredLogger, installedAppRepository appStoreRepository.InstalledAppRepository, chartTemplateService util.ChartTemplateService, refChartDir appStoreBean.RefChartProxyDir, repositoryService repository.ServiceClient, appStoreApplicationVersionRepository appStoreDiscoverRepository.AppStoreApplicationVersionRepository, environmentRepository repository5.EnvironmentRepository, teamRepository repository4.TeamRepository, appRepository app.AppRepository, acdClient application2.ServiceClient, appStoreValuesService AppStoreValuesService, pubsubClient *pubsub.PubSubClient, tokenCache *util2.TokenCache, chartGroupDeploymentRepository appStoreRepository.ChartGroupDeploymentRepository, envService cluster2.EnvironmentService, clusterInstalledAppsRepository appStoreRepository.ClusterInstalledAppsRepository, argoK8sClient argocdServer.ArgoK8sClient, gitFactory *util.GitFactory, aCDAuthConfig *util2.ACDAuthConfig, gitOpsRepository repository3.GitOpsConfigRepository, userService user.UserService) (*InstalledAppServiceImpl, error)
func (InstalledAppServiceImpl) AppStoreDeployOperationACD ¶
func (impl InstalledAppServiceImpl) AppStoreDeployOperationACD(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, chartGitAttr *util.ChartGitAttribute, ctx context.Context) (*appStoreBean.InstallAppVersionDTO, error)
func (InstalledAppServiceImpl) AppStoreDeployOperationDB ¶
func (impl InstalledAppServiceImpl) AppStoreDeployOperationDB(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, tx *pg.Tx) (*appStoreBean.InstallAppVersionDTO, error)
func (InstalledAppServiceImpl) AppStoreDeployOperationGIT ¶
func (impl InstalledAppServiceImpl) AppStoreDeployOperationGIT(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, *util.ChartGitAttribute, error)
func (InstalledAppServiceImpl) AppStoreDeployOperationStatusUpdate ¶
func (impl InstalledAppServiceImpl) AppStoreDeployOperationStatusUpdate(installAppId int, status appStoreBean.AppstoreDeploymentStatus) (bool, error)
func (InstalledAppServiceImpl) CheckAppExists ¶
func (impl InstalledAppServiceImpl) CheckAppExists(appNames []*appStoreBean.AppNames) ([]*appStoreBean.AppNames, error)
func (InstalledAppServiceImpl) CreateInstalledAppV2 ¶
func (impl InstalledAppServiceImpl) CreateInstalledAppV2(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, ctx context.Context) (*appStoreBean.InstallAppVersionDTO, error)
func (InstalledAppServiceImpl) DeleteInstalledApp ¶
func (impl InstalledAppServiceImpl) DeleteInstalledApp(ctx context.Context, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, error)
func (InstalledAppServiceImpl) DeployBulk ¶
func (impl InstalledAppServiceImpl) DeployBulk(chartGroupInstallRequest *appStoreBean.ChartGroupInstallRequest) (*appStoreBean.ChartGroupInstallAppRes, error)
func (*InstalledAppServiceImpl) DeployDefaultChartOnCluster ¶
func (impl *InstalledAppServiceImpl) DeployDefaultChartOnCluster(bean *cluster2.ClusterBean, userId int32) (bool, error)
func (InstalledAppServiceImpl) DeployDefaultComponent ¶
func (impl InstalledAppServiceImpl) DeployDefaultComponent(chartGroupInstallRequest *appStoreBean.ChartGroupInstallRequest) (*appStoreBean.ChartGroupInstallAppRes, error)
func (*InstalledAppServiceImpl) FindAppDetailsForAppstoreApplication ¶
func (impl *InstalledAppServiceImpl) FindAppDetailsForAppstoreApplication(installedAppId, envId int) (bean2.AppDetailContainer, error)
func (InstalledAppServiceImpl) GetAll ¶
func (impl InstalledAppServiceImpl) GetAll(filter *appStoreBean.AppStoreFilter) (openapi.AppList, error)
func (InstalledAppServiceImpl) GetAllInstalledAppsByAppStoreId ¶
func (impl InstalledAppServiceImpl) GetAllInstalledAppsByAppStoreId(w http.ResponseWriter, r *http.Request, token string, appStoreId int) ([]appStoreBean.InstalledAppsResponse, error)
TODO: Test ACD to get status
func (InstalledAppServiceImpl) GetInstalledApp ¶
func (impl InstalledAppServiceImpl) GetInstalledApp(id int) (*appStoreBean.InstallAppVersionDTO, error)
func (InstalledAppServiceImpl) GetInstalledAppVersion ¶
func (impl InstalledAppServiceImpl) GetInstalledAppVersion(id int) (*appStoreBean.InstallAppVersionDTO, error)
func (*InstalledAppServiceImpl) IsChartRepoActive ¶
func (impl *InstalledAppServiceImpl) IsChartRepoActive(appStoreVersionId int) (bool, error)
func (*InstalledAppServiceImpl) Subscribe ¶
func (impl *InstalledAppServiceImpl) Subscribe() error
func (InstalledAppServiceImpl) UpdateInstalledApp ¶
func (impl InstalledAppServiceImpl) UpdateInstalledApp(ctx context.Context, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*appStoreBean.InstallAppVersionDTO, error)
type InstalledChart ¶
type InstalledChart struct { ChartMetaData InstalledAppId int `json:"installedAppId,omitempty"` }
type InstalledChartData ¶
type InstalledChartData struct { InstallationTime time.Time `json:"installationTime,omitempty"` InstalledCharts []*InstalledChart `json:"installedCharts,omitempty"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.