oss_define.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include "oss_define.h"
  2. const char OSS_CANNONICALIZED_HEADER_PREFIX[] = "x-oss-";
  3. const char OSS_CANNONICALIZED_HEADER_DATE[] = "x-oss-date";
  4. const char OSS_CANNONICALIZED_HEADER_ACL[] = "x-oss-acl";
  5. const char OSS_CANNONICALIZED_HEADER_COPY_SOURCE[] = "x-oss-copy-source";
  6. const char OSS_CONTENT_MD5[] = "Content-MD5";
  7. const char OSS_CONTENT_TYPE[] = "Content-Type";
  8. const char OSS_CONTENT_LENGTH[] = "Content-Length";
  9. const char OSS_DATE[] = "Date";
  10. const char OSS_AUTHORIZATION[] = "Authorization";
  11. const char OSS_ACCESSKEYID[] = "OSSAccessKeyId";
  12. const char OSS_EXPECT[] = "Expect";
  13. const char OSS_EXPIRES[] = "Expires";
  14. const char OSS_SIGNATURE[] = "Signature";
  15. const char OSS_ACL[] = "acl";
  16. const char OSS_PREFIX[] = "prefix";
  17. const char OSS_DELIMITER[] = "delimiter";
  18. const char OSS_MARKER[] = "marker";
  19. const char OSS_MAX_KEYS[] = "max-keys";
  20. const char OSS_UPLOADS[] = "uploads";
  21. const char OSS_UPLOAD_ID[] = "uploadId";
  22. const char OSS_MAX_PARTS[] = "max-parts";
  23. const char OSS_PART_NUMBER_MARKER[] = "part-number-marker";
  24. const char OSS_KEY_MARKER[] = "key-marker";
  25. const char OSS_UPLOAD_ID_MARKER[] = "upload-id-marker";
  26. const char OSS_MAX_UPLOADS[] = "max-uploads";
  27. const char OSS_PARTNUMBER[] = "partNumber";
  28. const char OSS_APPEND[] = "append";
  29. const char OSS_POSITION[] = "position";
  30. const char OSS_MULTIPART_CONTENT_TYPE[] = "application/x-www-form-urlencoded";
  31. const char OSS_COPY_SOURCE[] = "x-oss-copy-source";
  32. const char OSS_COPY_SOURCE_RANGE[] = "x-oss-copy-source-range";
  33. const char OSS_SECURITY_TOKEN[] = "security-token";
  34. const char OSS_STS_SECURITY_TOKEN[] = "x-oss-security-token";
  35. const char OSS_OBJECT_TYPE[] = "x-oss-object-type";
  36. const char OSS_NEXT_APPEND_POSITION[] = "x-oss-next-append-position";
  37. const char OSS_HASH_CRC64_ECMA[] = "x-oss-hash-crc64ecma";
  38. const char OSS_CALLBACK[] = "x-oss-callback";
  39. const char OSS_CALLBACK_VAR[] = "x-oss-callback-var";
  40. const char OSS_PROCESS[] = "x-oss-process";
  41. const char OSS_LIFECYCLE[] = "lifecycle";
  42. const char OSS_DELETE[] = "delete";
  43. const char OSS_YES[] = "yes";
  44. const char OSS_OBJECT_TYPE_NORMAL[] = "Normal";
  45. const char OSS_OBJECT_TYPE_APPENDABLE[] = "Appendable";
  46. const char OSS_LIVE_CHANNEL[] = "live";
  47. const char OSS_LIVE_CHANNEL_STATUS[] = "status";
  48. const char OSS_COMP[] = "comp";
  49. const char OSS_LIVE_CHANNEL_STAT[] = "stat";
  50. const char OSS_LIVE_CHANNEL_HISTORY[] = "history";
  51. const char OSS_LIVE_CHANNEL_VOD[] = "vod";
  52. const char OSS_LIVE_CHANNEL_START_TIME[] = "startTime";
  53. const char OSS_LIVE_CHANNEL_END_TIME[] = "endTime";
  54. const char OSS_PLAY_LIST_NAME[] = "playlistName";
  55. const char LIVE_CHANNEL_STATUS_DISABLED[] = "disabled";
  56. const char LIVE_CHANNEL_STATUS_ENABLED[] = "enabled";
  57. const char LIVE_CHANNEL_STATUS_IDLE[] = "idle";
  58. const char LIVE_CHANNEL_STATUS_LIVE[] = "live";
  59. const char LIVE_CHANNEL_DEFAULT_TYPE[] = "HLS";
  60. const char LIVE_CHANNEL_DEFAULT_PLAYLIST[] = "playlist.m3u8";
  61. const int LIVE_CHANNEL_DEFAULT_FRAG_DURATION = 5;
  62. const int LIVE_CHANNEL_DEFAULT_FRAG_COUNT = 3;
  63. const int OSS_MAX_PART_NUM = 10000;
  64. const int OSS_PER_RET_NUM = 1000;
  65. const int MAX_SUFFIX_LEN = 1024;