Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Introduce --os-internal-endpoint flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus authored and Xavier Lucas committed Jul 20, 2017
1 parent 1a430ee commit ec0f783
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ hubic_token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
* `region`: the region where your tenant is.
* `version`: authentication version (`0` means auto-discovery which is the default).
* `storage_url`: the storage endpoint holding your data.
* `internal_endpoint`: the storage endpoint type (default is `false`).
* `token`: a valid token.

Options `region`, `version`, `storage_url` and `token` are guessed during authentication if
Expand Down
1 change: 1 addition & 0 deletions cmd/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func setFlags() {
flags.StringVar(&svfs.SwiftConnection.ApiKey, "os-password", "", "User password")
flags.StringVar(&svfs.SwiftConnection.Region, "os-region-name", "", "Region name")
flags.StringVar(&svfs.SwiftConnection.StorageUrl, "os-storage-url", "", "Storage URL")
flags.BoolVar(&svfs.SwiftConnection.Internal, "os-internal-endpoint", false, "Use internal storage URL")
flags.StringVar(&svfs.SwiftConnection.Tenant, "os-tenant-name", "", "Tenant name")
flags.IntVar(&svfs.SwiftConnection.AuthVersion, "os-auth-version", 0, "Authentification version, 0 = auto")
flags.DurationVar(&svfs.SwiftConnection.ConnectTimeout, "os-connect-timeout", 15*time.Second, "Swift connection timeout")
Expand Down
1 change: 1 addition & 0 deletions scripts/mount.svfs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ OPTIONS = {
'segment_size' => '--os-segment-size',
'storage_policy' => '--os-storage-policy',
'storage_url' => '--os-storage-url',
'internal_endpoint' => '--os-internal-endpoint',
'tenant' => '--os-tenant-name',
'token' => '--os-auth-token',
'transfer_mode' => '--transfer-mode',
Expand Down

0 comments on commit ec0f783

Please sign in to comment.