parser

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithFileValues added in v0.70.0

func OptionWithFileValues(values ...string) options.ParserOption

func OptionWithStringValues added in v0.70.0

func OptionWithStringValues(values ...string) options.ParserOption

func OptionWithValues added in v0.70.0

func OptionWithValues(values ...string) options.ParserOption

func OptionWithValuesFile added in v0.70.0

func OptionWithValuesFile(paths ...string) options.ParserOption

Types

type ChartFile

type ChartFile struct {
	TemplateFilePath string
	ManifestContent  string
}

type ConfigurableHelmParser added in v0.70.0

type ConfigurableHelmParser interface {
	options.ConfigurableParser
	SetValuesFile(...string)
	SetValues(...string)
	SetFileValues(...string)
	SetStringValues(...string)
}

type Parser

type Parser struct {
	ChartSource string
	// contains filtered or unexported fields
}

func New

func New(path string, options ...options.ParserOption) *Parser

func (*Parser) ParseFS

func (p *Parser) ParseFS(ctx context.Context, target fs.FS, path string) error

func (*Parser) RenderedChartFiles

func (p *Parser) RenderedChartFiles() ([]ChartFile, error)

func (*Parser) SetDebugWriter

func (p *Parser) SetDebugWriter(writer io.Writer)

func (*Parser) SetFileValues added in v0.70.0

func (p *Parser) SetFileValues(values ...string)

func (*Parser) SetSkipRequiredCheck

func (p *Parser) SetSkipRequiredCheck(b bool)

func (*Parser) SetStringValues added in v0.70.0

func (p *Parser) SetStringValues(values ...string)

func (*Parser) SetValues added in v0.70.0

func (p *Parser) SetValues(values ...string)

func (*Parser) SetValuesFile added in v0.70.0

func (p *Parser) SetValuesFile(s ...string)

type ValueOptions added in v0.70.0

type ValueOptions struct {
	ValueFiles   []string
	StringValues []string
	Values       []string
	FileValues   []string
}

func (*ValueOptions) MergeValues added in v0.70.0

func (opts *ValueOptions) MergeValues() (map[string]interface{}, error)

MergeValues merges values from files specified via -f/--values and directly via --set, --set-string, or --set-file, marshaling them to YAML

Jump to

Keyboard shortcuts

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