bulkUpdate

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkUpdateReadme

type BulkUpdateReadme struct {
	Id       int    `sql:"id"`
	Resource string `sql:"resource"`
	Script   string `sql:"script"`
	Readme   string `sql:"readme"`
	// contains filtered or unexported fields
}

type BulkUpdateRepository

type BulkUpdateRepository interface {
	BuildAppNameQuery(appNameIncludes []string, appNameExcludes []string) string
	FindBulkUpdateReadme(operation string) (*BulkUpdateReadme, error)

	//For Deployment Template :
	FindDeploymentTemplateBulkAppNameForGlobal(appNameIncludes []string, appNameExcludes []string) ([]*app.App, error)
	FindDeploymentTemplateBulkAppNameForEnv(appNameIncludes []string, appNameExcludes []string, envId int) ([]*app.App, error)
	FindAppByChartId(chartId int) (*app.App, error)
	FindAppByChartEnvId(chartEnvId int) (*app.App, error)
	FindBulkChartsByAppNameSubstring(appNameIncludes []string, appNameExcludes []string) ([]*chartRepoRepository.Chart, error)
	FindBulkChartsEnvByAppNameSubstring(appNameIncludes []string, appNameExcludes []string, envId int) ([]*chartConfig.EnvConfigOverride, error)
	BulkUpdateChartsValuesYamlAndGlobalOverrideById(id int, patch string) error
	BulkUpdateChartsEnvYamlOverrideById(id int, patch string) error

	//For ConfigMap & Secret :
	BuildCMNameQuery(configMapNames []string) string
	BuildSecretNameQuery(secretNames []string) string
	FindCMBulkAppModelForGlobal(appNameIncludes []string, appNameExcludes []string, configMapNames []string) ([]*chartConfig.ConfigMapAppModel, error)
	FindSecretBulkAppModelForGlobal(appNameIncludes []string, appNameExcludes []string, secretNames []string) ([]*chartConfig.ConfigMapAppModel, error)
	FindCMBulkAppModelForEnv(appNameIncludes []string, appNameExcludes []string, envId int, configMapNames []string) ([]*chartConfig.ConfigMapEnvModel, error)
	FindSecretBulkAppModelForEnv(appNameIncludes []string, appNameExcludes []string, envId int, secretNames []string) ([]*chartConfig.ConfigMapEnvModel, error)
	BulkUpdateConfigMapDataForGlobalById(id int, patch string) error
	BulkUpdateSecretDataForGlobalById(id int, patch string) error
	BulkUpdateConfigMapDataForEnvById(id int, patch string) error
	BulkUpdateSecretDataForEnvById(id int, patch string) error
}

type BulkUpdateRepositoryImpl

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

func NewBulkUpdateRepository

func NewBulkUpdateRepository(dbConnection *pg.DB,
	logger *zap.SugaredLogger) *BulkUpdateRepositoryImpl

func (BulkUpdateRepositoryImpl) BuildAppNameQuery

func (repositoryImpl BulkUpdateRepositoryImpl) BuildAppNameQuery(appNameIncludes []string, appNameExcludes []string) string

func (BulkUpdateRepositoryImpl) BuildCMNameQuery added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) BuildCMNameQuery(configMapNames []string) string

func (BulkUpdateRepositoryImpl) BuildSecretNameQuery added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) BuildSecretNameQuery(secretNames []string) string

func (BulkUpdateRepositoryImpl) BulkUpdateChartsEnvYamlOverrideById

func (repositoryImpl BulkUpdateRepositoryImpl) BulkUpdateChartsEnvYamlOverrideById(id int, patch string) error

func (BulkUpdateRepositoryImpl) BulkUpdateChartsValuesYamlAndGlobalOverrideById

func (repositoryImpl BulkUpdateRepositoryImpl) BulkUpdateChartsValuesYamlAndGlobalOverrideById(id int, patch string) error

func (BulkUpdateRepositoryImpl) BulkUpdateConfigMapDataForEnvById added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) BulkUpdateConfigMapDataForEnvById(id int, patch string) error

func (BulkUpdateRepositoryImpl) BulkUpdateConfigMapDataForGlobalById added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) BulkUpdateConfigMapDataForGlobalById(id int, patch string) error

func (BulkUpdateRepositoryImpl) BulkUpdateSecretDataForEnvById added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) BulkUpdateSecretDataForEnvById(id int, patch string) error

func (BulkUpdateRepositoryImpl) BulkUpdateSecretDataForGlobalById added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) BulkUpdateSecretDataForGlobalById(id int, patch string) error

func (BulkUpdateRepositoryImpl) FindAppByChartEnvId

func (repositoryImpl BulkUpdateRepositoryImpl) FindAppByChartEnvId(chartEnvId int) (*app.App, error)

func (BulkUpdateRepositoryImpl) FindAppByChartId

func (repositoryImpl BulkUpdateRepositoryImpl) FindAppByChartId(chartId int) (*app.App, error)

func (BulkUpdateRepositoryImpl) FindBulkChartsByAppNameSubstring

func (repositoryImpl BulkUpdateRepositoryImpl) FindBulkChartsByAppNameSubstring(appNameIncludes []string, appNameExcludes []string) ([]*chartRepoRepository.Chart, error)

func (BulkUpdateRepositoryImpl) FindBulkChartsEnvByAppNameSubstring

func (repositoryImpl BulkUpdateRepositoryImpl) FindBulkChartsEnvByAppNameSubstring(appNameIncludes []string, appNameExcludes []string, envId int) ([]*chartConfig.EnvConfigOverride, error)

func (BulkUpdateRepositoryImpl) FindBulkUpdateReadme

func (repositoryImpl BulkUpdateRepositoryImpl) FindBulkUpdateReadme(resource string) (*BulkUpdateReadme, error)

func (BulkUpdateRepositoryImpl) FindCMBulkAppModelForEnv added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) FindCMBulkAppModelForEnv(appNameIncludes []string, appNameExcludes []string, envId int, configMapNames []string) ([]*chartConfig.ConfigMapEnvModel, error)

func (BulkUpdateRepositoryImpl) FindCMBulkAppModelForGlobal added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) FindCMBulkAppModelForGlobal(appNameIncludes []string, appNameExcludes []string, configMapNames []string) ([]*chartConfig.ConfigMapAppModel, error)

func (BulkUpdateRepositoryImpl) FindDeploymentTemplateBulkAppNameForEnv added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) FindDeploymentTemplateBulkAppNameForEnv(appNameIncludes []string, appNameExcludes []string, envId int) ([]*app.App, error)

func (BulkUpdateRepositoryImpl) FindDeploymentTemplateBulkAppNameForGlobal added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) FindDeploymentTemplateBulkAppNameForGlobal(appNameIncludes []string, appNameExcludes []string) ([]*app.App, error)

func (BulkUpdateRepositoryImpl) FindSecretBulkAppModelForEnv added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) FindSecretBulkAppModelForEnv(appNameIncludes []string, appNameExcludes []string, envId int, secretNames []string) ([]*chartConfig.ConfigMapEnvModel, error)

func (BulkUpdateRepositoryImpl) FindSecretBulkAppModelForGlobal added in v0.2.22

func (repositoryImpl BulkUpdateRepositoryImpl) FindSecretBulkAppModelForGlobal(appNameIncludes []string, appNameExcludes []string, secretNames []string) ([]*chartConfig.ConfigMapAppModel, error)

Jump to

Keyboard shortcuts

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