Documentation
¶
Index ¶
- type S3
- func (s3 *S3) BucketExists(bucketName string) (bool, error)
- func (s3 *S3) Connect(endpoint string, accessKey string, secretKey string, secure bool) error
- func (s3 *S3) CreateBucket(name string) error
- func (s3 *S3) DeleteBucket(name string) error
- func (s3 *S3) DeleteObject(bucketName string, objName string) error
- func (s3 *S3) GetObjectInfo(bucketName string, objName string) (*minio.ObjectInfo, error)
- func (s3 *S3) GetObjectString(bucketName string, objName string) (string, error)
- func (s3 *S3) GetObjects(bucketName string, objectPrefix string, recursive bool) (<-chan minio.ObjectInfo, chan struct{})
- func (s3 *S3) PutObject(bucketName string, objName string, data string) error
- func (s3 *S3) PutObjectWithMetadata(bucketName string, objName string, data string, metadata map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func (*S3) CreateBucket ¶
func (*S3) DeleteBucket ¶
func (*S3) GetObjectInfo ¶
func (*S3) GetObjectString ¶
Gets the specified object and returns the contained data as a string
func (*S3) GetObjects ¶
func (s3 *S3) GetObjects(bucketName string, objectPrefix string, recursive bool) (<-chan minio.ObjectInfo, chan struct{})
GetObjects Returns a channel of object information and another channeling to control the underlying goroutine
'recursive' is whether all 'directories' under the given prefix are given, or only the directory directly under it
The second returned channel should be closed by the user when done using the object information channel
Click to show internal directories.
Click to hide internal directories.