正在寻找 Spring 云 ECS 连接器文档
Looking for Spring Cloud ECS Connector Documentation
我正在尝试使用 Spring Cloud ECS Connector
设置与文件存储桶的连接
import com.emc.ecs.connector.spring.S3Connector;
public S3Connector s3() {
S3Connector result = this.connectionFactory().service(S3Connector.class);
this.connectionFactory().
return result;
}
但是,我是 s3 bucket 的新手,不知道如何使用它的构造函数和它接受的参数。 https://mvnrepository.com/artifact/com.emc.ecs/spring-cloud-ecs-connector/1.0.0
有谁知道 Spring Cloud ECS 连接器和 S3Connector 的任何文档,描述其方法、构造函数以及如何设置存储桶信息(密钥、访问密钥、端点、存储桶名称)?
这是项目页面:https://github.com/spiegela/spring-cloud-ecs-connector
S3Connector source with javadoc
还有一个S3ServiceConnectorCreator
。来自 https://github.com/spiegela/spring-cloud-ecs-connector/blob/master/src/test/java/com/emc/ecs/connector/spring/S3ServiceConnectorCreatorTest.java 的示例用法:
private S3ServiceConnectorCreator s3ServiceConnectorCreator = new S3ServiceConnectorCreator();
...
String myBucket = "myBucket";
String endpoint = "http://10.20.40.3:9020";
S3ServiceInfo serviceInfo = new S3ServiceInfo("s3-1", "myPublicKey", "mySecretKey", endpoint, myBucket);
S3Connector connector = s3ServiceConnectorCreator.create(serviceInfo, null);
我正在尝试使用 Spring Cloud ECS Connector
设置与文件存储桶的连接import com.emc.ecs.connector.spring.S3Connector;
public S3Connector s3() {
S3Connector result = this.connectionFactory().service(S3Connector.class);
this.connectionFactory().
return result;
}
但是,我是 s3 bucket 的新手,不知道如何使用它的构造函数和它接受的参数。 https://mvnrepository.com/artifact/com.emc.ecs/spring-cloud-ecs-connector/1.0.0
有谁知道 Spring Cloud ECS 连接器和 S3Connector 的任何文档,描述其方法、构造函数以及如何设置存储桶信息(密钥、访问密钥、端点、存储桶名称)?
这是项目页面:https://github.com/spiegela/spring-cloud-ecs-connector
S3Connector source with javadoc
还有一个S3ServiceConnectorCreator
。来自 https://github.com/spiegela/spring-cloud-ecs-connector/blob/master/src/test/java/com/emc/ecs/connector/spring/S3ServiceConnectorCreatorTest.java 的示例用法:
private S3ServiceConnectorCreator s3ServiceConnectorCreator = new S3ServiceConnectorCreator();
...
String myBucket = "myBucket";
String endpoint = "http://10.20.40.3:9020";
S3ServiceInfo serviceInfo = new S3ServiceInfo("s3-1", "myPublicKey", "mySecretKey", endpoint, myBucket);
S3Connector connector = s3ServiceConnectorCreator.create(serviceInfo, null);