adapter

package
v0.7.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInstallAppVersionDTO

func GenerateInstallAppVersionDTO(installedApp *repository.InstalledApps, installedAppVersion *repository.InstalledAppVersions) *appStoreBean.InstallAppVersionDTO

GenerateInstallAppVersionDTO converts repository.InstalledApps and repository.InstalledAppVersions db object to appStoreBean.InstallAppVersionDTO bean

func GenerateInstallAppVersionMinDTO

func GenerateInstallAppVersionMinDTO(installedApp *repository.InstalledApps) *appStoreBean.InstallAppVersionDTO

GenerateInstallAppVersionMinDTO converts repository.InstalledApps db object to appStoreBean.InstallAppVersionDTO bean; Note: It only generates a minimal DTO and doesn't include repository.InstalledAppVersions data, also it's safe not to use this bean for creating db model again

func GetGeneratedHelmPackageName added in v0.7.0

func GetGeneratedHelmPackageName(appName, envName string, updatedOn time.Time) string

func NewClusterInstalledAppsModel

func NewClusterInstalledAppsModel(chart *appStoreBean.InstallAppVersionDTO, clusterId int) *repository.ClusterInstalledApps

NewClusterInstalledAppsModel is used to generate new repository.ClusterInstalledApps model to be saved; Note: Do not use for update operations

func NewInstallAppModel

NewInstallAppModel is used to generate new repository.InstalledApps model to be saved; Note: Do not use for update operations

func NewInstallAppVersionHistoryModel

func NewInstallAppVersionHistoryModel(request *appStoreBean.InstallAppVersionDTO, status string, helmInstallConfigDTO appStoreBean.HelmReleaseStatusConfig) (*repository.InstalledAppVersionHistory, error)

NewInstallAppVersionHistoryModel is used to generate new repository.InstalledAppVersionHistory model to be saved; GitHash and FinishedOn are not provided by NewInstallAppVersionHistoryModel; since it is used only on update operations; Note: Do not use for update operations;

func NewInstallAppVersionsModel

func NewInstallAppVersionsModel(chart *appStoreBean.InstallAppVersionDTO) *repository.InstalledAppVersions

NewInstallAppVersionsModel is used to generate new repository.InstalledAppVersions model to be saved; Note: Do not use for update operations

func NewInstalledAppDeploymentAction

func NewInstalledAppDeploymentAction(deploymentAppType string) *appStoreBean.InstalledAppDeploymentAction

NewInstalledAppDeploymentAction is used to generate appStoreBean.InstalledAppDeploymentAction from deploymentAppType

func NewInstalledAppVersionModel added in v0.7.0

func NewInstalledAppVersionModel(request *appStoreBean.InstallAppVersionDTO) *repository.InstalledAppVersions

NewInstalledAppVersionModel will generate a new repository.InstalledAppVersions for the given appStoreBean.InstallAppVersionDTO

func UpdateAdditionalEnvDetails added in v0.7.0

func UpdateAdditionalEnvDetails(request *appStoreBean.InstallAppVersionDTO, envBean *clutserBean.EnvironmentBean)

UpdateAdditionalEnvDetails update cluster.EnvironmentBean data into the same InstallAppVersionDTO

func UpdateAppDetails added in v0.7.0

func UpdateAppDetails(request *appStoreBean.InstallAppVersionDTO, app *app.App)

UpdateAppDetails update app.App data into the same InstallAppVersionDTO

func UpdateAppStoreApplicationDetails added in v0.7.0

func UpdateAppStoreApplicationDetails(request *appStoreBean.InstallAppVersionDTO, appStoreApplicationVersion *appStoreDiscoverRepository.AppStoreApplicationVersion)

UpdateAppStoreApplicationDetails update appStoreDiscoverRepository.AppStoreApplicationVersion data into the same InstallAppVersionDTO

func UpdateInstallAppDetails added in v0.7.0

func UpdateInstallAppDetails(request *appStoreBean.InstallAppVersionDTO, installedApp *repository.InstalledApps)

UpdateInstallAppDetails update repository.InstalledApps data into the same InstallAppVersionDTO

func UpdateInstalledAppVersionModel added in v0.7.0

func UpdateInstalledAppVersionModel(model *repository.InstalledAppVersions, request *appStoreBean.InstallAppVersionDTO)

UpdateInstalledAppVersionModel will update the same repository.InstalledAppVersions model object for the given appStoreBean.InstallAppVersionDTO

func UpdateInstalledAppVersionsMetaData added in v0.7.0

func UpdateInstalledAppVersionsMetaData(request *appStoreBean.InstallAppVersionDTO, installedAppVersion *repository.InstalledAppVersions)

UpdateInstalledAppVersionsMetaData update repository.InstalledAppVersions meta data (excluding values.yaml and preset values mapping) into the same InstallAppVersionDTO

Types

This section is empty.

Jump to

Keyboard shortcuts

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