minio

package
v0.0.0-...-c8fcf73 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(log *logrus.Logger, endpoint, accessKey, secretKey string) (*Client, error)

func (*Client) DeleteFile

func (c *Client) DeleteFile(ctx context.Context, noteUUID, fileName string) error

func (*Client) GetBucketFiles

func (c *Client) GetBucketFiles(ctx context.Context, bucketName string) ([]*minio.Object, error)

func (*Client) GetFile

func (c *Client) GetFile(ctx context.Context, bucketName, fileID string) (*minio.Object, error)

func (*Client) UploadFile

func (c *Client) UploadFile(ctx context.Context, fileID, fileName, bucketName string, fileSize int64, reader io.Reader) error

type Object

type Object struct {
	ID   string
	Size int64
	Tags map[string]string
}

Jump to

Keyboard shortcuts

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