# README
Simple Lambda Service
Lambda is a framework for building Serverless functions with Docker which has first-class support for metrics. Any process can be packaged as a function enabling you to consume a range of web events without repetitive boiler-plate coding.
API
Your function available on custom port. For example 2233
is function port.
Simple ping function
curl -X GET \
http://localhost:2233/_/ping
Triger function
curl -X GET \
http://localhost:2233
Create new function
curl -X POST \
http://localhost:3000/v1/create \
-H 'Content-Type: application/json' \
-d '{
"name": "example",
"uuid": "dasdxqxeqsd132eqw",
"runtime": {
"executor": "/bin/cat",
"cmd": ""
},
"repository": {
"image": "deissh/lambda-runner:latest"
},
"service": {
"port": "2233",
"host": "0.0.0.0"
}
}'
Inspect function
/v1/stats/:uuid
curl -X GET \
http://localhost:3000/v1/dasdxqxeqsd132eqw
Delete function
/v1/:uuid
You need change uuid befour use.
curl -X DELETE \
http://localhost:3000/v1/dasdxqxeqsd132eqw