9 Commits

Author SHA1 Message Date
John McCabe
40e1fac1c2 Implement Swarm update handler using PUT
This commit implements an update handler for Docker Swarm, it queries the
current spec, updates values in-situ before calling ServiceUpdate.

The UpdateConfig FailureAction is set to rollback, so in the event of
supplying values to the update that would result in the service failing
then the update will be rolled back.

The UpdateConfig Parallelism param is set to an explicit value of 1 which
will result in functions being updated 1 by 1 rather than all at once.

It also moves the restartDelay declaration out of the create and update
handlers and into the main server function alongside maxRestarts.

And finally this commit uses the PUT HTTP verb for updates rather than
the non-HTTP UPDATE verb which was being used initially (also adding it
to the Swagger definition).

Signed-off-by: John McCabe <john@johnmccabe.net>
2017-09-27 09:58:03 +01:00
Alex Ellis
e2d7cb9a38 Bump to 0.6.1 2017-08-25 10:26:14 +01:00
Alex Ellis
1286e34a11 Update with invoke URLs and new website. 2017-08-25 10:25:41 +01:00
Alex Ellis
9639bc732b Create README.md 2017-08-25 10:15:00 +01:00
Sebastien Guilloux
9e711b3b5d Handle private docker registry auth
This adds support for private docker registries, by adding
an optional `registryAuth` field in the CreateFunctionRequest.
Auth must be passed as base64-encoded basic auth, similar to
how done in Docker file store credentials (~/.docker/config.json).
Credentials are then passed to swarm at service creation.
2017-05-30 17:10:34 +01:00
Alex Ellis
aa2e5d525b Document envVars to create method 2017-05-18 09:16:54 +01:00
Alex Ellis
0bada07f78 Include Alert endpoint in docs 2017-05-01 20:03:30 +01:00
Alex Ellis
cbcd0603d6 Add get/delete to Swagger 2017-05-01 19:33:53 +01:00
Alex Ellis
cafc5f0e0d Add Swagger definition for Deploy a new function 2017-05-01 16:44:31 +01:00