Documentation
¶
Index ¶
- func CreateBucket(bucket string) error
- func DeleteBucket(bucket string) error
- func DeleteObject(bucket, objectName, versionId string) error
- func GetObject(bucket, objectName string) ([]byte, error)
- func ListBuckets() ([]minio.BucketInfo, error)
- func ListObjects(bucket string) ([]minio.ObjectInfo, error)
- func UploadObject(bucket, objectName, contentType string, reader io.Reader, size int64) (minio.UploadInfo, error)
- type BucketObject
- type S3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
CreateBucket creates new bucket in S3 store
func DeleteObject ¶
DeleteObject deletes object from S3 storage
func ListBuckets ¶
func ListBuckets() ([]minio.BucketInfo, error)
ListBuckets provides list of buckets in S3 store
func ListObjects ¶
func ListObjects(bucket string) ([]minio.ObjectInfo, error)
ListObjects provides list of buckets in S3 store
func UploadObject ¶
func UploadObject(bucket, objectName, contentType string, reader io.Reader, size int64) (minio.UploadInfo, error)
UploadObject uploads given object to S3 store
Types ¶
type BucketObject ¶
type BucketObject struct { Bucket string `json:"bucket"` Objects []minio.ObjectInfo `json:"objects"` }
BucketObject represents s3 object
func BucketContent ¶
func BucketContent(bucket string) (BucketObject, error)
BucketContent provides content on given bucket
Click to show internal directories.
Click to hide internal directories.