pkgcloud/pkgcloud — pull request #315 by ghemingway (2014-09-01 15:22:10+00:00)
Title: Add v1.0 support for openstack swift storage

This provides initial support for v1.0 auth in Openstack Swift. Here is what a config block needs to look like:

var storage = pkgcloud.storage.createClient({
provider: 'openstack',
username: 'test:tester',
password: '123456789',
authUrl: 'http://localhost:8080',
version: 1,
useServiceCatalog: false
});

The version:1 and useServiceCatalog: false being the key additions. I am sure that the integrated code could be brought more in line with the coding standards for Pkgcloud. I put variables where I thought they needed to be, but there may be better places.