V2Constants.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright 2019 Huawei Technologies Co.,Ltd.
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  5. * this file except in compliance with the License. You may obtain a copy of the
  6. * License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software distributed
  11. * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  12. * CONDITIONS OF ANY KIND, either express or implied. See the License for the
  13. * specific language governing permissions and limitations under the License.
  14. *
  15. */
  16. namespace Obs\Internal\Resource;
  17. class V2Constants extends Constants {
  18. const FLAG = 'AWS';
  19. const METADATA_PREFIX = 'x-amz-meta-';
  20. const HEADER_PREFIX = 'x-amz-';
  21. const ALTERNATIVE_DATE_HEADER = 'x-amz-date';
  22. const SECURITY_TOKEN_HEAD = 'x-amz-security-token';
  23. const TEMPURL_AK_HEAD = 'AWSAccessKeyId';
  24. const GROUP_ALL_USERS_PREFIX = 'http://acs.amazonaws.com/groups/global/';
  25. const GROUP_AUTHENTICATED_USERS_PREFIX = 'http://acs.amazonaws.com/groups/global/';
  26. const GROUP_LOG_DELIVERY_PREFIX = 'http://acs.amazonaws.com/groups/s3/';
  27. const COMMON_HEADERS = [
  28. 'content-length' => 'ContentLength',
  29. 'date' => 'Date',
  30. 'x-amz-request-id' => 'RequestId',
  31. 'x-amz-id-2' => 'Id2',
  32. 'x-reserved' => 'Reserved'
  33. ];
  34. }