bulkUpdate

package
v0.0.0-...-987a61a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 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

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

func (BulkUpdateRepositoryImpl) BuildSecretNameQuery

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

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

func (BulkUpdateRepositoryImpl) BulkUpdateConfigMapDataForGlobalById

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

func (BulkUpdateRepositoryImpl) BulkUpdateSecretDataForEnvById

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

func (BulkUpdateRepositoryImpl) BulkUpdateSecretDataForGlobalById

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

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

func (BulkUpdateRepositoryImpl) FindCMBulkAppModelForGlobal

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

func (BulkUpdateRepositoryImpl) FindDeploymentTemplateBulkAppNameForEnv

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

func (BulkUpdateRepositoryImpl) FindDeploymentTemplateBulkAppNameForGlobal

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

func (BulkUpdateRepositoryImpl) FindSecretBulkAppModelForEnv

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

func (BulkUpdateRepositoryImpl) FindSecretBulkAppModelForGlobal

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