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

Function webAction

commands/action.go:763–778  ·  view source on GitHub ↗
(webMode string, annotations whisk.KeyValueArr, entityName string, preserveAnnotations bool, existingAction *whisk.Action)

Source from the content-addressed store, hash-verified

761}
762
763func webAction(webMode string, annotations whisk.KeyValueArr, entityName string, preserveAnnotations bool, existingAction *whisk.Action) (whisk.KeyValueArr, error) {
764 switch strings.ToLower(webMode) {
765 case "yes":
766 fallthrough
767 case "true":
768 return webActionAnnotations(preserveAnnotations, annotations, entityName, addWebAnnotations, existingAction)
769 case "no":
770 fallthrough
771 case "false":
772 return webActionAnnotations(preserveAnnotations, annotations, entityName, deleteWebAnnotations, existingAction)
773 case "raw":
774 return webActionAnnotations(preserveAnnotations, annotations, entityName, addRawAnnotations, existingAction)
775 default:
776 return nil, webInputError(webMode)
777 }
778}
779
780type WebActionAnnotationMethod func(annotations whisk.KeyValueArr) whisk.KeyValueArr
781

Callers 1

augmentWebArgFunction · 0.85

Calls 2

webActionAnnotationsFunction · 0.85
webInputErrorFunction · 0.85

Tested by

no test coverage detected