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

Function getWebSecureAnnotations

commands/action.go:855–866  ·  view source on GitHub ↗
(action *whisk.Action)

Source from the content-addressed store, hash-verified

853}
854
855func getWebSecureAnnotations(action *whisk.Action) whisk.KeyValueArr {
856 var webKvArr = make(whisk.KeyValueArr, 1, 1)
857 var j = 0
858
859 var i = action.Annotations.FindKeyValue(WEB_SECURE_ANNOT)
860 if i > -1 {
861 webKvArr[j] = action.Annotations[i]
862 j++
863 }
864
865 return webKvArr[0:j]
866}
867
868/*
869 * Update the existing annotations with the web security annotation

Callers 2

augmentWebArgFunction · 0.85
augmentWebSecureArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected