-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from akutz/feature/cinder
Cinder storage driver
- Loading branch information
Showing
15 changed files
with
1,776 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// +build !libstorage_storage_driver libstorage_storage_driver_cinder | ||
|
||
package cinder | ||
|
||
import ( | ||
gofigCore "github.com/akutz/gofig" | ||
gofig "github.com/akutz/gofig/types" | ||
) | ||
|
||
const ( | ||
// Name is the provider's name. | ||
Name string = "cinder" | ||
|
||
// ConfigAuthURL is the config key for the Identity Auth URL | ||
ConfigAuthURL = Name + ".authURL" | ||
|
||
// ConfigUserID is the config key for the user ID | ||
ConfigUserID = Name + ".userID" | ||
|
||
// ConfigUserName is the config key for the user name | ||
ConfigUserName = Name + ".userName" | ||
|
||
// ConfigPassword is the config key for the user password | ||
ConfigPassword = Name + ".password" | ||
|
||
// ConfigTokenID is the config key for the token ID | ||
ConfigTokenID = Name + ".tokenID" | ||
|
||
// ConfigTenantID is the config key for the tenant ID | ||
ConfigTenantID = Name + ".tenantID" | ||
|
||
// ConfigTenantName is the config key for the tenant name | ||
ConfigTenantName = Name + ".tenantName" | ||
|
||
// ConfigDomainID is the config key for the domain ID | ||
ConfigDomainID = Name + ".domainID" | ||
|
||
// ConfigDomainName is the config key for the domain name | ||
ConfigDomainName = Name + ".domainName" | ||
|
||
// ConfigRegionName is the config key for the region name | ||
ConfigRegionName = Name + ".regionName" | ||
|
||
// ConfigAvailabilityZoneName is the config key for the availability | ||
// zone name | ||
ConfigAvailabilityZoneName = Name + ".availabilityZoneName" | ||
|
||
// ConfigTrustID is the config key for the trust ID | ||
ConfigTrustID = Name + ".trustID" | ||
|
||
// ConfigAttachTimeout is the config key for the attach timeout | ||
ConfigAttachTimeout = Name + ".attachTimeout" | ||
|
||
// ConfigDeleteTimeout is the config key for the delete timeout | ||
ConfigDeleteTimeout = Name + ".deleteTimeout" | ||
|
||
// ConfigCreateTimeout is the config key for the create timeout | ||
ConfigCreateTimeout = Name + ".createTimeout" | ||
|
||
// ConfigSnapshotTimeout is the config key for the snapshot timeout | ||
ConfigSnapshotTimeout = Name + ".snapshotTimeout" | ||
) | ||
|
||
func init() { | ||
r := gofigCore.NewRegistration("Cinder") | ||
r.Key(gofig.String, "", "", "", ConfigAuthURL) | ||
r.Key(gofig.String, "", "", "", ConfigUserID) | ||
r.Key(gofig.String, "", "", "", ConfigUserName) | ||
r.Key(gofig.String, "", "", "", ConfigPassword) | ||
r.Key(gofig.String, "", "", "", ConfigTokenID) | ||
r.Key(gofig.String, "", "", "", ConfigTenantID) | ||
r.Key(gofig.String, "", "", "", ConfigTenantName) | ||
r.Key(gofig.String, "", "", "", ConfigDomainID) | ||
r.Key(gofig.String, "", "", "", ConfigDomainName) | ||
r.Key(gofig.String, "", "", "", ConfigRegionName) | ||
r.Key(gofig.String, "", "", "", ConfigAvailabilityZoneName) | ||
r.Key(gofig.String, "", "", "", ConfigTrustID) | ||
r.Key(gofig.String, "", "1m", "", ConfigAttachTimeout) | ||
r.Key(gofig.String, "", "10m", "", ConfigDeleteTimeout) | ||
r.Key(gofig.String, "", "10m", "", ConfigCreateTimeout) | ||
r.Key(gofig.String, "", "10m", "", ConfigSnapshotTimeout) | ||
gofigCore.Register(r) | ||
} |
Oops, something went wrong.