forked from TrueCloudLab/distribution
Update swift.go
Signed-off-by: Nikita Tarasov <nikita@mygento.ru>
This commit is contained in:
parent
c6f63e298e
commit
e6f8d7c28e
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ type Parameters struct {
|
||||||
DomainID string
|
DomainID string
|
||||||
TrustID string
|
TrustID string
|
||||||
Region string
|
Region string
|
||||||
|
AuthVersion int
|
||||||
Container string
|
Container string
|
||||||
Prefix string
|
Prefix string
|
||||||
InsecureSkipVerify bool
|
InsecureSkipVerify bool
|
||||||
|
@ -174,6 +175,7 @@ func New(params Parameters) (*Driver, error) {
|
||||||
ApiKey: params.Password,
|
ApiKey: params.Password,
|
||||||
AuthUrl: params.AuthURL,
|
AuthUrl: params.AuthURL,
|
||||||
Region: params.Region,
|
Region: params.Region,
|
||||||
|
AuthVersion: params.AuthVersion,
|
||||||
UserAgent: "distribution/" + version.Version,
|
UserAgent: "distribution/" + version.Version,
|
||||||
Tenant: params.Tenant,
|
Tenant: params.Tenant,
|
||||||
TenantId: params.TenantID,
|
TenantId: params.TenantID,
|
||||||
|
|
Loading…
Reference in a new issue