Documentation ¶
Index ¶
- func CreateBucket(bucketName string) error
- func GetFileUrl(bucketName string, fileName string, expires time.Duration) (*url.URL, error)
- func Init()
- func RemoveOneFile(bucketName string, fileName string) error
- func UploadFile(bucketName string, objectName string, reader io.Reader, objectsize int64) error
- func UploadLocalFile(bucketName string, objectName string, filePath string, contentType string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileUrl ¶
GetFileUrl 从 minio 获取文件 Url
func RemoveOneFile ¶
RemoveOneFile 从 minio 中删除文件
func UploadFile ¶
UploadFile 上传文件(提供 reader)至 minio
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.