chart

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HELM_CHARTS_FOLDER = "/helm/"

Variables

View Source
var CouldNotGenerateChartFileError = &microerror.Error{
	Kind: "CouldNotGenerateChartFileError",
	Desc: "The Chart README file could not be generated.",
}
View Source
var CouldNotParsedChartFileError = &microerror.Error{
	Kind: "CouldNotParsedChartFileError",
	Desc: "The Chart README file could not be parsed.",
}
View Source
var CouldNotReadChartMetadataFileError = &microerror.Error{
	Kind: "CouldNotReadChartMetadataFileError",
	Desc: "The Chart README file could not be parsed.",
}

Functions

func GenerateChartConfig added in v0.2.0

func GenerateChartConfig(basePath string, chartName string) ([]byte, error)

GenerateChartConfig generates a README YAML file and returns the Content to render.

func IsCouldNotGenerateChartFileError added in v0.2.0

func IsCouldNotGenerateChartFileError(e error) bool

IsCouldNotGenerateChartFileError asserts CouldNotGenerateChartFileError

func IsCouldNotParsedChartFileError

func IsCouldNotParsedChartFileError(e error) bool

IsCouldNotParsedChartFileError asserts CouldNotParsedChartFileError

func IsCouldNotReadChartMetadataFileError added in v0.2.0

func IsCouldNotReadChartMetadataFileError(e error) bool

IsCouldNotReadChartMetadataFileError asserts CouldNotReadChartMetadataFileError

Types

type Metadata

type Metadata struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Version     string `yaml:"version"`
	Annotations struct {
		Team string `yaml:"application.giantswarm.io/team"`
	} `yaml:"annotations"`
}

func ReadChartMetadata

func ReadChartMetadata(basePath string, chartName string) (Metadata, error)

Read reads a README YAML file and returns the Content to render.

Jump to

Keyboard shortcuts

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