Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type GetObjectOption ¶
type GetObjectOption struct {
// contains filtered or unexported fields
}
func (*GetObjectOption) GetRange ¶
func (opt *GetObjectOption) GetRange() *Range
func (*GetObjectOption) SetRange ¶
func (opt *GetObjectOption) SetRange(start, end int64)
type ObjectInfo ¶
type ObjectInfo struct {
Size int64 `json:"size"`
}
type Oss ¶
type Oss interface { PresignedPutURL(ctx context.Context, objectName string, expires time.Duration, etag, mimeType string, size int64) (string, error) PresignedGetURL(ctx context.Context, objectName string, expires time.Duration) (string, error) StatObject(ctx context.Context, objectName string) (ObjectInfo, error) PutObject(ctx context.Context, objectName string, reader io.Reader, objectSize int64, contentType string) error GetBucketName() string GetObject(ctx context.Context, objectName string, opts GetObjectOption) (io.Reader, error) DeleteObject(ctx context.Context, objectName string) error }
Click to show internal directories.
Click to hide internal directories.