parser

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithAPIVersions

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

func OptionWithFileValues

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

func OptionWithStringValues

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

func OptionWithValues

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

func OptionWithValuesFile

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

Types

type ChartFile

type ChartFile struct {
	TemplateFilePath string
	ManifestContent  string
}

type ConfigurableHelmParser

type ConfigurableHelmParser interface {
	options.ConfigurableParser
	SetValuesFile(...string)
	SetValues(...string)
	SetFileValues(...string)
	SetStringValues(...string)
	SetAPIVersions(...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) SetAPIVersions

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

func (*Parser) SetDebugWriter

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

func (*Parser) SetFileValues

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

func (*Parser) SetSkipRequiredCheck

func (p *Parser) SetSkipRequiredCheck(b bool)

func (*Parser) SetStringValues

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

func (*Parser) SetValues

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

func (*Parser) SetValuesFile

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

type ValueOptions

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

func (*ValueOptions) MergeValues

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