github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/model/application.go (about) 1 package model 2 3 import ( 4 "errors" 5 6 "github.com/pyroscope-io/pyroscope/pkg/flameql" 7 ) 8 9 var ( 10 ErrApplicationNotFound = NotFoundError{errors.New("application not found")} 11 ) 12 13 func ValidateAppName(appName string) error { 14 err := flameql.ValidateAppName(appName) 15 if err != nil { 16 return ValidationError{err} 17 } 18 return nil 19 }