storage

package
v0.0.0-...-cd5af12 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 6 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 {
	Client   minio.Client
	Location string
}

func New

func New() (Storage, error)

func (Storage) MakeBucket

func (client Storage) MakeBucket(bucketName string) bool

func (Storage) PreSignGet

func (client Storage) PreSignGet(bucketName, objectName string) *url.URL

func (Storage) PreSignPut

func (client Storage) PreSignPut(bucketName, objectName string) *url.URL

func (Storage) Put

func (client Storage) Put(bucketName, filePath, contentType string) (string, error)

type StorageManager

type StorageManager interface {
	New()
	PreSignPut()
	PreSignGet()
}

Jump to

Keyboard shortcuts

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