generator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 10 Imported by: 3

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