Documentation ¶
Index ¶
- type LocalFileClient
- func (l *LocalFileClient) MakeBucket(ctx context.Context, bucketName string) error
- func (l *LocalFileClient) PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, ...) (string, error)
- func (c *LocalFileClient) PutObjectFromFile(ctx context.Context, bucketName, objectName, localFile string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalFileClient ¶
type LocalFileClient struct {
Root string
}
LocalFileClient 本地文件
func (*LocalFileClient) MakeBucket ¶
func (l *LocalFileClient) MakeBucket(ctx context.Context, bucketName string) error
MakeBucket 创建存储目录
func (*LocalFileClient) PutObject ¶
func (l *LocalFileClient) PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64) (string, error)
PutObject 上传对象
func (*LocalFileClient) PutObjectFromFile ¶
func (c *LocalFileClient) PutObjectFromFile(ctx context.Context, bucketName, objectName, localFile string) (string, error)
PutObjectFromFile 上传对象
Click to show internal directories.
Click to hide internal directories.