objectstore

package
v0.0.0-...-c4b491b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMinioClient

func GetMinioClient() *minio.Client

Types

type Impl

type Impl struct {
	MinioClient *minio.Client
}

func NewObjectStore

func NewObjectStore() *Impl

func (*Impl) GetFileFromBucket

func (obs *Impl) GetFileFromBucket(bucket string, filePath string) (*[]byte, error)

func (*Impl) Move

func (obs *Impl) Move(sourceBucket, destinationBucket, objectName string) error

func (*Impl) SaveFileToBucket

func (obs *Impl) SaveFileToBucket(bucket string, filePath string) error

type ObjectStore

type ObjectStore interface {
	SaveFileToBucket(bucket string, filePath string)
	GetFileFromBucket(bucket string, filePath string)
}

Jump to

Keyboard shortcuts

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