mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-21 10:59:23 -05:00
20 lines
551 B
Go
20 lines
551 B
Go
package db_common
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
|
)
|
|
|
|
func IsClientAppName(appName string) bool {
|
|
return strings.HasPrefix(appName, constants.ClientConnectionAppNamePrefix) && !strings.HasPrefix(appName, constants.ClientSystemConnectionAppNamePrefix)
|
|
}
|
|
|
|
func IsClientSystemAppName(appName string) bool {
|
|
return strings.HasPrefix(appName, constants.ClientSystemConnectionAppNamePrefix)
|
|
}
|
|
|
|
func IsServiceAppName(appName string) bool {
|
|
return strings.HasPrefix(appName, constants.ServiceConnectionAppNamePrefix)
|
|
}
|