Versions in this module Expand all Collapse all v0 v0.13.0 Nov 22, 2024 Changes in this version + const Byte + const DefaultContentSha256 + const EiByte + const GiByte + const KiByte + const MaxKeys + const MaxRecvBytes + const MaxSendBytes + const MiByte + const OssContentSha256Key + const PiByte + const TiByte + var ErrNoSizeFromRange = errors.New("no size from range") + func EscapeLFString(str string) string + func EscapeXml(s string) string + func NewSignature(content, accessKeySecret string) string + type Bucket interface + Delete func(ctx context.Context, resourcePath string) error + DeleteMultipleObjects func(ctx context.Context, objectKeys []string) error + LinearUpload func(ctx context.Context, resourcePath string, r io.Reader, size int64, mime string) error + ListObjects func(ctx context.Context, prefix, continuationToken string) ([]*Object, string, error) + Open func(ctx context.Context, resourcePath string, start, length int64) (RangeReader, error) + Put func(ctx context.Context, resourcePath string, r io.Reader, mime string) error + Sharing func(ctx context.Context, resourcePath string, expiresAt int64) string + StartUpload func(ctx context.Context, resourcePath, filePath string, mime string) error + Stat func(ctx context.Context, resourcePath string) (*Stat, error) + func NewBucket(opts *NewBucketOptions) (Bucket, error) + func NewGscBucket(ctx context.Context, credentialsJSON []byte, ossBucketName string) (Bucket, error) + func NewS3Bucket(ctx context.Context, ...) (Bucket, error) + type CompleteMultipartUploadResult struct + Bucket string + ETag string + Key string + Location string + XMLName xml.Name + type DeleteObject struct + Key string + VersionId string + XMLName xml.Name + type DeleteObjectVersionsResult struct + DeletedObjectsDetail []DeletedKeyInfo + XMLName xml.Name + type DeleteObjectsResult struct + DeletedObjects []string + XMLName xml.Name + type DeletedKeyInfo struct + DeleteMarker bool + DeleteMarkerVersionId string + Key string + VersionId string + XMLName xml.Name + type Error struct + BucketName string + Code string + HostId string + Message string + RequestId string + StatusCode int + func (e *Error) Error() string + type InitiateMultipartUploadResult struct + Bucket string + Key string + UploadID string + XMLName xml.Name + type ListObjectsResult struct + CommonPrefixes []string + Delimiter string + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Objects []ObjectProperties + Prefix string + XMLName xml.Name + type ListObjectsResultV2 struct + CommonPrefixes []string + ContinuationToken string + Delimiter string + IsTruncated bool + MaxKeys int + NextContinuationToken string + Objects []ObjectProperties + Prefix string + StartAfter string + XMLName xml.Name + type NewBucketOptions struct + AccessKeyID string + AccessKeySecret string + Bucket string + Endpoint string + PartSize int64 + Product string + Region string + SharedEndpoint string + type Object struct + ETag string + Key string + Size int64 + type ObjectProperties struct + ETag string + Key string + LastModified time.Time + Owner Owner + RestoreInfo string + Size int64 + StorageClass string + Type string + XMLName xml.Name + type Owner struct + DisplayName string + ID string + XMLName xml.Name + type RangeReader interface + Range func() string + Size func() int64 + func NewRangeReader(rc io.ReadCloser, size int64, hdr string) RangeReader + type ServiceError struct + Code string + Ec string + Endpoint string + HostID string + Message string + RawMessage string + RequestID string + StatusCode int + XMLName xml.Name + func (e *ServiceError) Error() string + type Stat struct + Crc64 string + Mime string + Size int64 + type UploadPart struct + ETag string + PartNumber int + XMLName xml.Name + type UploadParts []UploadPart + func (slice UploadParts) Len() int + func (slice UploadParts) Less(i, j int) bool + func (slice UploadParts) Swap(i, j int)