minio

package
v0.0.0-...-f9b5f64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 CreateBucket(bucketName string) error

func GetFileTemporaryURL

func GetFileTemporaryURL(bucketName, objectName string) (string, error)

func UploadFileByIO

func UploadFileByIO(bucketName, objectName string, reader io.Reader, size int64, contentType string) (int64, error)

func UploadFileByPath

func UploadFileByPath(bucketName, objectName, path, contentType string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL