parser

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithAPIVersions added in v0.0.2

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

func OptionWithFileValues added in v0.0.2

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

func OptionWithStringValues added in v0.0.2

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

func OptionWithValues added in v0.0.2

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

func OptionWithValuesFile added in v0.0.2

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

Types

type ChartFile

type ChartFile struct {
	TemplateFilePath string
	ManifestContent  string
}

type ConfigurableHelmParser added in v0.0.2

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 added in v0.0.2

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

func (*Parser) SetDebugWriter

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

func (*Parser) SetFileValues added in v0.0.2

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

func (*Parser) SetSkipRequiredCheck

func (p *Parser) SetSkipRequiredCheck(b bool)

func (*Parser) SetStringValues added in v0.0.2

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

func (*Parser) SetValues added in v0.0.2

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

func (*Parser) SetValuesFile added in v0.0.2

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

type ValueOptions added in v0.0.2

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

func (*ValueOptions) MergeValues added in v0.0.2

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