addFlow(opts) → {Promise.<String>}
添加流配置
参数
名称 | 类型 | 描述 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
返回
- 类型
-
Promise.<String>
- 添加的流的 ID
deleteFlow(opts) → {Promise}
删除流
参数
名称 | 类型 | 描述 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
返回
- 类型
-
Promise
- 如果成功则解析
getFlow(opts) → {Promise.<Flow>}
获取单个流配置
参数
名称 | 类型 | 描述 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
getFlows(opts) → {Promise.<Flows>}
获取当前流配置
参数
名称 | 类型 | 描述 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
getNodeCredentials(opts) → {Promise.<Object>}
获取节点的安全凭据
参数
名称 | 类型 | 描述 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
返回
- 类型
-
Promise.<Object>
- 安全凭据
setFlows(opts) → {Promise.<Flows>}
设置当前流配置
参数
名称 | 类型 | 描述 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
updateFlow(opts) → {Promise.<String>}
更新现有流配置
参数
名称 | 类型 | 描述 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
选项 |
对象
|
|
返回
- 类型
-
Promise.<String>
- 更新后的流的 ID