Commit Graph

275 Commits

Author SHA1 Message Date
Pedro Nasser
dea100d3d9 fn improvements: (#560)
- standardized required args validation
- routes create/update now prioritize args, over flags, over funcfile configuration
- removed deadcode
2017-03-01 17:55:48 -08:00
patrick
200ac4673a Update options.md (#541)
update readme.md
2017-02-24 19:12:05 -06:00
Travis Reeder
6119f07007 Fixes some route creation and updating bugs. (#526)
* Fixes some route creation and updating bugs.

* Updated README

* Added more info the quickstart

* Updated based on PR comments.

* Fixed based on comments.

* Updated per comments.
2017-02-24 16:04:04 -08:00
Alexander Shapiotko
abe09a26c7 docs for functions ui (#504)
* docs for functions ui

* update readme
2017-01-31 11:58:00 -08:00
Travis Reeder
ce26f665ea Middleware (#502)
* API endpoint extensions working.

extensions example.

extensions example.

* Added server.NewEnv and some docs for the API extensions example.

extensions example.

extensions example.

* Uncommented special handler stuff.

* First example of middleware.

easier to use.

* Added a special Middleware context to make middleware easier to use.

* Fix tests.

* Cleanup based on PR comments.
2017-01-30 23:43:23 +01:00
Travis Reeder
d5116397b6 API extension points (#473)
* API endpoint extensions working.

extensions example.

* Added server.NewEnv and some docs for the API extensions example.

extensions example.
example main.go.

* Uncommented special handler stuff.

* Added section in docs for extending API linking to example main.go.

* Commented out special_handler test

* Changed to NewFromEnv
2017-01-30 12:14:28 -08:00
Travis Reeder
e5ef5ee6da Added kubernetes and docker swarm to main TOC. (#497) 2017-01-24 11:20:51 -08:00
Derek Schultz
fccead2801 add link to openstack trigger example (#484) 2017-01-18 19:51:44 +01:00
Travis Reeder
9f19611e97 Changed $PWD to work on windows and linux/mac. (#437) 2017-01-02 12:24:17 -08:00
Lingxian Kong
73d4f1e180 Fix hot function example link (#469) 2017-01-02 08:01:44 +00:00
John Nguyen
0c3f527513 Fixes link for databases readme (#463)
* Fixes link for databases readme

* Adds privileged flag for containerd rights
2016-12-29 20:25:39 +01:00
C Cirello
2f0520521c all: rename hot containers to hot functions (#465) 2016-12-29 20:07:41 +01:00
Pedro Nasser
811689f923 API definitions and docs update (#457)
* fix: using bolt config/header update now overwrites

* api definitions and doc updates

* merge docs
2016-12-27 19:03:02 +01:00
Pedro Nasser
5a6ebb4e2f fn should show API errors messages (#450)
* fn should show API errors messages

* update functions_go

* update functions_go lock
2016-12-19 16:30:18 -02:00
Pedro Nasser
4d7dde3486 change update from PUT method to PATCH (#440) 2016-12-14 17:22:44 +01:00
Pedro Nasser
f03619d479 remove ifaces from doc (#430) 2016-12-13 13:36:56 -08:00
Pedro Nasser
32de7d5361 Improvements on API error, swagger and status code (#428)
* improvements on API error, swagger and status code

* missing validation

* removing typo

* fix if-within-if

* fix handle app delete
2016-12-13 19:18:52 -02:00
Pedro Nasser
2a09a1c2a2 listeners and special handlers improvements (#412)
* listeners and special handlers improvements

* update runnerListener methods

* typo
2016-12-13 19:40:48 +01:00
Pedro Nasser
1389bfb1d3 add special handler docs (#408) 2016-12-12 16:04:25 -02:00
C Cirello
8a24cc432e doc: hot containers (#411)
* doc: hot containers

* doc: update with code review
2016-12-11 10:58:58 +01:00
Pedro Nasser
49a7712e6b API improvements (#410)
* api improvements, remove global Api object and reduce gin dependency

* requested changes
2016-12-09 15:24:35 -02:00
Travis Reeder
e172a838c2 Fixed Route definition in swagger doc. (#405)
* Fixed Route definition in swagger doc.

* Changed swagger URL to petstore so we don't have to maintain it in swaggerhub and github anymore.
2016-12-07 20:33:34 +01:00
C Cirello
3b16b7f1d8 functions: application updates no longer accept name in the body (#391)
* functions: application updates no longer accept name in the body

AppUpdate was initially conceived as an upsert endpoint for apps.
It turns out that it created an inconsistency regarding updates:
updates with names divergent with URL would not actually change
application's name.

This commit atempts to address the issue by returning an HTTP
error when trying to update an application name. In swagger.yml,
application names are already `readOnly:true`. Thus there is no
change from expected behavior.

Fixes #380

* functions: use specific error value for name change
2016-12-07 19:54:21 +01:00
C Cirello
66d446b148 functions: returns HTTP error in case of route update attempt (#396)
Ensure that attempts to update route's path are properly handled
with a HTTP error. Moreover, updates swagger file to make it
explicit that routes are immutable.

Fixes #381
2016-12-07 19:54:09 +01:00
Pedro Nasser
91006a701e Update listener docs (#398)
* add listener docs

* removed TODO and added more listener info

* removing invalid route from appupdatelistener
2016-12-06 16:11:21 +01:00
C Cirello
08e9a52388 functions: fix documentatino on Redis support for DB (#387) 2016-12-06 10:06:26 -02:00
C Cirello
470e497e7b fn: improve funcfile doc (#376)
* fn: improve funcfile doc

* fn: improve wording of build key

* fn: make clear max_concurrency is per node
2016-12-05 17:15:20 +01:00
C Cirello
28f713ed11 fn: support for functions testing (#379)
* fn: add test framework

* fn: make routes creation smarter

* fn: add testframework examples

* fn: remove unnecessary dependency

* fn: update doc

* fn: fix consistenty between runff, runlocaltest and runremotetest
2016-12-05 17:05:06 +01:00
C Cirello
9ac2539aeb fn: improve UX and publish/deploy command (#359)
* fn: improve UX and publish/deploy command

* fn: remove wrong use cases for deploy

* fn: fix regression introduced by merge
2016-12-01 18:11:13 +01:00
C Cirello
e63cc04e68 fn: add header configuration to route calls (#371) 2016-12-01 17:51:26 +01:00
C Cirello
37afafab72 api: remove app_name duplication of route related calls (#370) 2016-12-01 17:38:32 +01:00
C Cirello
688ffcf39f api,fn: entrypoint to return daemon version (#367) 2016-12-01 16:50:49 +01:00
C Cirello
f1e1d69e81 doc: add language libraries to the documentation (#354)
Fixes #319
2016-11-29 00:00:52 +01:00
C Cirello
308cb25ba2 api: remove useless parameter in get task call (#353)
Fixes #275
2016-11-28 23:59:12 +01:00
C Cirello
a7a466f968 functions: fix route timeout (#349)
* functions: add route-level timeout configuration options

* functions: harmonize defaults
2016-11-28 20:53:11 -02:00
C Cirello
ac0044f7d9 functions: hot containers (#332)
* functions: modify datastore to accomodate hot containers support

* functions: protocol between functions and hot containers

* functions: add hot containers clockwork

* fn: add hot containers support
2016-11-28 15:45:35 -02:00
C Cirello
da96ef471a api: add support for deleting apps (#327)
* api: add support for deleting apps

Fixes #274

* functions: improve error name and description

* functions: fix test regression
2016-11-22 01:07:30 +01:00
C Cirello
fe845e1886 fn: improve UX (#325)
* fn: make UX more consistent with regards to app name position

* fn: improve detection of missing routes

* fn: fix update operations

- No longer delete-than-add for configuration updates
- Path cleaning before most of routes operations
2016-11-22 00:27:48 +01:00
C Cirello
c0512a4cbd fn: rename from fnctl (#321)
* fn: rename from fnctl

* fn: predicting the release version for installer

* fn: predicting the release version for installer
2016-11-21 17:24:26 +01:00
C Cirello
9d06b6e687 functions: common concurrency stream for sync and async (#314)
* functions: add bounded concurrency

* functions: plug runners to sync and async interfaces

* functions: update documentation about the new env var

* functions: fix test flakiness

* functions: the runner is self-regulated, no need to set a number of runners

* functions: push the execution to the background on incoming requests

* functions: ensure async tasks are always on

* functions: add prioritization to tasks consumption

Ensure that Sync tasks are consumed before Async tasks. Also, fixes
termination races problems for free.

* functions: remove stale comments

* functions: improve mem availability calculation

* functions: parallel run for async tasks

* functions: check for memory availability before pulling async task

* functions: comment about rnr.hasAvailableMemory and sync.Cond

* functions: implement memory check for async runners using Cond vars

* functions: code grooming

- remove unnecessary goroutines
- fix stale docs
- reorganize import group

* Revert "functions: implement memory check for async runners using Cond vars"

This reverts commit 922e64032201a177c03ce6a46240925e3d35430d.

* Revert "functions: comment about rnr.hasAvailableMemory and sync.Cond"

This reverts commit 49ad7d52d341f12da9603b1a1df9d145871f0e0a.

* functions: set a minimum memory availability for sync

* functions: simplify the implementation by removing the priority queue

* functions: code grooming

- code deduplication
- review waitgroups Waits
2016-11-18 18:23:26 +01:00
Michael Kitson
1f5e820a17 Fix duplicate docs folder in link path (#306) 2016-11-15 16:47:05 -08:00
C Cirello
02d3b18497 all: drop CONFIG_ prefix for configuration (#297)
Fixes #251
2016-11-15 19:19:21 +01:00
Chad Arimura
bb5250e223 Update faq.md 2016-11-15 08:20:42 -08:00
Travis Reeder
616112b349 swagger fixes and appname -> app_name (#294)
* swagger fixes and appname -> app_name

* Swagger errors fixed
2016-11-15 08:13:53 -08:00
Travis Reeder
0d71e1e38e Docs update with new fnctl commands (#273)
* Added high level roadmap.

* Changed to funtion.yaml.

* Added logo

* updating quickstart code example, WIP, waiting on another merge.

* Minor updates.

* Changed function.yaml to func.yaml and updated fnctl README.
2016-11-15 01:40:05 +01:00
Seif Lotfy سيف لطفي
ba65220127 Lambda docs (#264)
* Add aws.md and s3 example

Signed-off-by: Seif Lotfy <seif.lotfy@gmail.com>

* minor fix
2016-11-11 19:40:22 +01:00
Travis Reeder
f9281e70b4 Fixes leftovers from #258. (#261) 2016-11-11 15:28:15 +01:00
C Cirello
4e41cac6e2 functions: DB -> DB_URL / MQ -> MQ_URL and related docs (#258) 2016-11-09 17:02:32 -08:00
C Cirello
6af57c2bdb fnctl: add application level configuration (#247)
Fixes #233
2016-11-09 13:59:24 -08:00
Benji Visser
a32ca3d90a docs: moving documentation around to be more clear and easier to browse (#236)
* moving documentation around to be more clear and easier to browse

- moved assets into their own directory and updated links to them
- moved operating docs into their own directory
- consolidated kubernetes docs
- added docker-swarm folder for docs
- updated docs layout in docs/README.md to reflect the changes and make it easier to read

* docs: s/Operating Functions/Operating IronFunctions/

* docs: removing duplicate database link

* docs: moving databases into general docs

* docs: moving databases/mqs back

* docs: removing memory.md (duplicate of operating/routes.md)

* docs: converting to markdown bullets
2016-11-09 09:39:53 -08:00