MCPcopy Create free account
hub / github.com/devspace-sh/devspace / validateFunctions

Function validateFunctions

pkg/devspace/config/versions/validate.go:118–126  ·  view source on GitHub ↗
(functions map[string]string)

Source from the content-addressed store, hash-verified

116}
117
118func validateFunctions(functions map[string]string) error {
119 for name := range functions {
120 if isReservedFunctionName(name) {
121 return fmt.Errorf("you cannot use '%s' as a function name as its an internally used special function. Please choose another name", name)
122 }
123 }
124
125 return nil
126}
127
128func validateVars(vars map[string]*latest.Variable) error {
129 for i, v := range vars {

Callers 1

ValidateFunction · 0.85

Calls 2

isReservedFunctionNameFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected