123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package oss
- import (
- "hash"
- "io"
- "net/http"
- )
- type Response struct {
- StatusCode int
- Headers http.Header
- Body io.ReadCloser
- ClientCRC uint64
- ServerCRC uint64
- }
- type PutObjectRequest struct {
- ObjectKey string
- Reader io.Reader
- }
- type GetObjectRequest struct {
- ObjectKey string
- }
- type GetObjectResult struct {
- Response *Response
- ClientCRC hash.Hash64
- ServerCRC uint64
- }
- type AppendObjectRequest struct {
- ObjectKey string
- Reader io.Reader
- Position int64
- }
- type AppendObjectResult struct {
- NextPosition int64
- CRC uint64
- }
- type UploadPartRequest struct {
- InitResult *InitiateMultipartUploadResult
- Reader io.Reader
- PartSize int64
- PartNumber int
- }
- type UploadPartResult struct {
- Part UploadPart
- }
|