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

Function genWebActionSecureKey

commands/action.go:1252–1257  ·  view source on GitHub ↗

Generate a random number to be used as a web action's require-whisk-auth secret

()

Source from the content-addressed store, hash-verified

1250
1251// Generate a random number to be used as a web action's require-whisk-auth secret
1252func genWebActionSecureKey() int64 {
1253 r := rand.New(rand.NewSource(time.Now().Unix()))
1254
1255 // Truncate integer for API GW interoperability
1256 return r.Int63() & MAX_JS_INT
1257}
1258
1259// Check if the specified action is a web-action
1260func isWebAction(client *whisk.Client, qname QualifiedName) (*whisk.Action, error) {

Callers 1

webSecureSecretFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected