MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / webSecureSecret

Function webSecureSecret

commands/action.go:903–912  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

901// false: return false, meaning no secret was returned
902// string: return the same string
903func 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
914func getLimits(memorySet bool, logSizeSet bool, timeoutSet bool, concurrencySet bool, memory int, logSize int, timeout int, concurrency int) *whisk.Limits {
915 var limits *whisk.Limits

Callers 2

augmentWebSecureArgFunction · 0.85

Calls 1

genWebActionSecureKeyFunction · 0.85

Tested by

no test coverage detected