Documentation ¶
Index ¶
- type S3Bucket
- type S3Client
- func (c *S3Client) CreateS3Bucket(bucket *S3Bucket) (bool, error)
- func (c *S3Client) DeleteS3AllObjects(bucket *S3Bucket) error
- func (c *S3Client) DeleteS3Bucket(bucket *S3Bucket) (bool, error)
- func (c *S3Client) ExistsObject(key string) bool
- func (c *S3Client) GetObject(key string) (*io.ReadCloser, error)
- func (c *S3Client) UploadS3File(fileDir string, bucket *S3Bucket) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Client ¶
S3Client is the object that wraps around the official aws SDK
func NewS3Client ¶
NewS3Client is a wrapper object around the official aws s3 client
func (*S3Client) CreateS3Bucket ¶
CreateS3Bucket creates a bucket It returns false if the bucket exists, true otherwise
func (*S3Client) DeleteS3AllObjects ¶
DeleteS3AllObjects all objects within a bucket (this is not the most efficient way)
func (*S3Client) DeleteS3Bucket ¶
DeleteS3Bucket creates a bucket It returns false if the bucket exists, true otherwise
func (*S3Client) ExistsObject ¶
ExistsObject test if the specified key exists in the bucket It returns true if the key exists, false otherwise
Click to show internal directories.
Click to hide internal directories.