2015-06-30 23:06:58 +02:00
<!-- [metadata]>
+++
title = "Swift storage driver"
description = "Explains how to use the OpenStack swift storage driver"
keywords = ["registry, service, driver, images, storage, swift"]
+++
<![end-metadata]-->
2015-05-11 18:11:47 +02:00
2015-06-30 23:06:58 +02:00
# OpenStack Swift storage driver
2015-06-08 10:37:11 +02:00
2015-06-30 23:06:58 +02:00
An implementation of the `storagedriver.StorageDriver` interface that uses [OpenStack Swift ](http://docs.openstack.org/developer/swift/ ) for object storage.
2015-06-08 10:37:11 +02:00
2015-06-30 23:06:58 +02:00
## Parameters
2015-05-11 18:11:47 +02:00
2015-06-30 23:06:58 +02:00
< table >
< tr >
< td >
< code > authurl< / code >
< / td >
< td >
< p > URL for obtaining an auth token.< / p >
< / td >
< / tr >
< tr >
< td >
< code > username< / code >
< / td >
< td >
< p >
Your OpenStack user name.< / p >
< / p >
< / td >
< / tr >
< tr >
< td >
< code > password< / code >
< p >
< / td >
< td >
< p >
Your OpenStack password.
< / p >
< / td >
< / tr >
< tr >
< td >
< code > container< / code >
< / td >
< td >
< p >
2015-12-11 01:02:50 +01:00
The name of your Swift container where you wish to store the registry's data. The driver creates the named container during its initialization.
2015-06-30 23:06:58 +02:00
< / p >
< / td >
< / tr >
< tr >
< td >
< code > tenant< / code >
< / td >
< td >
< p >
Optionally, your OpenStack tenant name. You can either use < code > tenant< / code > or < code > tenantid< / code > .
< / p >
< / td >
< / tr >
< tr >
< td >
< code > tenantid< / code >
< / td >
< td >
< p >
Optionally, your OpenStack tenant id. You can either use < code > tenant< / code > or < code > tenantid< / code > .
< / p >
< / td >
< / tr >
< tr >
< td >
< code > domain< / code >
< / td >
< td >
< p >
Optionally, your OpenStack domain name for Identity v3 API. You can either use < code > domain< / code > or < code > domainid< / code > .
< / p >
< / td >
< / tr >
< tr >
< td >
< code > domainid< / code >
< / td >
< td >
< p >
Optionally, your OpenStack domain id for Identity v3 API. You can either use < code > domain< / code > or < code > domainid< / code > .
< / p >
< / td >
< / tr >
2015-11-03 09:59:50 +01:00
< tr >
< td >
< code > trustid< / code >
< / td >
< td >
< p >
Optionally, your OpenStack trust id for Identity v3 API.
< / p >
< / td >
< / tr >
2015-06-30 23:06:58 +02:00
< tr >
< td >
< code > insecureskipverify< / code >
< / td >
< td >
< p >
Optionally, set < code > insecureskipverify< / code > to true to skip TLS verification for your OpenStack provider. The driver uses false by default.
< / p >
< / td >
< / tr >
< tr >
< td >
< code > region< / code >
< / td >
< td >
< p >
Optionally, specify the OpenStack region name in which you would like to store objects (for example < code > fr< / code > ).
< / p >
< / td >
< / tr >
< tr >
< td >
< code > chunksize< / code >
< / td >
< td >
< p >
Optionally, specify the segment size for Dynamic Large Objects uploads (performed by WriteStream) to Swift. The default is 5 MB. You might experience better performance for larger chunk sizes depending on the speed of your connection to Swift.
< / p >
< / td >
< / tr >
< tr >
< td >
< code > prefix< / code >
< / td >
< td >
< p >
2015-12-11 01:02:50 +01:00
Optionally, supply a prefix that will be applied to all Swift keys to allow you to segment data in your container if necessary. Defaults to the empty string which is the container's root.< / p >
2015-06-30 23:06:58 +02:00
< / p >
< / td >
< / tr >
2015-11-03 09:59:50 +01:00
< tr >
< td >
< code > secretkey< / code >
< / td >
< td >
< p >
Optionally, the secret key used to generate temporary URLs.< / p >
< / p >
< / td >
< / tr >
< tr >
< td >
< code > accesskey< / code >
< / td >
< td >
< p >
Optionally, the access key to generate temporary URLs. It is used by HP Cloud Object Storage in addition to the `secretkey` parameter.</ p >
< / p >
< / td >
< / tr >
< / table >
The features supported by the Swift server are queried by requesting the `/info` URL on the server. In case the administrator
disabled that feature, the configuration file can specify the following optional parameters :
< table >
< tr >
< td >
< code > tempurlcontainerkey< / code >
< / td >
< td >
< p >
Specify whether to use container secret key to generate temporary URL when set to true, or the account secret key otherwise.< / p >
< / p >
< / td >
< / tr >
< tr >
< td >
< code > tempurlmethods< / code >
< / td >
< td >
< p >
Array of HTTP methods that are supported by the TempURL middleware of the Swift server. Example:< / p >
< code >
- tempurlmethods:
- GET
- PUT
- HEAD
- POST
- DELETE
< / code >
< / p >
< / td >
< / tr >
2015-10-09 01:46:59 +02:00
< / table >