In loopback framework, we have a module LoopBack Storage Component. It's support for many clouds except Google Cloud Storage. But I have to use Google Cloud.
在loopback框架中,我们有一个模块LoopBack Storage Component。它支持除Google云端存储以外的许多云。但我必须使用Google Cloud。
1 个解决方案
#1
1
It should support Google out of the box because it uses pkgcloud lib which has support for Google Cloud. Try simply adding a config entry to the providers.json file.
它应该支持Google开箱即用,因为它使用支持Google Cloud的pkgcloud lib。尝试简单地将配置项添加到providers.json文件中。
For more info on how to do that check Loopback storage component documentation and also pkgcloud config format for Google Cloud.
有关如何执行此操作的详细信息,请检查Loopback存储组件文档以及Google Cloud的pkgcloud配置格式。
I'd just try something like this in the providers.json:
我只是在providers.json中尝试这样的事情:
{
"google": {
"keyFilename": "/path/to/a/keyfile.json",
"projectId": "your-project-id"
}
}
#1
1
It should support Google out of the box because it uses pkgcloud lib which has support for Google Cloud. Try simply adding a config entry to the providers.json file.
它应该支持Google开箱即用,因为它使用支持Google Cloud的pkgcloud lib。尝试简单地将配置项添加到providers.json文件中。
For more info on how to do that check Loopback storage component documentation and also pkgcloud config format for Google Cloud.
有关如何执行此操作的详细信息,请检查Loopback存储组件文档以及Google Cloud的pkgcloud配置格式。
I'd just try something like this in the providers.json:
我只是在providers.json中尝试这样的事情:
{
"google": {
"keyFilename": "/path/to/a/keyfile.json",
"projectId": "your-project-id"
}
}