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

Method Insert

commands/trigger_test.go:36–39  ·  view source on GitHub ↗
(trigger *whisk.Trigger, overwrite bool)

Source from the content-addressed store, hash-verified

34 return []whisk.Trigger{}, &http.Response{}, nil
35}
36func (t MockedTriggerService) Insert(trigger *whisk.Trigger, overwrite bool) (*whisk.Trigger, *http.Response, error) {
37 Triggers[trigger.Name] = trigger
38 return trigger, &http.Response{}, nil
39}
40func (t MockedTriggerService) Get(triggerName string) (*whisk.Trigger, *http.Response, error) {
41 var trigger *whisk.Trigger
42 var ok bool

Callers 7

api.goFile · 0.80
rule.goFile · 0.80
package.goFile · 0.80
createOrUpdateFunction · 0.80
UpdateMethod · 0.80
UpdateExtendedVersionFunction · 0.80
action.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected