-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add s3 api. #50
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ For a Maven project, add the following to your `pom.xml` file: | |
<dependency> | ||
<groupId>group.rxcloud</groupId> | ||
<artifactId>cloud-runtimes-api</artifactId> | ||
<version>1.15.RELEASE</version> | ||
<version>1.16-SNAPSHOT</version> | ||
</dependency> | ||
... | ||
</dependencies> | ||
|
@@ -69,6 +69,6 @@ For a Gradle project, add the following to your `build.gradle` file: | |
dependencies { | ||
// ... | ||
// https://mvnrepository.com/artifact/group.rxcloud/cloud-runtimes-api | ||
implementation group: 'group.rxcloud', name: 'cloud-runtimes-api', version: '1.15.RELEASE' | ||
implementation group: 'group.rxcloud', name: 'cloud-runtimes-api', version: '1.16-SNAPSHOT' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1.16.RELEASE |
||
} | ||
``` |
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
47 changes: 47 additions & 0 deletions
47
...src/main/java/group/rxcloud/cloudruntimes/domain/nativeproto/awss3/DeleteObjectInput.java
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,47 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package group.rxcloud.cloudruntimes.domain.nativeproto.awss3; | ||
|
||
/** | ||
* Delete object from oss by bucket name and object key name。 | ||
*/ | ||
public class DeleteObjectInput { | ||
/** | ||
* Required. The bucket name containing the object. | ||
*/ | ||
private String bucket; | ||
/** | ||
* Required. Key of the object to delete. | ||
*/ | ||
private String key; | ||
|
||
public String getBucket() { | ||
return bucket; | ||
} | ||
|
||
public void setBucket(String bucket) { | ||
this.bucket = bucket; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 可以给pojo添加 |
||
} |
59 changes: 59 additions & 0 deletions
59
...rc/main/java/group/rxcloud/cloudruntimes/domain/nativeproto/awss3/DeleteObjectOutput.java
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,59 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package group.rxcloud.cloudruntimes.domain.nativeproto.awss3; | ||
|
||
/** | ||
* Delete object from oss by bucket name and object key name。 | ||
*/ | ||
public class DeleteObjectOutput { | ||
/** | ||
* Specifies whether the object retrieved was (true) or was not (false) a Delete Marker. | ||
*/ | ||
private boolean deleteMarker; | ||
/** | ||
* The value of the RequestCharged property for this object. | ||
*/ | ||
private String requestCharged; | ||
/** | ||
* Version of the object. | ||
*/ | ||
private String versionId; | ||
|
||
public boolean isDeleteMarker() { | ||
return deleteMarker; | ||
} | ||
|
||
public void setDeleteMarker(boolean deleteMarker) { | ||
this.deleteMarker = deleteMarker; | ||
} | ||
|
||
public String getRequestCharged() { | ||
return requestCharged; | ||
} | ||
|
||
public void setRequestCharged(String requestCharged) { | ||
this.requestCharged = requestCharged; | ||
} | ||
|
||
public String getVersionId() { | ||
return versionId; | ||
} | ||
|
||
public void setVersionId(String versionId) { | ||
this.versionId = versionId; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...pi/src/main/java/group/rxcloud/cloudruntimes/domain/nativeproto/awss3/GetObjectInput.java
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,47 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package group.rxcloud.cloudruntimes.domain.nativeproto.awss3; | ||
|
||
/** | ||
* Get object from oss by bucket name and object key name。 | ||
*/ | ||
public class GetObjectInput { | ||
/** | ||
* Required. The bucket name containing the object. | ||
*/ | ||
private String bucket; | ||
/** | ||
* Required. Key of the object to get. | ||
*/ | ||
private String key; | ||
|
||
public String getBucket() { | ||
return bucket; | ||
} | ||
|
||
public void setBucket(String bucket) { | ||
this.bucket = bucket; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...i/src/main/java/group/rxcloud/cloudruntimes/domain/nativeproto/awss3/GetObjectOutput.java
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,36 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package group.rxcloud.cloudruntimes.domain.nativeproto.awss3; | ||
|
||
/** | ||
* Get object from oss by bucket name and object key name。 | ||
*/ | ||
public class GetObjectOutput { | ||
|
||
/** | ||
* Byte stream for the specified object. | ||
*/ | ||
private byte[] data; | ||
|
||
public byte[] getData() { | ||
return data; | ||
} | ||
|
||
public void setData(byte[] data) { | ||
this.data = data; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...s-api/src/main/java/group/rxcloud/cloudruntimes/domain/nativeproto/awss3/InitRequest.java
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,49 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package group.rxcloud.cloudruntimes.domain.nativeproto.awss3; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Initialize the client's request entity. | ||
*/ | ||
public class InitRequest { | ||
/** | ||
* The name of oss. | ||
*/ | ||
private String storeName; | ||
/** | ||
* Initialize the metadata required by the client | ||
*/ | ||
private Map<String, String> metadata; | ||
|
||
public String getStoreName() { | ||
return storeName; | ||
} | ||
|
||
public void setStoreName(String storeName) { | ||
this.storeName = storeName; | ||
} | ||
|
||
public Map<String, String> getMetadata() { | ||
return metadata; | ||
} | ||
|
||
public void setMetadata(Map<String, String> metadata) { | ||
this.metadata = metadata; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.16.RELEASE