bulkUpdate

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 6 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)
	FindBulkAppNameForGlobal(appNameIncludes []string, appNameExcludes []string) ([]*pipelineConfig.App, error)
	FindBulkAppNameForEnv(appNameIncludes []string, appNameExcludes []string, envId int) ([]*pipelineConfig.App, error)
	FindAppByChartId(chartId int) (*pipelineConfig.App, error)
	FindAppByChartEnvId(chartEnvId int) (*pipelineConfig.App, error)
	FindBulkChartsByAppNameSubstring(appNameIncludes []string, appNameExcludes []string) ([]*chartConfig.Chart, error)
	FindBulkChartsEnvByAppNameSubstring(appNameIncludes []string, appNameExcludes []string, envId int) ([]*chartConfig.EnvConfigOverride, error)
	BulkUpdateChartsValuesYamlAndGlobalOverrideById(id int, patch string) error
	BulkUpdateChartsEnvYamlOverrideById(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) BulkUpdateChartsEnvYamlOverrideById

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

func (BulkUpdateRepositoryImpl) BulkUpdateChartsValuesYamlAndGlobalOverrideById

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

func (BulkUpdateRepositoryImpl) FindAppByChartEnvId

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

func (BulkUpdateRepositoryImpl) FindAppByChartId

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

func (BulkUpdateRepositoryImpl) FindBulkAppNameForEnv

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

func (BulkUpdateRepositoryImpl) FindBulkAppNameForGlobal

func (repositoryImpl BulkUpdateRepositoryImpl) FindBulkAppNameForGlobal(appNameIncludes []string, appNameExcludes []string) ([]*pipelineConfig.App, error)

func (BulkUpdateRepositoryImpl) FindBulkChartsByAppNameSubstring

func (repositoryImpl BulkUpdateRepositoryImpl) FindBulkChartsByAppNameSubstring(appNameIncludes []string, appNameExcludes []string) ([]*chartConfig.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)

Jump to

Keyboard shortcuts

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