@wmfs/tymly-cloudstorage-plugin
Version:
Defines the cloudstorage service interface and provides state-resources around the service. Specific cloudstorage implementations provided by additional Tymly plugins.
26 lines (17 loc) • 1.6 kB
Markdown
# tymly-cloudstorage-plugin
[](https://tymly.io/)
[](https://www.npmjs.com/package/@wmfs/tymly-cloudstorage-plugin)
[](https://circleci.com/gh/wmfs/tymly-cloudstorage-plugin)
[](https://dependabot.com/)
[](http://commitizen.github.io/cz-cli/)
[](https://standardjs.com)
[](https://github.com/wmfs/tymly-cloudstorage-plugin/blob/master/LICENSE)
Defines the cloudstorage service interface and provides state-resources around the service. Specific cloudstorage implementations provided by additional Tymly plugins.
## Cloud Storage Service
The `cloudstorage` defines four methods
* ensureFolderPath
* listFolderContentsFromPath
* copyFileToRemotePath
* copyFileToLocalPath
The default implementations of these methods do nothing.
Once a storage provider has registered with the cloudstorage service, the methods are forwarded to that provider. A provider may implement as many or as few of the methods as it wishes. A read-only provider might only implement `ensureFolderPath` and `listFolderContentsFromPath`, for example.