Documentation ¶
Index ¶
- func CreateMediaBucket(bucketName, location string) error
- func GetClient() *minio.Client
- func NewMinioClient(endpoint, accessKey, secretKey string, useSSL bool) (*minio.Client, error)
- func SetClient(newClient *minio.Client)
- func UploadFile(objectName, filePath, bucketName string) error
- func UploadImage(objectName, filePath, bucketName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMediaBucket ¶
CreateMediaBucket creates a new bucket for media.
func NewMinioClient ¶
NewMinioClient returns a new minio client.
func UploadFile ¶
UploadFile uploads a file to the minio server By default, the file will be uploaded to the media bucket.
func UploadImage ¶
UploadImage uploads an image to the minio server By default, the image will be uploaded to the media bucket.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.