glance-0.1.7 分析(七)—— glance/store 镜像存储后端

glance/store 提供了镜像的存储服务。当前支持不同的存储机制:

            "file"                  FilesystemBackend

            "http"/"https"     HTTPBackend

            "swift"                SwiftBackend

            "s3"                    S3Backend


glance/store/__init__.py

       作为后端存储的前端封装接口

            def get_backend_class(backend)
            def get_from_backend(uri, **kwargs)
            def delete_from_backend(uri, **kwargs)
            def get_store_from_location(location)
            def parse_uri_tokens(parsed_uri, example_url)

glance/store/backends
        一个空目录,没有实质功能

glance/store/filesystem.py
        基于文件的存储适配器,缺省路径为 /var/lib/glance/images/

glance/store/http.py
        http 适配器

glance/store/s3.py
        s3 适配器

glance/store/swift.py
        swift 适配器


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值