Expose EndpointType parameter in swift storage driver
Signed-off-by: Cezar Sa Espinola <cezarsa@gmail.com>
This commit is contained in:
parent
70928bcf90
commit
7b97265d95
2 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,7 @@ type Parameters struct {
|
|||
AuthVersion int
|
||||
Container string
|
||||
Prefix string
|
||||
EndpointType string
|
||||
InsecureSkipVerify bool
|
||||
ChunkSize int
|
||||
SecretKey string
|
||||
|
@ -182,6 +183,7 @@ func New(params Parameters) (*Driver, error) {
|
|||
Domain: params.Domain,
|
||||
DomainId: params.DomainID,
|
||||
TrustId: params.TrustID,
|
||||
EndpointType: swift.EndpointType(params.EndpointType),
|
||||
Transport: transport,
|
||||
ConnectTimeout: 60 * time.Second,
|
||||
Timeout: 15 * 60 * time.Second,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue