minio

package
v0.0.0-...-4d78421 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMediaBucket

func CreateMediaBucket(bucketName, location string) error

CreateMediaBucket creates a new bucket for media.

func GetClient

func GetClient() *minio.Client

GetClient returns the minio client.

func NewMinioClient

func NewMinioClient(endpoint, accessKey, secretKey string, useSSL bool) (*minio.Client, error)

NewMinioClient returns a new minio client.

func SetClient

func SetClient(newClient *minio.Client)

SetClient sets the minio client.

func UploadFile

func UploadFile(objectName, filePath, bucketName string) error

UploadFile uploads a file to the minio server By default, the file will be uploaded to the media bucket.

func UploadImage

func UploadImage(objectName, filePath, bucketName string) error

UploadImage uploads an image to the minio server By default, the image will be uploaded to the media bucket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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