(action *whisk.Action)
| 853 | } |
| 854 | |
| 855 | func 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 |
no outgoing calls
no test coverage detected