chart

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func IsCouldNotParsedChartFileError

func IsCouldNotParsedChartFileError(e error) bool

IsCouldNotParsedChartFileError asserts CouldNotParsedChartFileError

func IsCouldNotReadChartFileError

func IsCouldNotReadChartFileError(e error) bool

IsCouldNotReadChartFileError asserts CouldNotReadChartFileError

func ReadChartConfig

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

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

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