Documentation
¶
Index ¶
- Variables
- func CreateBucket(bucketName string) error
- func GetFileUrl(bucketName string, fileName string, expires time.Duration) (*url.URL, 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 ¶
View Source
var ( Config = ttviper.ConfigInit("TIKTOK_MINIO", "minioConfig") MinioEndpoint = Config.Viper.GetString("minio.Endpoint") MinioAccessKeyId = Config.Viper.GetString("minio.AccessKeyId") MinioSecretAccessKey = Config.Viper.GetString("minio.SecretAccessKey") MinioUseSSL = Config.Viper.GetBool("minio.UseSSL") MinioVideoBucketName = Config.Viper.GetString("minio.VideoBucketName") )
Functions ¶
func GetFileUrl ¶
GetFileUrl 从 minio 获取文件Url
func UploadFile ¶
UploadFile 上传文件(提供reader)至 minio
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.