Documentation
¶
Index ¶
Constants ¶
View Source
const ( XPathRoot = "" XPathSliceIndexNone = -1 XPathSeparator = "." MultiValueSeparator = ":" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartConfig ¶
type ChartConfig struct { Logger logr.Logger Chartname string `yaml:"chartname"` GlobalConfig Config `yaml:"globalConfig"` FileConfig map[string]Config `yaml:"fileConfig"` }
func NewChartConfig ¶
func NewChartConfig(logger logr.Logger, chartname string) *ChartConfig
func (*ChartConfig) GetFormattedCondition ¶ added in v0.3.0
func (c *ChartConfig) GetFormattedCondition(xc *XPathConfig, prefix string) (string, bool)
func (*ChartConfig) GetFormattedKeyWithDefaultValue ¶
func (c *ChartConfig) GetFormattedKeyWithDefaultValue(xc *XPathConfig, prefix string) (string, KeyType)
func (*ChartConfig) Validate ¶
func (c *ChartConfig) Validate() error
func (*ChartConfig) Values ¶
func (cc *ChartConfig) Values() (string, error)
type Config ¶
type Config map[XPath]XPathConfigs
type GenericMap ¶
type GenericMap map[string]interface{}
type XPathConfig ¶
type XPathConfig struct { Strategy XPathStrategy `yaml:"strategy"` Key string `yaml:"key"` Value interface{} `yaml:"value,omitempty"` DefaultValue interface{} `yaml:"defaultValue,omitempty"` Regex string `yaml:"regex,omitempty"` RegexCompiled *regexp2.Regexp `yaml:"-"` Conditions []Condition `yaml:"conditions,omitempty"` ConditionOperator *string `yaml:"conditionOperator,omitempty"` // Deprecated Condition string `yaml:"condition,omitempty"` ConditionValue bool `yaml:"conditionValue,omitempty"` }
func (*XPathConfig) ValueRequiresQuote ¶ added in v0.2.0
func (xc *XPathConfig) ValueRequiresQuote() bool
type XPathConfigs ¶
type XPathConfigs []XPathConfig
type XPathStrategy ¶
type XPathStrategy string
const ( XPathStrategyInline XPathStrategy = "inline" XPathStrategyInlineYAML XPathStrategy = "inline-yaml" XPathStrategyNewline XPathStrategy = "newline" XPathStrategyNewlineYAML XPathStrategy = "newline-yaml" XPathStrategyControlIf XPathStrategy = "control-if" XPathStrategyControlIfYAML XPathStrategy = "control-if-yaml" XPathStrategyControlWith XPathStrategy = "control-with" XPathStrategyControlRange XPathStrategy = "control-range" XPathStrategyFileIf XPathStrategy = "file-if" XPathStrategyInlineRegex XPathStrategy = "inline-regex" XPathStrategyAppendWith XPathStrategy = "append-with" )
Click to show internal directories.
Click to hide internal directories.