-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from ZakiFan/master
feat: add s3 api.
- Loading branch information
Showing
16 changed files
with
443 additions
and
7 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
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; | ||
} | ||
} |
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.