Documentation ¶
Index ¶
- type ChartGenerator
- func (cg *ChartGenerator) AddPackage(pkg string)
- func (cg *ChartGenerator) CreateChart() error
- func (cg *ChartGenerator) GetLanguage() (string, error)
- func (cg *ChartGenerator) GetSupportedLanguages() ([]string, error)
- func (cg *ChartGenerator) IsSupportedLanguage(language string) bool
- func (cg *ChartGenerator) RemovePackage(pkg string)
- type TemplateRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartGenerator ¶
type ChartGenerator struct { Path string Language string TemplateRepo *TemplateRepository // contains filtered or unexported fields }
ChartGenerator is a type of object that generates a Helm Chart
func (*ChartGenerator) AddPackage ¶
func (cg *ChartGenerator) AddPackage(pkg string)
AddPackage adds a package to the project's helm chart
func (*ChartGenerator) CreateChart ¶
func (cg *ChartGenerator) CreateChart() error
CreateChart creates a chart of a project that works with Helm
func (*ChartGenerator) GetLanguage ¶
func (cg *ChartGenerator) GetLanguage() (string, error)
GetLanguage gets the language from Chartgenerator either from its field "Language" or by detecting it
func (*ChartGenerator) GetSupportedLanguages ¶
func (cg *ChartGenerator) GetSupportedLanguages() ([]string, error)
GetSupportedLanguages returns all languages that are available in the local Template Rempository
func (*ChartGenerator) IsSupportedLanguage ¶
func (cg *ChartGenerator) IsSupportedLanguage(language string) bool
IsSupportedLanguage returns true if the given language is supported by the ChartGenerator
func (*ChartGenerator) RemovePackage ¶
func (cg *ChartGenerator) RemovePackage(pkg string)
RemovePackage removes a package to the project's helm chart
type TemplateRepository ¶
TemplateRepository contains the URL and local path to a repository for DevSpaceTemplates
Click to show internal directories.
Click to hide internal directories.