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

Function getWebActionAnnotations

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

Source from the content-addressed store, hash-verified

831}
832
833func getWebActionAnnotations(action *whisk.Action) whisk.KeyValueArr {
834 var webKvArr = make(whisk.KeyValueArr, 3, 3)
835 var j = 0
836
837 var i = action.Annotations.FindKeyValue(WEB_EXPORT_ANNOT)
838 if i > -1 {
839 webKvArr[j] = action.Annotations[i]
840 j++
841 }
842 i = action.Annotations.FindKeyValue(RAW_HTTP_ANNOT)
843 if i > -1 {
844 webKvArr[j] = action.Annotations[i]
845 j++
846 }
847 i = action.Annotations.FindKeyValue(FINAL_ANNOT)
848 if i > -1 {
849 webKvArr[j] = action.Annotations[i]
850 j++
851 }
852 return webKvArr[0:j]
853}
854
855func getWebSecureAnnotations(action *whisk.Action) whisk.KeyValueArr {
856 var webKvArr = make(whisk.KeyValueArr, 1, 1)

Callers 1

augmentWebSecureArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected