Cloud Functions 适配器

improve this page | report issue


概述

OpenWhisk 现在名为 Cloud Functions。

IBM Cloud Functions 是功能即服务 (FaaS) 平台,支持在无服务器的可扩展环境中执行代码。 Cloud Functions 平台的一个用例是开发和运行无服务器的移动后端代码。 在此处了解有关 IBM Cloud 上 Cloud Functions 平台的更多信息。

Mobile Foundation 适配器用于执行任何必要的服务器端逻辑,并从后端系统检索信息并将信息传输到客户机应用程序和云服务。 Mobile Foundation 现在为 Cloud Functions 提供了一个适配器。

Cloud Functions 适配器

IBM Mobile Foundation 从 iFix 8.0.0.0-MFPF-IF20170710-1834 开始提供 Cloud Functions 适配器。 可在 Mobile Foundation Console 中从下载中心下载和部署该适配器。

在下载和部署适配器之后,应将其配置为连接到 Cloud Functions。

将适配器配置为连接到 Cloud Functions

要将适配器配置为连接到 Cloud Functions,请转至适配器配置页面并提供 Cloud Functions 授权密钥中的_用户名密码。 可以通过运行以下 CLI 命令,获取 Cloud Functions 的用户名密码_:

./wsk property get --auth KEY

上面的命令将返回冒号分隔的授权密钥,冒号左侧是_用户名,冒号右侧是密码_。

用户名:密码

应在 Cloud Functions 适配器配置页面中提供上面获取的_用户名密码_,并且应保存配置。 客户机应用程序现在可以调用适配器 API 以调用 Cloud Functions 后端代码。

要修改 Cloud Functions 适配器,可以从此 Github Repo 中下载适配器源代码。

Inclusive terminology note: The Mobile First Platform team is making changes to support the IBM® initiative to replace racially biased and other discriminatory language in our code and content with more inclusive language. While IBM values the use of inclusive language, terms that are outside of IBM's direct influence are sometimes required for the sake of maintaining user understanding. As other industry leaders join IBM in embracing the use of inclusive language, IBM will continue to update the documentation to reflect those changes.
Last modified on June 01, 2020