Documentation
¶
Index ¶
- func Connect(credProvider provider.CredProvider, region string) (s3Internal, error)
- type Provider
- type S3
- func (this *S3) DeleteObject(bucket, key string) error
- func (this *S3) GetObject(bucket, key string) ([]byte, error)
- func (this *S3) GetObjectToFile(bucket, key, path string, fileMode os.FileMode) error
- func (this *S3) ListObjects(bucket, prefix string) ([]string, error)
- func (this *S3) PutObject(bucket, key string, body []byte) error
- func (this *S3) PutObjectFromFile(bucket, key, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
PutObject(string, string, []byte) error
ListObjects(string, string) ([]string, error)
GetObject(string, string) ([]byte, error)
DeleteObject(string, string) error
PutObjectFromFile(bucket, key, path string) error
GetObjectToFile(bucket, key, path string, filemode os.FileMode) error
}
type S3 ¶
type S3 struct {
Connect func() (s3Internal, error)
// contains filtered or unexported fields
}
func (*S3) DeleteObject ¶
func (*S3) GetObjectToFile ¶
func (*S3) PutObjectFromFile ¶
Click to show internal directories.
Click to hide internal directories.