Documentation ¶
Index ¶
- Variables
- type AWSCLI
- func (client *AWSCLI) Delete(bucket, objectName string) error
- func (client *AWSCLI) Download(bucket, objectName string, buffer []byte) ([]byte, error)
- func (client *AWSCLI) ListBuckets() ([]string, error)
- func (client *AWSCLI) ListObjects(bucket, prefix string) ([]string, error)
- func (client *AWSCLI) MakeBucket(bucket, location string) error
- func (client *AWSCLI) RemoveBucket(bucket string) error
- func (client *AWSCLI) Upload(bucket, objectName string, data []byte) error
- func (client *AWSCLI) UploadMultipart(bucket, objectName string, data []byte, threshold int) error
- type Client
- type Config
- type Minio
- func (client *Minio) Delete(bucket, objectName string) error
- func (client *Minio) Download(bucket, objectName string, buffer []byte) ([]byte, error)
- func (client *Minio) ListBuckets() ([]string, error)
- func (client *Minio) ListObjects(bucket, prefix string) ([]string, error)
- func (client *Minio) MakeBucket(bucket, location string) error
- func (client *Minio) RemoveBucket(bucket string) error
- func (client *Minio) Upload(bucket, objectName string, data []byte) error
- func (client *Minio) UploadMultipart(bucket, objectName string, data []byte, threshold int) error
- type Uplink
- func (client *Uplink) Delete(bucket, objectName string) error
- func (client *Uplink) Download(bucket, objectName string, buffer []byte) ([]byte, error)
- func (client *Uplink) ListBuckets() ([]string, error)
- func (client *Uplink) ListObjects(bucket, prefix string) ([]string, error)
- func (client *Uplink) MakeBucket(bucket, location string) error
- func (client *Uplink) RemoveBucket(bucket string) error
- func (client *Uplink) Upload(bucket, objectName string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
var AWSCLIError = errs.Class("aws-cli error")
AWSCLIError is class for minio errors
var MinioError = errs.Class("minio error")
MinioError is class for minio errors
var UplinkError = errs.Class("uplink error")
UplinkError is class for minio errors
Functions ¶
This section is empty.
Types ¶
type AWSCLI ¶
type AWSCLI struct {
// contains filtered or unexported fields
}
AWSCLI implements basic S3 Client with aws-cli
func (*AWSCLI) ListBuckets ¶
ListBuckets lists all buckets
func (*AWSCLI) ListObjects ¶
ListObjects lists objects
func (*AWSCLI) MakeBucket ¶
MakeBucket makes a new bucket
func (*AWSCLI) RemoveBucket ¶
RemoveBucket removes a bucket
type Client ¶
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) }
Client is the common interface for different implementations
type Config ¶
type Config struct { S3Gateway string Satellite string AccessKey string SecretKey string APIKey string EncryptionKey string NoSSL bool }
Config is the setup for a particular client
type Minio ¶
type Minio struct {
// contains filtered or unexported fields
}
Minio implements basic S3 Client with minio
func (*Minio) ListBuckets ¶
ListBuckets lists all buckets
func (*Minio) ListObjects ¶
ListObjects lists objects
func (*Minio) MakeBucket ¶
MakeBucket makes a new bucket
func (*Minio) RemoveBucket ¶
RemoveBucket removes a bucket
type Uplink ¶
type Uplink struct {
// contains filtered or unexported fields
}
Uplink implements basic S3 Client with uplink
func (*Uplink) ListBuckets ¶
ListBuckets lists all buckets
func (*Uplink) ListObjects ¶
ListObjects lists objects
func (*Uplink) MakeBucket ¶
MakeBucket makes a new bucket
func (*Uplink) RemoveBucket ¶
RemoveBucket removes a bucket