INNER CODE UNIT · Go
validatePipelineName
ozontech/file.d · cfg/config.go:252
func validatePipelineName(name string) error {
matched, err := regexp.MatchString("^[a-zA-Z0-9_]+$", name)
if err != nil {
return err
}
if !matched {
return fmt.Errorf(`pipeline name "%s" not satisfy regexp pattern ^[a-zA-Z0-9_]+$`, name)
}
return nil
}
func applyConfigFuncs(apps []funcApplier, object *simplejson.Json) {
for _, app := range apps {
applyConfigFunc(app, object)
}
}
func applyConfigFunc(app funcApplier, object *simplejson.Json) {