1 Star 0 Fork 0

Serverless Devs Registry / fc-local-invoke

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

组件说明

fc-local-invoke 组件用于本地调试 FC 函数。

使用场景

本地调试。

具体用法

http 函数

$ s start <[customDomainName/]path>

本地启动成功后访问返回的 url 即可访问服务。

event 函数

$ s invoke --mode [api/normal/server]

上述指令能够本地调试 event 函数,有三种启动模式:

  • api 模式: 启动服务供本地 InvokeFunction API 或者 SDK 进行调用,详情请参见 invokeFunctionSDK 列表

  • normal 模式: 本地通过容器调用 event 函数返回结果后,立刻关闭容器,此模式为默认模式。

  • server 模式: 本地启动一个容器,然后在新开的 terminal 窗口执行 normal 模式的 invoke 指令,则会复用该容器。

MIT License Copyright (c) 2020 Serverless Devs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

None 展开 收起
MIT
取消

发行版 (41)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/devsapp/fc-local-invoke.git
git@gitee.com:devsapp/fc-local-invoke.git
devsapp
fc-local-invoke
fc-local-invoke
main

搜索帮助