github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/db/db_common/appname.go (about)

     1  package db_common
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/turbot/steampipe/pkg/constants"
     7  )
     8  
     9  func IsClientAppName(appName string) bool {
    10  	return strings.HasPrefix(appName, constants.ClientConnectionAppNamePrefix) && !strings.HasPrefix(appName, constants.ClientSystemConnectionAppNamePrefix)
    11  }
    12  
    13  func IsClientSystemAppName(appName string) bool {
    14  	return strings.HasPrefix(appName, constants.ClientSystemConnectionAppNamePrefix)
    15  }
    16  
    17  func IsServiceAppName(appName string) bool {
    18  	return strings.HasPrefix(appName, constants.ServiceConnectionAppNamePrefix)
    19  }