kopia lustrzana https://github.com/gaul/s3proxy
add AWS SDK
rodzic
3d1dbf3d40
commit
608a5bde7f
|
@ -1,5 +1,28 @@
|
|||
This page lists applications known to have compatibility with S3Proxy and any configuration needed to use them. Usually one must use the generic S3 mode, disable bucket-in-hostname, and use AWS signature v2.
|
||||
|
||||
* [boto](https://github.com/boto/boto): `boto.connect_s3(aws_access_key_id = 'identity', aws_secret_access_key = 'credential', host = '127.0.0.1', port = 8080, is_secure=False, calling_format = boto.s3.connection.OrdinaryCallingFormat())`
|
||||
* [jclouds-cli](https://github.com/jclouds/jclouds-cli): `bin/jclouds-cli/bin/jclouds blobstore container-list --api s3 --endpoint http://127.0.0.1:8080 --identity identity --credential credential`
|
||||
* [s3fs-fuse](https://github.com/s3fs-fuse/s3fs-fuse): `echo identity:credential > passwd; chmod 600 passwd; s3fs bucketname dirname -o url=http://127.0.0.1:8080 -o use_path_request_style -o passwd_file=passwd`
|
||||
* [AWS Java SDK](http://aws.amazon.com/sdk-for-java/)
|
||||
|
||||
```java
|
||||
AmazonS3Client client = new AmazonS3Client(new BasicAWSCredentials("identity", "credential"), config);
|
||||
client.setEndpoint("http://127.0.0.1:8080");
|
||||
client.setS3ClientOptions(new S3ClientOptions().withPathStyleAccess(true));
|
||||
```
|
||||
|
||||
* [boto](https://github.com/boto/boto)
|
||||
|
||||
```python
|
||||
boto.connect_s3(aws_access_key_id = 'identity', aws_secret_access_key = 'credential', host = '127.0.0.1', port = 8080, is_secure=False, calling_format = boto.s3.connection.OrdinaryCallingFormat())
|
||||
```
|
||||
* [jclouds-cli](https://github.com/jclouds/jclouds-cli)
|
||||
|
||||
```
|
||||
jclouds blobstore container-list --api s3 --endpoint http://127.0.0.1:8080 --identity identity --credential credential
|
||||
```
|
||||
|
||||
* [s3fs-fuse](https://github.com/s3fs-fuse/s3fs-fuse)
|
||||
|
||||
```
|
||||
echo identity:credential > passwd
|
||||
chmod 600 passwd
|
||||
s3fs bucketname dirname -o url=http://127.0.0.1:8080 -o use_path_request_style -o passwd_file=passwd
|
||||
```
|
Ładowanie…
Reference in New Issue