[swift] support different user-domain and tenant-domain

This is already supported by ncw/swift, so we just need to pass the
parameters from the storage driver.

Signed-off-by: Stefan Majewsky <stefan.majewsky@sap.com>
This commit is contained in:
Stefan Majewsky 2016-08-15 11:21:16 +02:00
parent c9fd26e9ef
commit a7c6bfd59f
3 changed files with 34 additions and 2 deletions

View file

@ -30,6 +30,8 @@ func init() {
tenantID string
domain string
domainID string
tenantDomain string
tenantDomainID string
trustID string
container string
region string
@ -51,6 +53,8 @@ func init() {
tenantID = os.Getenv("SWIFT_TENANT_ID")
domain = os.Getenv("SWIFT_DOMAIN_NAME")
domainID = os.Getenv("SWIFT_DOMAIN_ID")
tenantDomain = os.Getenv("SWIFT_DOMAIN_NAME")
tenantDomainID = os.Getenv("SWIFT_DOMAIN_ID")
trustID = os.Getenv("SWIFT_TRUST_ID")
container = os.Getenv("SWIFT_CONTAINER_NAME")
region = os.Getenv("SWIFT_REGION_NAME")
@ -87,6 +91,8 @@ func init() {
tenantID,
domain,
domainID,
tenantDomain,
tenantDomainID,
trustID,
region,
AuthVersion,