Documentation
¶
Index ¶
- func EvaluateExpression(expression string, content []byte) ([]byte, error)
- func EvaluateExpressionPlain(expression, content string, colorsEnabled bool) (string, error)
- func EvaluateExpressionWithEncoder(expression, content string, encoder yqlib.Encoder) (string, error)
- func Join(yqExprs []string) string
- func ValidateContent(content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateExpression ¶
EvaluateExpression evaluates the yq expression and returns the output formatted with yamlfmt.
func EvaluateExpressionPlain ¶
EvaluateExpressionPlain evaluates the yq expression and returns the yq result.
func EvaluateExpressionWithEncoder ¶
func EvaluateExpressionWithEncoder(expression, content string, encoder yqlib.Encoder) (string, error)
EvaluateExpressionWithEncoder evaluates the yq expression and returns the yq result using a custom encoder.
func ValidateContent ¶
ValidateContent decodes the content yaml, to check it for syntax errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.