Documentation ¶
Index ¶
- func CheckCompatibility(oldChartType, newChartType string) bool
- func CompatibleChartsWith(chartType string) []string
- type ChartRefDbReadService
- type ChartRefFileOpService
- type ChartRefService
- type ChartRefServiceImpl
- func (impl *ChartRefServiceImpl) ChartRefAutocomplete() ([]*bean.ChartRefAutocompleteDto, error)
- func (impl *ChartRefServiceImpl) ChartRefIdsCompatible(oldChartRefId int, newChartRefId int) (bool, string, string)
- func (impl *ChartRefServiceImpl) CheckChartExists(chartRefId int) error
- func (impl *ChartRefServiceImpl) ExtractChartIfMissing(chartData []byte, refChartDir string, location string) (*bean.ChartDataInfo, error)
- func (impl *ChartRefServiceImpl) FetchCustomChartsInfo() ([]*bean.ChartDto, error)
- func (impl *ChartRefServiceImpl) FetchInfoOfChartConfiguredInApp(appId int) (*bean.ChartRefDto, error)
- func (impl *ChartRefServiceImpl) FindById(chartRefId int) (*bean.ChartRefDto, error)
- func (impl *ChartRefServiceImpl) FindByVersionAndName(version, name string) (*bean.ChartRefDto, error)
- func (impl *ChartRefServiceImpl) GetAll() ([]*bean.ChartRefDto, error)
- func (impl *ChartRefServiceImpl) GetAllChartMetadata() (map[string]bean.ChartRefMetaData, error)
- func (impl *ChartRefServiceImpl) GetAppOverrideForDefaultTemplate(chartRefId int) (map[string]interface{}, string, error)
- func (impl *ChartRefServiceImpl) GetChartBytesForApps(ctx context.Context, appIdToAppName map[int]string) (map[int][]byte, error)
- func (impl *ChartRefServiceImpl) GetChartInBytes(chartRefId int, performCleanup bool) ([]byte, error)
- func (impl *ChartRefServiceImpl) GetChartLocation(chartRefLocation string, chartData []byte) (string, error)
- func (impl *ChartRefServiceImpl) GetDefault() (*bean.ChartRefDto, error)
- func (impl *ChartRefServiceImpl) GetRefChart(chartRefId int) (string, string, string, string, error)
- func (impl *ChartRefServiceImpl) GetSchemaAndReadmeForTemplateByChartRefId(chartRefId int) ([]byte, []byte, error)
- func (impl *ChartRefServiceImpl) JsonSchemaExtractFromFile(chartRefId int) (map[string]interface{}, string, error)
- func (impl *ChartRefServiceImpl) SaveCustomChart(req *bean.CustomChartRefDto) error
- func (impl *ChartRefServiceImpl) ValidateCustomChartUploadedFileFormat(fileName string) error
- type CustomChartService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCompatibility ¶
func CompatibleChartsWith ¶
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, deleteChart bool) ([]byte, error) GetChartBytesForApps(ctx context.Context, appIdToAppName map[int]string) (map[int][]byte, error) GetChartLocation(chartRefLocation string, chartData []byte) (string, error) }
type ChartRefService ¶
type ChartRefService interface { ChartRefDbReadService CustomChartService ChartRefFileOpService }
type ChartRefServiceImpl ¶
type ChartRefServiceImpl struct {
// contains filtered or unexported fields
}
func NewChartRefServiceImpl ¶
func NewChartRefServiceImpl(logger *zap.SugaredLogger, chartRefRepository chartRepoRepository.ChartRefRepository, chartTemplateService util.ChartTemplateService, chartRepository chartRepoRepository.ChartRepository, mergeUtil util.MergeUtil) *ChartRefServiceImpl
func (*ChartRefServiceImpl) ChartRefAutocomplete ¶
func (impl *ChartRefServiceImpl) ChartRefAutocomplete() ([]*bean.ChartRefAutocompleteDto, error)
func (*ChartRefServiceImpl) ChartRefIdsCompatible ¶
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 (*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) GetRefChart ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.