April 2018
Intermediate to advanced
250 pages
5h 42m
English
OK, now we are ready to try out both newly created C and Go functions built in the previous sections. First, we will create an action using the wsk action create command starting with the C program:
$ wsk -i action create --docker chanwit/whisk_c whisk_cok: created action whisk_c
If things go correctly, wsk will tell us ok: created action. Next, we will invoke the action using the wsk action invoke command. The invoke command accepts one or more --param to pass parameters to the action. We can also pass --result to obtain the result synchronously. The result is, of course returned as JSON:
$ wsk -i action invoke --param key value --result whisk_c{ "args": { "key": "value" }, "msg": "Hello from C program!"}
We will try once more, ...
Read now
Unlock full access