Alex Ellis
028803b4a5
Quote eTag
2017-10-01 13:38:32 +02:00
Ken Fukuyama
ac3e91cbdc
added a sidenav toggle button when the sidenav is hidden.
...
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2017-10-01 09:42:10 +02:00
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
John McCabe
d7bc2695c3
Add favicons for broad range of browsers/devices
...
Signed-off-by: John McCabe <john@johnmccabe.net>
2017-09-26 09:32:21 +01:00
Alex Ellis
ca9a7fe97c
Reinstating tests
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-23 20:42:13 +01:00
Alex Ellis
2229e922d7
Add update endpoint/route
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-23 20:42:13 +01:00
Alex Young
84ae82473c
Use types from requests
...
Signed-off-by: Alex Young <alex@heuris.io>
2017-09-22 14:39:01 +01:00
Alex Young
403236610a
Remove duplication from createfunction_test.go
...
Signed-off-by: Alex Young <alex@heuris.io>
2017-09-22 14:39:01 +01:00
Alex Young
031a0bc18c
Add tests around error handing done in #196
...
Signed-off-by: Alex Young <alex@heuris.io>
2017-09-22 14:39:01 +01:00
Alex Ellis
d2b15241c6
fix x-header
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-19 22:14:04 +01:00
Eric Stoekl
1622fadd9c
Return error when ServiceCreate fails in
...
gateway/handler/createhandler.go
Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2017-09-19 20:14:05 +01:00
Alex Ellis
ec22a301fe
Refactor out handler file from server.go
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-13 10:28:40 -07:00
wangguoliang
94a15e44d5
should use strings.Contains() instead of stings.Index()
...
Signed-off-by: wgliang <liangcszzu@163.com>
2017-09-13 09:55:45 -07:00
Alex Ellis
622b24268d
Merge branch 'master' of https://github.com/alexellis/faas
2017-09-13 09:54:14 -07:00
Alex Ellis
499d6128e5
remove comment
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-13 09:54:05 -07:00
Ken Fukuyama
ab8a7e6869
Added feature to delete functions from the UI
...
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2017-09-13 08:43:19 -07:00
Alex Ellis
d127dc7cb0
Give feedback via toast in UI.
2017-09-08 10:43:44 +01:00
Alex Ellis
5339fdcdbe
Query Prometheus API for stats.
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-07 22:42:27 +01:00
Alex Ellis
3db2064d91
Handle constraints
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-04 13:42:36 +01:00
Alex Ellis
777351af76
Remove old Dockerfiles
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-03 20:44:44 +01:00
Alex Ellis
78daa9cd39
Specify Linux constraints by default
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-02 20:12:10 +01:00
Alex Ellis
fba2d8aa52
Add MIT header
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
Alex
2cca166dc0
Update async for CallbackUrl
...
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
Alex
3031531b3c
Specify callback URL via http header
...
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
Alex
fa069e412c
Remove Docker client from NATS
...
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
Alex Ellis
cfcb183bc7
Name builder steps
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
Alex Ellis
bd146f526c
Sync async_nats work with master
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
Alex Ellis
c5815d36ab
add_missing_mit_header_27_aug
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-27 22:37:19 +01:00
Alex Ellis
c163b7d2a8
Add gateway_service_count metric for external provider
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-25 08:14:05 +01:00
Alex Ellis
b6002e1c85
Add EnvProcess and logo to UI
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-23 09:01:44 +01:00
Fabien Le Frapper
e8f387fa47
Use Roboto Mono for code blocks & use on imports for all fonts
...
Signed-off-by: Fabien Le Frapper <contact@fabienlefrapper.me>
2017-08-22 17:49:39 +01:00
Alex
3ac73340c3
Allow restarts of up to 5 times with 5 sec delays
...
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-16 21:34:05 +01:00
Alex Ellis
7818f3fb17
Bump arm to 0.6.0
...
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-13 20:20:42 +00:00
Alex Ellis
ce8d5838dc
Add plugin folder to Dockerfile
2017-08-08 09:14:46 +01:00
Alex Ellis
f165ce2ca7
External replica proxy
2017-08-08 09:14:46 +01:00
Alex Ellis
33381a783a
External alert-handler support.
2017-08-08 09:14:46 +01:00
Alex
1e4b5f907a
Wrap scaling / alert handling in interface/adapter pattern.
2017-08-08 09:14:46 +01:00
Alex
fa210a0dd3
Move HttpAdapter to own file
2017-08-08 09:14:46 +01:00
Alex
9df92c7f1b
Start logging metrics
2017-08-08 09:14:46 +01:00
Alex
35a15cff01
Support external URL for FaaS functions
2017-08-08 09:14:46 +01:00
leigh schrandt
cc3308a555
Relocate config_test to tests package and
...
Export struct members of GatewayConfig{}
2017-07-18 08:46:46 +01:00
leigh schrandt
457d0be78b
Add GatewayConfig
...
Add env configurable readTimeout / writeTimeout
Add env-timeout test
Modify appropriate Dockerfiles
Signed-off-by: leigh schrandt <leigh@null.net>
2017-07-18 08:46:46 +01:00
Alex Ellis
283d311b08
Update vendoring via vndr
2017-07-12 20:30:56 +01:00
Sebastien Guilloux
eccf94295f
Run unit tests before build
...
This modifies Dockerfile.build.* to run unit tests before build.
2017-05-30 17:10:34 +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
201d2c20de
Requests update
2017-05-08 13:42:14 +01:00
Alex Ellis
9e3eaea754
Pass env-vars to functions via API gateway
2017-05-08 13:42:14 +01:00
Alex Ellis
024bd5419b
Format and add multi-stage Dockerfile
2017-05-08 13:42:14 +01:00
Alex Ellis
968002c15f
Extract magic variables for server
2017-05-08 13:42:14 +01:00
Alex Ellis
0b2d3ea6c0
Move static files to ui folder
2017-05-08 13:42:14 +01:00