Skip to content
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: putBucket support set acl and dataRedundancyType #837

Merged
merged 1 commit into from
Jul 27, 2020
Merged

Conversation

weiyie
Copy link
Contributor

@weiyie weiyie commented Jul 22, 2020

No description provided.

@weiyie weiyie force-pushed the putbucket branch 2 times, most recently from 51b332a to d82110e Compare July 23, 2020 06:55
const params = this._bucketRequestParams('PUT', name, '', options);

const CreateBucketConfiguration = {};
const paramlXMLObJ = {
CreateBucketConfiguration
};

if (options.StorageClass) {
CreateBucketConfiguration.StorageClass = options.StorageClass;
const storageClass = options.StorageClass || options.storageClass;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数的参数变动 以及 新加参数 补充下文档

@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@b65857e). Click here to learn what that means.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #837   +/-   ##
=========================================
  Coverage          ?   93.21%           
=========================================
  Files             ?       72           
  Lines             ?     2609           
  Branches          ?        0           
=========================================
  Hits              ?     2432           
  Misses            ?      177           
  Partials          ?        0           
Impacted Files Coverage Δ
lib/common/bucket/putBucket.js 100.00% <100.00%> (ø)
lib/common/object/signatureUrl.js 90.90% <0.00%> (ø)
lib/common/object/getObjectMeta.js 100.00% <0.00%> (ø)
lib/common/parallel.js 42.68% <0.00%> (ø)
lib/common/signUtils.js 81.92% <0.00%> (ø)
lib/common/utils/getStrBytesCount.js 100.00% <0.00%> (ø)
lib/common/utils/checkObjectTag.js 100.00% <0.00%> (ø)
lib/common/bucket/getBucketVersioning.js 100.00% <0.00%> (ø)
lib/common/client/initOptions.js 93.61% <0.00%> (ø)
lib/common/object/getObjectUrl.js 90.00% <0.00%> (ø)
... and 63 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b65857e...80d2253. Read the comment docs.

