Commit Graph

52 Commits

Author SHA1 Message Date
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
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
02d3b18497 all: drop CONFIG_ prefix for configuration (#297)
Fixes #251
2016-11-15 19:19:21 +01:00
Carlos C
ecbc27ae3e fnctl: releasing 0.1.2 2016-11-15 16:26:26 +01:00
Travis Reeder
d4cdff9174 Bumped version numbers. (#291) 2016-11-15 16:14:02 +01:00
C Cirello
c16547522f fnctl: udpate installer (#292) 2016-11-15 16:06:34 +01:00
Travis Reeder
299422cf7d Added Ruby support to fnctl init. (#286) 2016-11-15 15:39:20 +01:00
C Cirello
14a5ecd6b9 fnctl: heroku-like configuration for routes (#287)
Fixes #250
2016-11-15 15:37:57 +01:00
Travis Reeder
b82be66189 Minor readme update and fixed build error. 2016-11-14 21:02:53 -08:00
C Cirello
d8526a85e1 fnctl: update docs and function filenames (#283)
* fnctl: functions.yaml -> func.yaml

* fnctl: update documentation
2016-11-15 01:54:26 +01:00
C Cirello
1395393b9b fnctl: code cleanup (#281) 2016-11-15 01:52:58 +01: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
C Cirello
23a7f3ca31 fnctl: improve route creation if func.yaml is present (#280) 2016-11-15 01:34:27 +01:00
C Cirello
d342aa1164 fnctl: add heroku-like app config interface (#277) 2016-11-15 01:10:19 +01:00
C Cirello
63b362b419 fnctl: fix how bump deal with tagged names (#279) 2016-11-14 15:51:13 -08:00
C Cirello
46593d9bd8 fnctl: init - configuration over detection (#278)
This commit modifies how init detects runtime and entrypoints. It
assumes the following convention:

1 - All functions have a func.{lang} file - from which both
entrypoint and runtime are deduced.

2 - Entrypoints always are, depending on the language, "./func",
"{lang-exec} ./func.{lang}", "{lang-exec} ./func.{package}" (e.g.
Java's "func.jar" and PHP's "func.phar").
2016-11-14 15:32:10 -08:00
Travis Reeder
3357476583 Updates to fnctl to make UX better (#272)
* See the hello/go README for how this all works now.

* Node support for fnctl auto build

* Updated based on PR comments.
2016-11-14 10:10:29 -08:00
C Cirello
32e9c45df5 fnctl: Image -> Name (#271)
Fixes #268
2016-11-12 03:34:29 +01:00
C Cirello
0cc946d937 fnctl: init (#270)
* fnctl: init

* fnctl: conciliate init with master

Fixes #266
2016-11-11 19:33:41 +01:00
C Cirello
7ec586cc0b Fnctl optional docker (#269)
* fnctl: makes Dockefile optional

Fixes #265

* fnctl: validate runtimes
2016-11-11 18:53:52 +01:00
C Cirello
a4d44798dd fnctl: improve bump call and link version to the publish process (#267)
* fnctl: improve bump call and link version to the publish process

* fnctl: update README.md with latest changes for bump command
2016-11-11 17:44:16 +01:00
C Cirello
d8bb2df85e fnctl: improve help on how to configure remote server (#246)
* fnctl: improve help on how to configure remote server

Partially addresses #241

* fnctl: HOST/FNCTL_HOST -> API_URL

* fnctl: improve help on how to configure remote server
2016-11-11 01:44:27 +01:00
Seif Lotfy سيف لطفي
ce8a449079 Add config flags support to lambda create and import (#245)
* Add config flags support to lambda create and import

* fix publishing and path formatting

* expand env variables properly for lambda functionality

* add proper env variables handling for aws-import
2016-11-10 22:27:03 +01:00
C Cirello
15af6131b5 fnctl: env var expansion for app/route configuration (#249)
* fnctl: env var expansion for app/route configuration

* fnctl: env var expansion for app configuration

* fnctl: code grooming
2016-11-10 19:55:25 +01:00
C Cirello
aec766679d fnctl: add push command (#248)
Fixes #229
2016-11-09 23:30:17 +01:00
C Cirello
6af57c2bdb fnctl: add application level configuration (#247)
Fixes #233
2016-11-09 13:59:24 -08:00
C Cirello
c985a17b02 fnctl: expand fnctl README.md with new options for configuration (#242)
* fnctl: expand fnctl README.md with new options for configuration

* fnctl: extends function files to update routes configurations
2016-11-09 00:33:49 +01:00
C Cirello
ae6924c36c client: add memory, type and configuration flags (#234)
* client: add memory, type and configuration to API
* client: improve documentation about memory, type and route configuration
2016-11-08 21:49:10 +01:00
Travis Reeder
85e15fe48a More doc updates, explanation of serverless. (#228)
* More doc updates, explanation of serverless.

* Moved howto directory to examples and some minor doc updates.

* Added apps and routes docs.

* Fixes for Carlos' comments.

* Added bit about importing lambda functions.
2016-11-08 09:44:08 -08:00
Pedro Nasser
4717889693 fnctl recursive flag (#230)
* -r flag for recursive scan

* -r flag for recursive scan

* fix flag description

* check if is stale only in recursive
2016-11-08 00:54:10 +01:00
Pedro Nasser
1276de223a fnctl: change from host/scheme flag to endpoint flag (#231)
* fnctl: change from host/schem flag to endpoint flag

* keep same format
2016-11-07 19:48:16 +01:00
C Cirello
946cd85119 fnctl: fix regression on environment transcription (#232)
Reverts https://github.com/iron-io/functions/pull/225 and prove
correctness with a test.
2016-11-07 19:21:58 +01:00
Seif Lotfy سيف لطفي
cc38ccd253 fix envAsHeader to set the req Header from kv[1] instead of os.Getenv(name) (#225) 2016-11-06 09:52:53 -08:00
Carlos C
d5fb1afda7 Revert "Assert License (#224)"
This reverts commit a61c4dab78.
2016-11-06 09:25:12 -08:00
Seif Lotfy سيف لطفي
a396a26410 Add lambda documentation (#215)
* Add import documentation

* minor fix

* Add lambda introductions in the docs

* Add lambda test-function docs

* Add getting-started

* Added lambda docs for create-function

* fixes suggested by @ccirello

* Add lamba environment documentation

* quick fixes

* use 3 ticks and language for docs

* use 3 ticks and language

* Add missing lambda README.md

* link to iron/node in the envirtonment.md

* fix getting-started.md

* notate bash commands

* minor cleanup

* minor cleanup

* minor cleanup

* minor cleanup

* minor cleanup

* fnctl/docs: fix formatting in create.md
2016-11-06 09:13:57 -08:00
C Cirello
a61c4dab78 Assert License (#224)
* license: assert license for Go code
* license: add in shell scripts
* license: assert license for Ruby code
* license: assert license to individual cases
* license: assert license to Dockerfile
2016-11-05 23:33:07 +01:00
C Cirello
358154d1eb fnctl: improve code readability (#223)
- fmt.Print(fmt.Sprintf()) -> fmt.Printf
- buf.WriteString(fmt.Sprintf()) -> fmt.Fprintf(&buf, ...)
2016-11-04 23:09:32 +01:00
Seif Lotfy سيف لطفي
8665e11a55 properly format copying of files message during dockerfile creation (#222) 2016-11-04 14:55:26 -07:00
Seif Lotfy سيف لطفي
634ff7c57f Refactor (#213)
* Fix logic of aws-import

* minor cleanup

* minor cleanup

* Get rid of flags for mandatory fields on create-function sub-command

* Convert aws-import mandatory flags to arguments and clean up waste

* clean up usage strings for lambda command

* get rid of uneeded struct lambdaCmd

* cleanup empty lines

* fnctl lambda now creates the dockerfiles instead of images

* fnctl: remove build steps

* fnctl: overall refactor

Not complete yet, some improvements:
1 - integrate part of the lambda code into lambda.go
2 - reorganize functions to facility code browsing
3 - improves per-runtime handling (namely java8)
2016-11-04 14:05:30 -07:00
C Cirello
1025caeb04 fnctl: add run command and fix env var handling (#211)
* fnctl: add run command and fix env var handling
* fnctl: fix help screens
* fnctl: address code review and fix logic mistake
2016-11-03 16:37:29 +01:00
Carlos C
a29bc1e0d9 fnctl: remove unused field in datastructure 2016-11-02 17:34:53 -07:00
Seif Lotfy سيف لطفي
0bff16e765 fnctl: Fix aws import (#212) 2016-11-02 17:20:51 -07:00
Seif Lotfy سيف لطفي
079be64ad7 Fnclt lambda test-function (#209) 2016-11-02 14:12:54 -07:00
C Cirello
5b3971060b Per language HOWTO's on writing functions (#208)
* fnctl: improve UX for howto's

* doc: go function howto

* fnctl: show the progress of build calls

* doc: php function howto

* doc: fix Go HOWTO

* doc: Node Functions HOWTO

* doc: Python Functions HOWTO

* doc: improve README files

* doc: ccirello -> USERNAME

* docs: fix Python example

Used an idiomatic method (isatty) to decide whether stdin must
be read or not.

* doc: fix go example

* fnctl: fix docker push output
2016-11-02 00:19:16 +01:00
C Cirello
688d3f245e fnctl: incremental build (#207) 2016-11-01 09:25:58 -07:00
Pedro Nasser
4c31c29fb8 new commands fnctl build and bump (#204)
New commands & refectoring

* fnctl: refactor code to improve reuse between commands

build, bump and publish (formerly update) share a lot of code,
this refactor ensure their logic are correctly reused. It renames
update to publish, so it would be a strong diff between "update"
and build.

* fnctl: remove unnecessary dependency for build and bump

* fnctl: improve code reuse between bump, build and publish

Unify the use of walker function in all these three commands and
drop dry-run support.

* Code grooming

- errcheck

* fnctl: update README.md to be in sync with actual execution output

* fnctl: move scan function to commoncmd structure

* fnctl: change verbose flag handling does not use global variable anymore
2016-11-01 00:11:29 -02:00
Seif Lotfy سيف لطفي
61344a140a Add lambda create-function command to convert lambda code to a function (#199) 2016-10-31 12:12:22 -07:00
Carlos C
81adbe66f8 Install fnctl in systems directories 2016-10-24 09:58:43 -07:00
Carlos C
3778c0e213 Fix installer URL
[skip ci]
2016-10-24 09:54:11 -07:00
Carlos C
de73b66739 Fix CLI version
[skip ci]
2016-10-24 09:50:22 -07:00