IsValidAppType is a helper function to determine if an app type is valid, returning true if the given app type is valid and configured and false otherwise.
(apptype string)
| 567 | // IsValidAppType is a helper function to determine if an app type is valid, returning |
| 568 | // true if the given app type is valid and configured and false otherwise. |
| 569 | func IsValidAppType(apptype string) bool { |
| 570 | if _, ok := appTypeMatrix[apptype]; !ok { |
| 571 | return false |
| 572 | } |
| 573 | |
| 574 | return true |
| 575 | } |
| 576 | |
| 577 | // GetValidAppTypes returns the valid apptype keys from the appTypeMatrix |
| 578 | func GetValidAppTypes() []string { |
no outgoing calls