| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package oss
- import (
- "hash"
- "io"
- "net/http"
- )
- // Response Http response from oss
- type Response struct {
- StatusCode int
- Headers http.Header
- Body io.ReadCloser
- ClientCRC uint64
- ServerCRC uint64
- }
- // PutObjectRequest The request of DoPutObject
- type PutObjectRequest struct {
- ObjectKey string
- Reader io.Reader
- Listener ProgressListener
- }
- // GetObjectRequest The request of DoGetObject
- type GetObjectRequest struct {
- ObjectKey string
- Listener ProgressListener
- }
- // GetObjectResult The result of DoGetObject
- type GetObjectResult struct {
- Response *Response
- ClientCRC hash.Hash64
- ServerCRC uint64
- }
- // AppendObjectRequest The requtest of DoAppendObject
- type AppendObjectRequest struct {
- ObjectKey string
- Reader io.Reader
- Position int64
- Listener ProgressListener
- }
- // AppendObjectResult The result of DoAppendObject
- type AppendObjectResult struct {
- NextPosition int64
- CRC uint64
- }
- // UploadPartRequest The request of DoUploadPart
- type UploadPartRequest struct {
- InitResult *InitiateMultipartUploadResult
- Reader io.Reader
- PartSize int64
- PartNumber int
- Listener ProgressListener
- }
- // UploadPartResult The result of DoUploadPart
- type UploadPartResult struct {
- Part UploadPart
- }
|