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

chartRef

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCompatibility

func CheckCompatibility(oldChartType, newChartType string) bool

func CompatibleChartsWith

func CompatibleChartsWith(chartType string) []string

Types

type ChartRefDbReadService

type ChartRefDbReadService interface {
	GetDefault() (*bean.ChartRefDto, error)
	GetAll() ([]*bean.ChartRefDto, error)
	GetAllChartMetadata() (map[string]bean.ChartRefMetaData, error)
	FindById(chartRefId int) (*bean.ChartRefDto, error)
	FindByVersionAndName(version, name string) (*bean.ChartRefDto, error)
	FetchInfoOfChartConfiguredInApp(appId int) (*bean.ChartRefDto, error)
	ChartRefAutocomplete() ([]*bean.ChartRefAutocompleteDto, error)
	CheckChartExists(chartRefId int) error
	ChartRefIdsCompatible(oldChartRefId int, newChartRefId int) (bool, *bean.ChartRefSwitchRequest)
	GetDeploymentStrategiesForChartRef(chartRefId int, pipelineOverride string) ([]bean.PipelineStrategy, error)
	PerformChartSpecificPatchForSwitch(values json.RawMessage, chartChangeType *bean.ChartRefSwitchRequest) (json.RawMessage, error)
}

type ChartRefFileOpService

type ChartRefFileOpService interface {
	GetAppOverrideForDefaultTemplate(chartRefId int) (map[string]interface{}, string, error)
	JsonSchemaExtractFromFile(chartRefId int) (map[string]interface{}, string, error)
	GetSchemaAndReadmeForTemplateByChartRefId(chartRefId int) ([]byte, []byte, error)
	GetRefChart(chartRefId int) (string, string, string, string, error)
	ExtractChartIfMissing(chartData []byte, refChartDir string, location string) (*bean.ChartDataInfo, error)
	GetChartInBytes(chartRefId int, deleteChart bool) ([]byte, error)
	GetChartBytesForApps(ctx context.Context, appIdToAppName map[int]string) (map[int][]byte, error)
	GetChartLocation(chartRefLocation string, chartData []byte) (string, error)
}

type ChartRefServiceImpl

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

func NewChartRefServiceImpl

func NewChartRefServiceImpl(logger *zap.SugaredLogger,
	chartRefRepository chartRepoRepository.ChartRefRepository,
	chartRefReadService read.ChartRefReadService,
	chartTemplateService util.ChartTemplateService,
	chartRepository chartRepoRepository.ChartRepository,
	mergeUtil util.MergeUtil,
	globalStrategyMetadataRepository chartRepoRepository.GlobalStrategyMetadataChartRefMappingRepository,
) *ChartRefServiceImpl

func (*ChartRefServiceImpl) ChartRefAutocomplete

func (impl *ChartRefServiceImpl) ChartRefAutocomplete() ([]*bean.ChartRefAutocompleteDto, error)

func (*ChartRefServiceImpl) ChartRefIdsCompatible

func (impl *ChartRefServiceImpl) ChartRefIdsCompatible(oldChartRefId int, newChartRefId int) (bool, *bean.ChartRefSwitchRequest)

func (*ChartRefServiceImpl) CheckChartExists

func (impl *ChartRefServiceImpl) CheckChartExists(chartRefId int) error

func (*ChartRefServiceImpl) ExtractChartIfMissing

func (impl *ChartRefServiceImpl) ExtractChartIfMissing(chartData []byte, refChartDir string, location string) (*bean.ChartDataInfo, error)

func (*ChartRefServiceImpl) FetchCustomChartsInfo

func (impl *ChartRefServiceImpl) FetchCustomChartsInfo() ([]*bean.ChartDto, error)

func (*ChartRefServiceImpl) FetchInfoOfChartConfiguredInApp

func (impl *ChartRefServiceImpl) FetchInfoOfChartConfiguredInApp(appId int) (*bean.ChartRefDto, error)

func (*ChartRefServiceImpl) FindById

func (impl *ChartRefServiceImpl) FindById(chartRefId int) (*bean.ChartRefDto, error)

func (*ChartRefServiceImpl) FindByVersionAndName

func (impl *ChartRefServiceImpl) FindByVersionAndName(version, name string) (*bean.ChartRefDto, error)

func (*ChartRefServiceImpl) GetAll

func (impl *ChartRefServiceImpl) GetAll() ([]*bean.ChartRefDto, error)

func (*ChartRefServiceImpl) GetAllChartMetadata

func (impl *ChartRefServiceImpl) GetAllChartMetadata() (map[string]bean.ChartRefMetaData, error)

func (*ChartRefServiceImpl) GetAppOverrideForDefaultTemplate

func (impl *ChartRefServiceImpl) GetAppOverrideForDefaultTemplate(chartRefId int) (map[string]interface{}, string, error)

func (*ChartRefServiceImpl) GetChartBytesForApps added in v0.7.1

func (impl *ChartRefServiceImpl) GetChartBytesForApps(ctx context.Context, appIdToAppName map[int]string) (map[int][]byte, error)

func (*ChartRefServiceImpl) GetChartInBytes

func (impl *ChartRefServiceImpl) GetChartInBytes(chartRefId int, performCleanup bool) ([]byte, error)

func (*ChartRefServiceImpl) GetChartLocation added in v0.7.1

func (impl *ChartRefServiceImpl) GetChartLocation(chartRefLocation string, chartData []byte) (string, error)

func (*ChartRefServiceImpl) GetDefault

func (impl *ChartRefServiceImpl) GetDefault() (*bean.ChartRefDto, error)

func (*ChartRefServiceImpl) GetDeploymentStrategiesForChartRef added in v1.5.0

func (impl *ChartRefServiceImpl) GetDeploymentStrategiesForChartRef(chartRefId int, pipelineOverride string) ([]bean.PipelineStrategy, error)

func (*ChartRefServiceImpl) GetRefChart

func (impl *ChartRefServiceImpl) GetRefChart(chartRefId int) (string, string, string, string, error)

func (*ChartRefServiceImpl) GetSchemaAndReadmeForTemplateByChartRefId

func (impl *ChartRefServiceImpl) GetSchemaAndReadmeForTemplateByChartRefId(chartRefId int) ([]byte, []byte, error)

func (*ChartRefServiceImpl) JsonSchemaExtractFromFile

func (impl *ChartRefServiceImpl) JsonSchemaExtractFromFile(chartRefId int) (map[string]interface{}, string, error)

func (*ChartRefServiceImpl) PerformChartSpecificPatchForSwitch added in v1.5.0

func (impl *ChartRefServiceImpl) PerformChartSpecificPatchForSwitch(values json.RawMessage, chartChangeType *bean.ChartRefSwitchRequest) (json.RawMessage, error)

func (*ChartRefServiceImpl) SaveCustomChart

func (impl *ChartRefServiceImpl) SaveCustomChart(req *bean.CustomChartRefDto) error

func (*ChartRefServiceImpl) ValidateCustomChartUploadedFileFormat

func (impl *ChartRefServiceImpl) ValidateCustomChartUploadedFileFormat(fileName string) error

type CustomChartService

type CustomChartService interface {
	SaveCustomChart(req *bean.CustomChartRefDto) error
	FetchCustomChartsInfo() ([]*bean.ChartDto, error)
	ValidateCustomChartUploadedFileFormat(fileName string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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