minio

package
v0.0.0-...-41aeeaa Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MC

type MC struct {
	BucketName string
	// contains filtered or unexported fields
}

func NewMINIO

func NewMINIO() (*MC, error)

func (MC) GetFile

func (mc MC) GetFile(ctx context.Context, fileName string) ([]byte, error)

func (MC) PutFile

func (mc MC) PutFile(ctx context.Context, file *multipart.FileHeader, fileName string) (string, error)

func (MC) PutFileByPath

func (mc MC) PutFileByPath(ctx context.Context, path string) (string, error)

func (MC) RemoveFile

func (mc MC) RemoveFile(ctx context.Context, fileName string) error

Jump to

Keyboard shortcuts

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