@PeterRao PeterRao merged commit 8f8edbb into master Jul 27, 2020
PeterRao added a commit that referenced this pull request Jan 11, 2021
* feat: add async task (#818)

* test: replace await loop with Promise.all (#810)

Co-authored-by: 饶培泽 <peizerao@gmail.com>

* feat: add typescript support (#814)

* feat: add ts

* feat: add cjs

* refactor: checkBucketName

* refactor: common/utils with ts

* refactor: createRequest with ts

* feat: add es2017

Co-authored-by: weiyie <912881342@qq.com>

* chore: add nyc config

* feat: asyncFetch (#817)

Co-authored-by: 冷若霜寒 <912881342@qq.com>

* chore: update tsc cli

* fix: WebFileReadStream no throw error when filereader onerror (#824)

* fix(browser): put unhandle non-RequestTimeTooSkewed error (#825)

* chore(deps-dev): bump standard-version from 4.4.0 to 8.0.1 (#831)

Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 4.4.0 to 8.0.1.
- [Release notes](https://github.com/conventional-changelog/standard-version/releases)
- [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md)
- [Commits](conventional-changelog/standard-version@v4.4.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: crypto each exports, close #473 (#830)

Co-authored-by: 饶培泽 <peizerao@gmail.com>

* chore(release): 6.10.0

* chore: bump version

* chore: update README.md (#833)

Update description information of `getBucketVersions`

* fix: throw error when put path is not file (#838)

* fix: Support empty prefix in putBucketLifecycle (#835)

{prefix: ""} is supported for rule that applied to whole bucket.

* feat: multipartUpload support Node.JS Buffer (#832)

Support performing .multipartUpload(name {string}, file {Buffer});

Co-authored-by: 饶培泽 <peizerao@gmail.com>

* fix: IP does not support third-level domain (#834)

* refactor: is.buffer (#839)

* feat: putBucket support set acl and dataRedundancyType (#837)

* docs: add link for more info code (#844)

* feat: support non-english http header (#842)

* feat: support non-english http header

* test: Add test cases for non-English request header information

* feat: add headerEncoding option

* feat: add encoder types

* fix: remove object spread syntax

Co-authored-by: biejia <wb-bj559483@alibaba-inc.com>

* docs: add partSize of multipart (#845)

* fix: sts SignatureDoesNotMatch (#847)

* fix: _getPartSize (#846)

* chore: obj2xml support filter null and undefined value (#848)

* fix: multipartupload task unhandle abort error (#849)

* fix(browser): checkpoint.file (#795)

* fix: copyObject set headers bug (#850)

* feat: support proxy (#858)

* fix(browser): presets dont support ie10 (#861)

* merge branch master into develop

* feat: inventory (#860)

* feat: worm (#857)

* feat: auto set stsConfig when sts expires (#856)

* feat: auto set stsConfig when sts expires

* test: add auto set sts test case

* fix: host err which old image client request (#869)

* Develop (#868)

* feat: support non-english http header (#842)

* feat: support non-english http header

* test: Add test cases for non-English request header information

* feat: add headerEncoding option

* feat: add encoder types

* fix: remove object spread syntax

Co-authored-by: biejia <wb-bj559483@alibaba-inc.com>

* fix(browser): checkpoint.file (#795)

* merge branch master into develop

* feat: inventory (#860)

* feat: worm (#857)

* feat: auto set stsConfig when sts expires (#856)

* feat: auto set stsConfig when sts expires

* test: add auto set sts test case

* fix: host err which old image client request (#869)

Co-authored-by: beajer <919060679@qq.com>
Co-authored-by: biejia <wb-bj559483@alibaba-inc.com>
Co-authored-by: 冷若霜寒 <912881342@qq.com>

* chore(release): 6.11.0

* bump version 6.11.0

* chore: bump version 6.11.1

* fix(browser): delete set header "User-Agent" (#873)

* chore(release): 6.11.2

* chore: bump version 6.11.2

* Update README.md

* fix: use put insteadof putStream when calling multipartUpload to process small file in browser (#890)

* fix(browser):setTimeout  has minimum time interval when tab is inactive (#887)

* fix: replace process for browser

* fix: use browserify options to replace process.js (#886)

Co-authored-by: beajer <919060679@qq.com>

* fix: merge conflict #726 (#892)

* fix: merge conflict

* test: ResponseTimeoutError

* fix: cannot use ali-oss in webworker (#823)

* feat: retry when net err or timeout (#876)

* feat: retry when net err or timeout

* test: should not retry when params.stream is not readable

* test: retry in browser

Co-authored-by: beajer <919060679@qq.com>

* fix: getBucketVersions should use NextKeyMarker property (#896)

* fix: getBucketVersions should use NextKeyMarker property

* docs: getBucketVersions should use NextKeyMarker property

* docs: Compatible wrong property

* Fix multipart upload (#895)

* fix: multipartUpload

zancun

* fix: test case

* test: multipartUploadStreams

* test: cov

* fix: error method

* fix: test and destory(err) when cancel

Co-authored-by: weiyie <912881342@qq.com>

* feat: listObjectsV2 (#888)

* feat: listObjectsV2

* style: trailingComma none

* fix: check region and endpoint for ssrf (#874)

* fix: check region and endpoint for ssrf

* fix: retry in browser

Co-authored-by: beajer <919060679@qq.com>

* use shime/url replace node-url to fix split regex bug

* fix: browser test and listV2 docs (#901)

* chore(release): 6.12.0

* chore: build 6.12.0

* fix: conflict, test case

* style: remove duplicated code

* fix: the continuation-token params in listV2 (#906)

* fix: the continuation-token params in listV2

* docs: update headers.Expires

* docs: revise `start-after` in listV2 (#907)

* fix: codecov

* fix: should use encodeURIComponent insteadof encodeURI in copy api

* fix: use lowercase header when calculating signatures

* fix: deepCopy not working for larges Buffers and test case of Image Process

* feat: prevent caching for the get api

Co-authored-by: 饶培泽 <peizerao@gmail.com>
Co-authored-by: 冷若霜寒 <912881342@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: YUPENG12138 <30425185+YUPENG12138@users.noreply.github.com>
Co-authored-by: Alois Klink <alois.klink@gmail.com>
Co-authored-by: biejia <wb-bj559483@alibaba-inc.com>
@PeterRao PeterRao deleted the putbucket branch January 27, 2022 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants