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 适配器