Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type ListResult ¶ added in v0.1.2
type ListResult struct {
Objects []ObjectInfo
Prefixes []string
IsTruncated bool
NextMarker string
}
ListResult 是 List 操作的返回结果
type ObjectInfo ¶ added in v0.1.2
type ObjectInfo struct {
Key string
Size int64
LastModified time.Time
ETag string
StorageClass string
}
ObjectInfo 表示对象元数据
type ReadSeeker ¶
type ReadSeeker interface {
Read(p []byte) (int, error)
Seek(offset int64, whence int) (int64, error)
}
ReadSeeker abstracts the subset we need to stream into drivers.
type Store ¶
type Store interface {
Put(ctx context.Context, key string, r ReadSeeker, size int64, contentType string) error
SignedURL(ctx context.Context, key string, method string, expiry time.Duration) (string, error)
Delete(ctx context.Context, key string) error
List(ctx context.Context, prefix, marker, delimiter string, limit int) (ListResult, error)
CreatePrefix(ctx context.Context, prefix string) error
RenamePrefix(ctx context.Context, oldPrefix, newPrefix string) error
}
Click to show internal directories.
Click to hide internal directories.