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

appStoreDeploymentCommon

package
v0.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseChartCreateRequest added in v0.6.17

func ParseChartCreateRequest(installAppRequestDTO *appStoreBean.InstallAppVersionDTO, chartPath string) *util.ChartCreateRequest

func ParseChartGitPushRequest added in v0.6.17

func ParseChartGitPushRequest(installAppRequestDTO *appStoreBean.InstallAppVersionDTO, repoURl string, tempRefChart string) *appStoreBean.PushChartToGitRequestDTO

Types

type AppStoreDeploymentCommonService

type AppStoreDeploymentCommonService interface {
	GetInstalledAppByClusterNamespaceAndName(clusterId int, namespace string, appName string) (*appStoreBean.InstallAppVersionDTO, error)
	GetInstalledAppByInstalledAppId(installedAppId int) (*appStoreBean.InstallAppVersionDTO, error)
	ParseGitRepoErrorResponse(err error) (bool, error)
	GetValuesAndRequirementGitConfig(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*util.ChartConfig, *util.ChartConfig, error)
	CreateChartProxyAndGetPath(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*util.ChartCreateResponse, error)
	CreateGitOpsRepoAndPushChart(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, builtChartPath string) (*util.ChartGitAttribute, error)
	CommitConfigToGit(chartConfig *util.ChartConfig) (gitHash string, err error)
	GetGitCommitConfig(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, fileString string, filename string) (*util.ChartConfig, error)
	GetValuesString(chartName, valuesOverrideYaml string) (string, error)
	GetRequirementsString(appStoreVersionId int) (string, error)
	GenerateManifest(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (manifestResponse *AppStoreManifestResponse, err error)
	GitOpsOperations(manifestResponse *AppStoreManifestResponse, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*AppStoreGitOpsResponse, error)
	GenerateManifestAndPerformGitOperations(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*AppStoreGitOpsResponse, error)
}

type AppStoreDeploymentCommonServiceImpl

type AppStoreDeploymentCommonServiceImpl struct {
	// contains filtered or unexported fields
}

func NewAppStoreDeploymentCommonServiceImpl

func NewAppStoreDeploymentCommonServiceImpl(
	logger *zap.SugaredLogger,
	installedAppRepository repository.InstalledAppRepository,
	appStoreApplicationVersionRepository appStoreDiscoverRepository.AppStoreApplicationVersionRepository,
	environmentRepository repository2.EnvironmentRepository,
	chartTemplateService util.ChartTemplateService,
	refChartDir appStoreBean.RefChartProxyDir,
	gitFactory *util.GitFactory,
	gitOpsConfigRepository repository3.GitOpsConfigRepository,
) *AppStoreDeploymentCommonServiceImpl

func (AppStoreDeploymentCommonServiceImpl) CommitConfigToGit added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) CommitConfigToGit(chartConfig *util.ChartConfig) (string, error)

CommitConfigToGit is used for committing values.yaml and requirements.yaml file config

func (AppStoreDeploymentCommonServiceImpl) CreateChartProxyAndGetPath added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) CreateChartProxyAndGetPath(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*util.ChartCreateResponse, error)

CreateChartProxyAndGetPath parse chart in local directory and returns path of local dir and values.yaml

func (AppStoreDeploymentCommonServiceImpl) CreateGitOpsRepo added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) CreateGitOpsRepo(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (string, error)

CreateGitOpsRepo creates a gitOps repo with readme

func (AppStoreDeploymentCommonServiceImpl) CreateGitOpsRepoAndPushChart added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) CreateGitOpsRepoAndPushChart(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, builtChartPath string) (*util.ChartGitAttribute, error)

CreateGitOpsRepoAndPushChart is a wrapper for creating gitops repo and pushing chart to created repo

func (AppStoreDeploymentCommonServiceImpl) GenerateManifest added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GenerateManifest(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (manifestResponse *AppStoreManifestResponse, err error)

func (AppStoreDeploymentCommonServiceImpl) GenerateManifestAndPerformGitOperations added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GenerateManifestAndPerformGitOperations(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*AppStoreGitOpsResponse, error)

func (AppStoreDeploymentCommonServiceImpl) GetGitCommitConfig added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GetGitCommitConfig(installAppVersionRequest *appStoreBean.InstallAppVersionDTO, fileString string, filename string) (*util.ChartConfig, error)

func (AppStoreDeploymentCommonServiceImpl) GetInstalledAppByClusterNamespaceAndName

func (impl AppStoreDeploymentCommonServiceImpl) GetInstalledAppByClusterNamespaceAndName(clusterId int, namespace string, appName string) (*appStoreBean.InstallAppVersionDTO, error)

func (AppStoreDeploymentCommonServiceImpl) GetInstalledAppByInstalledAppId added in v0.3.24

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

func (AppStoreDeploymentCommonServiceImpl) GetRequirementsString added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GetRequirementsString(appStoreVersionId int) (string, error)

func (AppStoreDeploymentCommonServiceImpl) GetValuesAndRequirementGitConfig added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GetValuesAndRequirementGitConfig(installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*util.ChartConfig, *util.ChartConfig, error)

func (AppStoreDeploymentCommonServiceImpl) GetValuesString added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GetValuesString(chartName, valuesOverrideYaml string) (string, error)

func (AppStoreDeploymentCommonServiceImpl) GitOpsOperations added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) GitOpsOperations(manifestResponse *AppStoreManifestResponse, installAppVersionRequest *appStoreBean.InstallAppVersionDTO) (*AppStoreGitOpsResponse, error)

func (AppStoreDeploymentCommonServiceImpl) ParseGitRepoErrorResponse added in v0.6.10

func (impl AppStoreDeploymentCommonServiceImpl) ParseGitRepoErrorResponse(err error) (bool, error)

func (AppStoreDeploymentCommonServiceImpl) PushChartToGitopsRepo added in v0.6.17

func (impl AppStoreDeploymentCommonServiceImpl) PushChartToGitopsRepo(PushChartToGitRequest *appStoreBean.PushChartToGitRequestDTO) (*util.ChartGitAttribute, error)

PushChartToGitopsRepo pushes built chart to gitOps repo

type AppStoreGitOpsResponse added in v0.6.17

type AppStoreGitOpsResponse struct {
	ChartGitAttribute *util.ChartGitAttribute
	GitHash           string
}

type AppStoreManifestResponse added in v0.6.17

type AppStoreManifestResponse struct {
	ChartResponse      *util.ChartCreateResponse
	ValuesConfig       *util.ChartConfig
	RequirementsConfig *util.ChartConfig
}

Jump to

Keyboard shortcuts

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