minioutil

package module
v0.0.0-...-96945ac Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 16 Imported by: 1

README

minioutil

Helper functions for github.com/minio/minio-go, library, a go client for s3-compatible storage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *minio.Client

	Bucket string
	// contains filtered or unexported fields
}

func New

func New(config *Config) (*Client, error)

func (*Client) Copy

func (c *Client) Copy(oldPath, newPath string) (*minio.UploadInfo, error)

func (*Client) DownloadFileAtomically

func (c *Client) DownloadFileAtomically(dstPath string, remotePath string) error

func (*Client) Exists

func (c *Client) Exists(remotePath string) bool

func (*Client) ListObjects

func (c *Client) ListObjects(prefix string) <-chan minio.ObjectInfo

func (*Client) Remove

func (c *Client) Remove(remotePath string) error

func (*Client) Rename

func (c *Client) Rename(oldPath, newPath string) (*minio.UploadInfo, error)

func (*Client) URLBase

func (c *Client) URLBase() string

func (*Client) URLForPath

func (c *Client) URLForPath(remotePath string) string

func (*Client) UploadData

func (c *Client) UploadData(remotePath string, data []byte, public bool) (info minio.UploadInfo, err error)

func (*Client) UploadDir

func (c *Client) UploadDir(dirRemote string, dirLocal string, public bool) error

func (*Client) UploadFile

func (c *Client) UploadFile(remotePath string, path string, public bool) (info minio.UploadInfo, err error)

func (*Client) UploadFileBrotliCompressed

func (c *Client) UploadFileBrotliCompressed(remotePath string, path string, public bool) (info minio.UploadInfo, err error)

type Config

type Config struct {
	Access       string
	Secret       string
	Bucket       string
	Endpoint     string
	Region       string
	RequestTrace io.Writer
}

Jump to

Keyboard shortcuts

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