minio

package
v0.0.0-...-d675ba8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*minioV6.Client
}

func NewMinioClient

func NewMinioClient(conf MinioConf) (client *Client, err error)

func (*Client) MinioDownload

func (client *Client) MinioDownload(bucket string, fp string, objName string) (err error)

func (*Client) MinioUpload

func (client *Client) MinioUpload(bucket string, fp string, objName string, contentType string) (err error)

type MinioConf

type MinioConf struct {
	AccessKey string
	SecretKey string
	Host      string
	Port      int
	Secure    bool
}

func (*MinioConf) Validate

func (m *MinioConf) Validate() (err error)

Jump to

Keyboard shortcuts

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