transform

package
Version: v0.456.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalFileWithParam

func EvalFileWithParam(fs afero.Fs, scriptPath string, param rel.Value) (rel.Value, error)

EvalFileWithParam returns the result of evaluating the function in the specified file, passing in the specified parameter.

func EvalWithParam

func EvalWithParam(script string, param rel.Value) (rel.Value, error)

EvalWithParam returns the result of evaluating the function in the specified string, passing in the specified parameter.

func ExprFileWithParam

func ExprFileWithParam(fs afero.Fs, scriptPath string, param rel.Value) (rel.Expr, error)

ExprFileWithParam returns the unevaluated expression of the function in the specified file after the specified parameter was applied to it.

func ExprWithParam

func ExprWithParam(script string, scriptPath string, param rel.Value) (rel.Expr, error)

ExprWithParam returns the unevaluated expression of the function in the specified string after the specified parameter was applied to it.

func RunTests

func RunTests(testScript string, testScriptPath string, param rel.Value) (test.File, error)

RunTests runs the test function in the specified string, passing in the specified param, and returns a populated test.File with the results.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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