Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileUpload ¶
type FileUpload struct { Bucket string File fileheader.FileHeader Directory string }
type MinioClient ¶
type UploadError ¶
type UploadResult ¶
type Uploader ¶
type Uploader struct { UploadTimeout time.Duration MaxUploadWorkers int // contains filtered or unexported fields }
Uploader is an abstraction layer for Minio client
func New ¶
func New(client MinioClient, uploadOrigin string, uploadTimeout time.Duration, maxUploadWorkers int) *Uploader
New returns a new instance of Uploader
func (*Uploader) UploadFiles ¶
func (u *Uploader) UploadFiles(ctx context.Context, filesChannel chan FileUpload, filesCount int) ([]UploadResult, []UploadError)
UploadFiles uploads multiple files (Files struct) to particular bucket
Click to show internal directories.
Click to hide internal directories.