substitution

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package substitution contains useful functionality for validating variables

Index

Constants

View Source
const BraceMatchingRegex = "(\\$(\\(%s\\.(?P<var>%s)\\)))"

Variables

View Source
var MergeMap = maps.MergeMap

MergeMap merges the right map into left map overwritting any matching keys Deprecated: use maps.MergeMap instead

View Source
var MergeMapSlice = maps.MergeMapSlice

MergeMapSlice merges the right map into left map overwritting any matching keys Deprecated: use maps.MergeMapSlice instead

Functions

func TektonValidateSingleVariable

func TektonValidateSingleVariable(vars sets.String, path string, name, value, locationName, v string) *apis.FieldError

func ValidateVariable

func ValidateVariable(name, value, prefix, locationName, path string, vars sets.String,
	paramSubstitution string, validateFunc ValidateSingleVariableFunc) *apis.FieldError

func VersionValidateSingleVariable

func VersionValidateSingleVariable(vars sets.String, path string, name, value, locationName, v string) *apis.FieldError

Types

type GetValWithKeyFunc

type GetValWithKeyFunc func(ctx context.Context, path *field.Path) map[string]string

GetValWithKeyFunc standard function to extract value maps from objects

type ValidateSingleVariableFunc

type ValidateSingleVariableFunc func(vars sets.String, path string, name string, value string, locationName string, paramName string) *apis.FieldError

Jump to

Keyboard shortcuts

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