storj/internal/s3client/common.go
Jess G fb86238acc
aws s3 performance tests (#2060)
* add aws s3 benchmark script

* add s3 benchmark tests

* rearrange so smaller diff, fix spelling

* add configurable uplink config for s3-benchmark

* make new bucket w/unique name for each s3 test

* changes per CR
2019-05-28 11:46:58 -07:00

29 lines
762 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package s3client
// Config is the setup for a particular client
type Config struct {
S3Gateway string
Satellite string
AccessKey string
SecretKey string
APIKey string
EncryptionKey string
NoSSL bool
ConfigDir string
}
// Client is the common interface for different implementations
type Client interface {
MakeBucket(bucket, location string) error
RemoveBucket(bucket string) error
ListBuckets() ([]string, error)
Upload(bucket, objectName string, data []byte) error
Download(bucket, objectName string, buffer []byte) ([]byte, error)
Delete(bucket, objectName string) error
ListObjects(bucket, prefix string) ([]string, error)
}