Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IStorage ¶ added in v1.11.3
type IStorage interface {
GenerateUploadURL(ctx context.Context, bucket, prefix, fileName string, expireSeconds int) (string, string, error)
GenerateDownloadURL(ctx context.Context, bucket, fileKey string, expireSeconds int) (string, error)
DeleteFile(ctx context.Context, bucket, fileKey string) error
GetFile(ctx context.Context, bucket, fileKey string) ([]byte, error)
}
IStorage 对象存储接口
Click to show internal directories.
Click to hide internal directories.