Generate a secret according to the --web-secure setting true: return a random int64 false: return false, meaning no secret was returned string: return the same string
(webSecureMode string)
| 901 | // false: return false, meaning no secret was returned |
| 902 | // string: return the same string |
| 903 | func webSecureSecret(webSecureMode string) interface{} { |
| 904 | switch strings.ToLower(webSecureMode) { |
| 905 | case "true": |
| 906 | return genWebActionSecureKey() |
| 907 | case "false": |
| 908 | return false |
| 909 | default: |
| 910 | return webSecureMode |
| 911 | } |
| 912 | } |
| 913 | |
| 914 | func getLimits(memorySet bool, logSizeSet bool, timeoutSet bool, concurrencySet bool, memory int, logSize int, timeout int, concurrency int) *whisk.Limits { |
| 915 | var limits *whisk.Limits |
no test coverage detected