mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-28 00:58:59 +00:00
test:mc cp
This commit is contained in:
@@ -98,10 +98,21 @@ impl S3 for FS {
|
||||
Ok(S3Response::new(output))
|
||||
}
|
||||
|
||||
async fn get_object_lock_configuration(
|
||||
&self,
|
||||
_req: S3Request<GetObjectLockConfigurationInput>,
|
||||
) -> S3Result<S3Response<GetObjectLockConfigurationOutput>> {
|
||||
// mc cp step 1
|
||||
let output = GetObjectLockConfigurationOutput::default();
|
||||
Ok(S3Response::new(output))
|
||||
}
|
||||
|
||||
#[tracing::instrument]
|
||||
async fn get_object(&self, req: S3Request<GetObjectInput>) -> S3Result<S3Response<GetObjectOutput>> {
|
||||
let input = req.input;
|
||||
|
||||
println!("get_object: {:?}", &input);
|
||||
|
||||
let output = GetObjectOutput { ..Default::default() };
|
||||
Ok(S3Response::new(output))
|
||||
}
|
||||
@@ -110,6 +121,8 @@ impl S3 for FS {
|
||||
async fn head_bucket(&self, req: S3Request<HeadBucketInput>) -> S3Result<S3Response<HeadBucketOutput>> {
|
||||
let input = req.input;
|
||||
|
||||
// mc cp step 2
|
||||
|
||||
Ok(S3Response::new(HeadBucketOutput::default()))
|
||||
}
|
||||
|
||||
@@ -191,6 +204,8 @@ impl S3 for FS {
|
||||
) -> S3Result<S3Response<CreateMultipartUploadOutput>> {
|
||||
let input = req.input;
|
||||
|
||||
// mc cp step 3
|
||||
|
||||
let output = CreateMultipartUploadOutput { ..Default::default() };
|
||||
|
||||
Ok(S3Response::new(output))
|
||||
|
||||
Reference in New Issue
Block a user