minio

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.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 Storage

type Storage struct {
	*minio.Client `json:"-"`

	Endpoint   string `json:"endpoint"`
	Region     string `json:"region"`
	AccessKey  string `json:"access_key"`
	PrivateKey string `json:"private_key"`
	SSL        bool   `json:"ssl"`
	Bucket     string `json:"bucket"`
	Prefix     string `json:"prefix"`
}

Storage defines a storage service based on minio

func (Storage) GetObject

func (s Storage) GetObject(ctx context.Context, filePath string) (io.ReadCloser, error)

GetObject returns the specified object if found

func (*Storage) Init

func (s *Storage) Init() (err error)

Init configures the underlying storage engine

func (*Storage) WithPrefix

func (s *Storage) WithPrefix(prefix string) storage.Service

WithPrefix returns a new storage service with the new prefixed appended to the current one

Jump to

Keyboard shortcuts

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