s3manager-web/s3.go

20 lines
531 B
Go
Raw Normal View History

2017-05-08 23:07:07 +02:00
package s3manager
2017-04-02 17:10:36 +02:00
import (
"io"
minio "github.com/minio/minio-go"
)
2017-05-08 23:07:07 +02:00
// S3 is a client to interact with S3 storage.
type S3 interface {
2017-07-31 10:57:22 +02:00
CopyObject(minio.DestinationInfo, minio.SourceInfo) error
2017-04-02 17:10:36 +02:00
GetObject(string, string) (*minio.Object, error)
ListBuckets() ([]minio.BucketInfo, error)
ListObjectsV2(string, string, bool, <-chan struct{}) <-chan minio.ObjectInfo
MakeBucket(string, string) error
PutObject(string, string, io.Reader, string) (int64, error)
RemoveBucket(string) error
RemoveObject(string, string) error
}