minio

package
v0.0.0-...-d9936ee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	FileName     string `json:"filename"`
	Extension    string `json:"extension"`
	MimeType     string `json:"mime_type"`
	Folder       string `json:"folder"`
	Url          string `json:"url"`
	UrlThumbnail string `json:"url_thumbnail"`
}

type MinioService

type MinioService interface {
	UploadFile(ctx context.Context, file *multipart.FileHeader, buffer io.Reader, location string) (*minioV7.UploadInfo, *FileInfo, error)
	DeleteFile(ctx context.Context, objectName string) (bool, error)
}

func NewMinio

func NewMinio(cf *configs.Minio) MinioService

Jump to

Keyboard shortcuts

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