chartRef

package
v0.6.29 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 20 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, string, string)
}

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) ([]byte, error)
}

type ChartRefServiceImpl

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

func NewChartRefServiceImpl

func NewChartRefServiceImpl(logger *zap.SugaredLogger,
	chartRefRepository chartRepoRepository.ChartRefRepository,
	chartTemplateService util.ChartTemplateService,
	mergeUtil util.MergeUtil) *ChartRefServiceImpl

func (*ChartRefServiceImpl) ChartRefAutocomplete

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

func (*ChartRefServiceImpl) ChartRefIdsCompatible

func (impl *ChartRefServiceImpl) ChartRefIdsCompatible(oldChartRefId int, newChartRefId int) (bool, string, string)

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) GetChartInBytes

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

func (*ChartRefServiceImpl) GetDefault

func (impl *ChartRefServiceImpl) GetDefault() (*bean.ChartRefDto, 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) 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