minio

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Minio

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

Minio client

func NewEngine

func NewEngine(endpoint, accessID, secretKey string, ssl bool) (*Minio, error)

NewEngine struct

func (*Minio) CreateBucket

func (m *Minio) CreateBucket(bucketName, region string) error

CreateBucket create bucket

func (*Minio) DeleteFile

func (m *Minio) DeleteFile(bucketName, fileName string) error

DeleteFile delete file

func (*Minio) FilePath

func (m *Minio) FilePath(_, fileName string) string

FilePath for store path + file name

func (*Minio) GetFile

func (m *Minio) GetFile(bucketName, fileName string) string

GetFile for storage host + bucket + filename

func (*Minio) UploadFile

func (m *Minio) UploadFile(bucketName, objectName string, content []byte) error

UploadFile to s3 server

Jump to

Keyboard shortcuts

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