-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(services/swift): add support for storage_url configuration in sw…
…ift service (#4302) * update docs.md and add compatible_services.md * update .env.example * add storage_url support for swift * fix cargo fmt check * add swift_with_storage_url test setup * fix cargo clippy error * change endpoint definition and remove account * remove storage_url test setup
- Loading branch information
Showing
6 changed files
with
81 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
## Compatible Services | ||
|
||
### OpenStack Swift | ||
|
||
[OpenStack Swift](https://docs.openstack.org/swift/latest/) is the default implementations of swift servcies. | ||
|
||
To connect to OpenStack Swift, we need to set: | ||
|
||
- `endpoint`: The endpoint of OpenStack Swift, for example: `http://127.0.0.1:8080/v1/AUTH_test`. | ||
- `container`: The name of OpenStack Swift container. | ||
- `token`: OpenStack Swift container personal access token. | ||
|
||
```rust,ignore | ||
builder.endpoint("http://127.0.0.1:8080/v1/AUTH_test"); | ||
builder.container("container"); | ||
builder.token("token"); | ||
``` | ||
|
||
`endpoint` is the full URL that serves as the access point to all containers under an OpenStack Swift account. It represents the entry point for accessing the resources of the account. Alongside `endpoint`, `token` is used as a credential to verify the user's identity and authorize access to the relevant resources. Both `endpoint` and `token` can be obtained through OpenStack Swift authentication service. | ||
|
||
`endpoint` consists of server address and port, API version, authenticated account ID. For instance, it might appear as follows: | ||
|
||
- `http://127.0.0.1:8080/v1/AUTH_test`. | ||
- `http://192.168.66.88:8080/swift/v1`. | ||
- `https://openstack-controller.example.com:8080/v1/account`. | ||
|
||
Please note that the exact format of `endpoint` may vary depending on the deployment configuration and version of swift services. Users can refer to the specific services documentation for the correct `endpoint` format and authentication method. | ||
|
||
For more information, refer: | ||
|
||
- [OpenStack Swift API](https://docs.openstack.org/api-ref/object-store/). | ||
- [OpenStack Swift Authentication](https://docs.openstack.org/swift/latest/api/object_api_v1_overview.html). | ||
|
||
### Ceph Rados Gateway | ||
|
||
[Ceph Rados Gateway](https://docs.ceph.com/en/quincy/radosgw/) supports a RESTful API that is compatible with the basic data access model of OpenStack Swift API. | ||
|
||
To connect to Ceph Rados Gateway, we need to set: | ||
|
||
- `endpoint`: The endpoint of swift services, for example: `http://127.0.0.1:8080/swift/v1`. | ||
- `container`: The name of swift container. | ||
- `token`: swift container personal access token. | ||
|
||
```rust,ignore | ||
builder.endpoint("http://127.0.0.1:8080/swift/v1"); | ||
builder.container("container"); | ||
builder.token("token"); | ||
``` | ||
|
||
For more information, refer: | ||
|
||
- [Ceph Rados Gateway Swift API](https://docs.ceph.com/en/latest/radosgw/swift/#api). | ||
- [Ceph Rados Gateway Swift Authentication](https://docs.ceph.com/en/latest/radosgw/swift/auth/). |
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