generator

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

type TemplateRepository struct {
	URL       string
	LocalPath string
}

TemplateRepository contains the URL and local path to a repository for DevSpaceTemplates

Jump to

Keyboard shortcuts

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