Files
services/function/examples.json
Asim Aslam 609c4c9813 functions branch and region support (#330)
* branch and region support

* .

* .

* .

* .

* fix functions

* .

* break loop

* update example

* update examples
2021-12-16 19:23:03 +00:00

168 lines
4.0 KiB
JSON

{
"deploy": [
{
"title": "Deploy a function",
"run_check": false,
"request": {
"name": "helloworld",
"repo": "https://github.com/m3o/m3o",
"branch": "main",
"entrypoint": "Helloworld",
"subfolder": "examples/go-function",
"runtime": "go116",
"region": "europe-west1"
},
"response": {
"function": {
"id": "helloworld",
"name": "helloworld",
"repo": "https://github.com/m3o/m3o",
"branch": "main",
"entrypoint": "Helloworld",
"subfolder": "examples/go-function",
"runtime": "go116",
"region": "europe-west1",
"env_vars": {},
"status": "Deploying",
"url": "https://helloworld.m3o.sh",
"created": "2021-12-16T17:27:09.230134479Z",
"updated": ""
}
}
}
],
"update": [
{
"title": "Update a function",
"run_check": false,
"request": {
"name": "helloworld"
},
"response": {}
}
],
"call": [
{
"title": "Call a function",
"run_check": false,
"request": {
"name": "helloworld",
"request": {
"name": "Alice"
}
},
"response": {
"response": {
"message": "Hello Alice!"
}
}
}
],
"list": [
{
"title": "List functions",
"run_check": false,
"request": {},
"response": {
"functions": [{
"id": "helloworld",
"name": "helloworld",
"repo": "https://github.com/m3o/m3o",
"branch": "main",
"entrypoint": "Helloworld",
"subfolder": "examples/go-function",
"runtime": "go116",
"region": "europe-west1",
"env_vars": {},
"status": "Deploying",
"url": "https://helloworld.m3o.sh",
"created": "2021-12-16T17:27:09.230134479Z",
"updated": ""
}]
}
}
],
"delete": [
{
"title": "Delete a function",
"run_check": false,
"request": {
"name": "helloworld"
},
"response": {}
}
],
"describe": [
{
"title": "Describe function status",
"run_check": false,
"request": {
"name": "helloworld"
},
"response": {
"function": {
"id": "helloworld",
"name": "helloworld",
"repo": "https://github.com/m3o/m3o",
"branch": "main",
"entrypoint": "Helloworld",
"subfolder": "examples/go-function",
"runtime": "go116",
"region": "europe-west1",
"env_vars": {},
"status": "Deploying",
"url": "https://helloworld.m3o.sh",
"created": "2021-12-16T17:27:09.230134479Z",
"updated": ""
}
}
}
],
"regions": [
{
"title": "List regions",
"run_check": false,
"request": {},
"response": {
"regions": [
"asia-east1",
"europe-west1",
"us-central1",
"us-east1",
"us-west1"
]
}
}
],
"reserve": [
{
"title": "Reserve a function",
"run_check": false,
"request": {
"name": "helloworld"
},
"response": {
"reservation": {
"name": "helloworld",
"owner": "micro/40e5d9aa-1185-4add-b248-ce4d72ff7947",
"token": "c580be106204d103df461bb3a3075aefedda5f85",
"created": "2021-12-16T19:19:29.615737412Z",
"expires": "2022-12-16T19:19:29.615737502Z"
}
}
}
],
"proxy": [
{
"title": "Proxy URL",
"run_check": false,
"request": {
"id": "helloworld"
},
"response": {
"url": "https://europe-west1-m3o-apis.cloudfunctions.net/helloworld"
}
}
]
}