recipeutil

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 13 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 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(name string) recipe.Test

func CreateFileTree added in v0.1.4

func CreateFileTree(root string, files map[string]FileStatus) 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, parseEnvs bool) (recipe.VariableValues, error)

Types

type FileStatus added in v1.5.0

type FileStatus int
const (
	FileUnchanged FileStatus = iota
	FileAdded
	FileModified
	FileDeleted
)

func (FileStatus) String added in v1.5.0

func (f FileStatus) String() string

Jump to

Keyboard shortcuts

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