Documentation ¶
Index ¶
- Variables
- func CreateBucket(bucketName string) error
- func GetFileTemporaryURL(bucketName, objectName string) (string, error)
- func UploadFileByIO(bucketName, objectName string, reader io.Reader, size int64, ...) (int64, error)
- func UploadFileByPath(bucketName, objectName, path, contentType string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinioEndPoint = minioConfig.Viper.GetString("minio.Endpoint") MinioAccessKeyId = minioConfig.Viper.GetString("minio.AccessKeyId") MinioSecretAccessKey = minioConfig.Viper.GetString("minio.SecretAccessKey") UseSSL = minioConfig.Viper.GetBool("minio.UseSSL") VideoBucketName = minioConfig.Viper.GetString("minio.VideoBucketName") CoverBucketName = minioConfig.Viper.GetString("minio.CoverBucketName") AvatarBucketName = minioConfig.Viper.GetString("minio.AvatarBucketName") BackgroundImageBucketName = minioConfig.Viper.GetString("minio.BackgroundImageBucketName") ExpireTime = minioConfig.Viper.GetUint32("minio.ExpireTime") )
Functions ¶
func CreateBucket ¶
func GetFileTemporaryURL ¶
func UploadFileByIO ¶
func UploadFileByPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.