Versions in this module Expand all Collapse all v0 v0.0.3 May 20, 2025 Changes in this version + var ErrUsedUploader = errors.New("the Uploader has been already used") + type CopyObjectResponse struct + ChecksumCRC32 string + ChecksumCRC32C string + ChecksumCRC64NVME string + ChecksumSHA1 string + ChecksumSHA256 string + ChecksumType string + CopyObjectResult xml.Name + ETag string + LastModified time.Time + type GetObjectResponse struct + Body io.ReadCloser + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type HeadObjectResponse struct + CacheControl string + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentLength int64 + ContentRange string + ContentType string + ETag string + LastModified time.Time + Metadata map[string]string + type ListObjectCommonPrefix struct + Prefix string + type ListObjectContent struct + ChecksumAlgorithm string + ETag string + Key string + LastModified time.Time + Owner struct{ ... } + RestoreStatus struct{ ... } + Size int64 + StorageClass string + type ListObjectsResponse struct + CommonPrefixes []*ListObjectCommonPrefix + Contents []*ListObjectContent + ContinuationToken string + Delimiter string + EncodingType string + IsTruncated bool + KeyCount int + MaxKeys int + Name string + NextContinuationToken string + Prefix string + StartAfter string + XMLName xml.Name + type ListParams struct + ContinuationToken string + Delimiter string + EncodingType string + FetchOwner bool + MaxKeys int + Prefix string + StartAfter string + func (l *ListParams) Encode() string + type ResponseError struct + Code string + Message string + Raw []byte + RequestId string + Resource string + Status int + XMLName xml.Name + func (err *ResponseError) Error() string + type S3 struct + AccessKey string + Bucket string + Client HTTPClient + Endpoint string + Region string + SecretKey string + UsePathStyle bool + func (s3 *S3) CopyObject(ctx context.Context, srcKey string, dstKey string, ...) (*CopyObjectResponse, error) + func (s3 *S3) DeleteObject(ctx context.Context, key string, optFuncs ...func(*http.Request)) error + func (s3 *S3) GetObject(ctx context.Context, key string, optFuncs ...func(*http.Request)) (*GetObjectResponse, error) + func (s3 *S3) HeadObject(ctx context.Context, key string, optFuncs ...func(*http.Request)) (*HeadObjectResponse, error) + func (s3 *S3) ListObjects(ctx context.Context, params ListParams, optReqFuncs ...func(*http.Request)) (*ListObjectsResponse, error) + func (s3 *S3) SignAndSend(req *http.Request) (*http.Response, error) + func (s3 *S3) URL(path string) string + type Uploader struct + Key string + MaxConcurrency int + Metadata map[string]string + MinPartSize int + Payload io.Reader + S3 *S3 + func (u *Uploader) Upload(ctx context.Context, optReqFuncs ...func(*http.Request)) error