Documentation ¶
Index ¶
- Variables
- func DelObject(ctx context.Context, bucketName, fileName string) error
- func GetObjURL(ctx context.Context, bucketName, filename string) (u *url.URL, err error)
- func Init()
- func MakeBucket(ctx context.Context, bucketName string) error
- func PutToBucket(ctx context.Context, bucketName string, file *multipart.FileHeader) (info minio.UploadInfo, err error)
- func PutToBucketByBuf(ctx context.Context, bucketName, filename string, buf *bytes.Buffer) (info minio.UploadInfo, err error)
- func PutToBucketByFilePath(ctx context.Context, bucketName, filename, filepath string) (info minio.UploadInfo, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Client *minio.Client
)
Functions ¶
func MakeBucket ¶
MakeBucket create a bucket with a specified name
func PutToBucket ¶
func PutToBucket(ctx context.Context, bucketName string, file *multipart.FileHeader) (info minio.UploadInfo, err error)
PutToBucket put the file into the bucket by *multipart.FileHeader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.