recipeutil

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ValueEnvVarPrefix = "JALAPENO_VAR_"

Variables

View Source
var (
	ErrVarNotDefinedInRecipe = errors.New("following variable does not exist in the recipe")
)

Functions

func CSVToTable added in v0.1.9

func CSVToTable(columns []string, str string, delimiter rune) ([]map[string]string, error)

func CheckForUpdates added in v0.1.16

func CheckForUpdates(sauce *re.Sauce, opts option.OCIRepository) ([]string, error)

func CreateExampleRecipe added in v0.1.1

func CreateExampleRecipe(name string) *recipe.Recipe

func CreateExampleTest added in v0.1.1

func CreateExampleTest() *recipe.Test

func CreateFileTree added in v0.1.4

func CreateFileTree(root string, files map[string]recipe.File) string

func FilterVariablesWithoutValues added in v0.1.0

func FilterVariablesWithoutValues(variables []recipe.Variable, values recipe.VariableValues) []recipe.Variable

func MergeValues added in v0.1.0

func MergeValues(valuesSlice ...recipe.VariableValues) recipe.VariableValues

MergeValues merges multiple VariableValues into one. If a key exists in multiple VariableValues, the value from the last VariableValues will be used.

func NewNoInputError added in v0.1.28

func NewNoInputError(vars []recipe.Variable) error

func ParseProvidedValues added in v0.1.0

func ParseProvidedValues(variables []recipe.Variable, flags []string, delimiter rune) (recipe.VariableValues, error)

func RowsToTable added in v0.1.12

func RowsToTable(columns []string, rows [][]string) ([]map[string]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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