Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OSS ¶
type OSS interface {
MakeBucket(ctx context.Context, bucketName string) error // 创建桶
PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64) (string, error) // 上传文件
PutObjectFromFile(ctx context.Context, bucketName, objectName, localFile string) (string, error) // 本地文件上传
}
OSS oss接口
Click to show internal directories.
Click to hide internal directories.