简体   繁体   English

Amazon S3 / OpenStack Swift API框架

[英]Amazon S3/OpenStack Swift API skeleton

I would like to implement a cloud storage service with the same interface of OpenStack Swift or Amazon S3. 我想使用与OpenStack Swift或Amazon S3相同的接口来实现云存储服务。 In other words, my cloud storage service should expose the same API of the above-mentioned services but with a custom implementation. 换句话说,我的云存储服务应公开与上述服务相同的API,但应具有自定义实现。 This way, a client will be able to interoperate with my service without changing its implementation. 这样,客户端将能够与我的服务进行互操作,而无需更改其实现。

I was wondering if there is an easier approach than manually implementing such interfaces starting from the documentation: http://docs.openstack.org/api/openstack-object-storage/1.0/content/ http://docs.aws.amazon.com/AmazonS3/latest/API/APIRest.html 我不知道是否有比手动实现从文件开始这样的接口比较简单的方法: http://docs.openstack.org/api/openstack-object-storage/1.0/content/ HTTP://docs.aws.amazon .com / AmazonS3 / latest / API / APIRest.html

For instance, it would be nice if there was a "skeleton" of OpenStack Swift or Amazon S3 APIs from which I can start implementing my service. 例如,如果有一个“骨架” OpenStack Swift或Amazon S3 API,可以从中开始实现我的服务,那就太好了。

Thanks 谢谢

I found exactly what I was looking for: 我确切地找到了我想要的东西:

These tools emulate most of Amazon S3 API. 这些工具可模拟大多数Amazon S3 API。 They are meant for development and test purposes but in my case I can use them as a starting point for implementing my cloud storage service. 它们用于开发和测试目的,但就我而言,我可以将它们用作实现我的云存储服务的起点。

有人为您完成了此操作,尝试使用jcloud,它支持AWS S3和swift: Apachejclouds®

If you are looking for an enterprise / carrier grade object storage software solution, look at Cloudian http://www.cloudian.com . 如果您正在寻找企业/运营商级对象存储软件解决方案,请访问Cloudian http://www.cloudian.com

Cloudian's software delivers a fully Amazon S3 compliant API, meaning that it delivers the broadest range of S3 feature coverage and 100% fidelity with the AWS S3 API. Cloudian的软件提供了完全符合Amazon S3的API,这意味着它通过AWS S3 API提供了最广泛的S3功能覆盖范围和100%的保真度。

The software comes with a Free 10TB license, so pretty much it is free up to 10TB of managed storage, after that it is reasonably priced. 该软件带有免费的10TB许可证,因此在价格合理之后,几乎可以免费使用10TB的托管存储。 You can install the software in any x86 hardware running Linux. 您可以在运行Linux的任何x86硬件中安装该软件。

Cloudian does not support the Swift API though. Cloudian不支持Swift API。

[Disclaimer: I work for Cloudian] [免责声明:我为Cloudian工作]

I would recommend using Swift (Openstack object store ) which also supports S3 API Take a look at the following link: http://docs.openstack.org/grizzly/openstack-object-storage/admin/content/configuring-openstack-object-storage-with-s3_api.html 我建议使用也支持S3 API的Swift(Openstack对象存储),看看以下链接: http : //docs.openstack.org/grizzly/openstack-object-storage/admin/content/configuring-openstack-object -storage-with-s3_api.html

This way you can work with openstack swift or Amazon S3 这样,您就可以使用openstack swift或Amazon S3

Another option is libcloud, it is a python abstraction that supports a number of providers (including S3 and Swift): 另一个选择是libcloud,它是python抽象,支持许多提供程序(包括S3和Swift):

https://libcloud.readthedocs.org/en/latest/storage/index.html https://libcloud.readthedocs.org/zh-CN/latest/storage/index.html

http://libcloud.apache.org/ http://libcloud.apache.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM