(v string)
| 974 | } |
| 975 | |
| 976 | func apiTypeFor(v string) string { |
| 977 | switch strings.ToLower(v) { |
| 978 | case "native": |
| 979 | return appTypeNative |
| 980 | case "spa", "single page web application": |
| 981 | return appTypeSPA |
| 982 | case "regular", "regular web application": |
| 983 | return appTypeRegularWeb |
| 984 | case "m2m", "machine to machine": |
| 985 | return appTypeNonInteractive |
| 986 | case "resource server": |
| 987 | return appTypeResourceServer |
| 988 | default: |
| 989 | return v |
| 990 | } |
| 991 | } |
| 992 | |
| 993 | func apiAuthMethodFor(v string) *string { |
| 994 | switch strings.ToLower(v) { |
no outgoing calls
no test coverage detected