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 UploadObject(bucket, objectName, contentType string, reader io.Reader, size int64) error
- type BucketInfo
- type BucketObject
- type MinioBucketObject
- type ObjectInfo
- 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
Types ¶
type BucketInfo ¶ added in v0.5.7
BucketInfo provides information about S3 bucket
func ListBuckets ¶
func ListBuckets() ([]BucketInfo, error)
ListBuckets provides list of buckets in S3 store
type BucketObject ¶
type BucketObject struct {
Bucket string `json:"bucket"`
Objects []ObjectInfo `json:"objects"`
}
BucketObject represents S3 bucket object
func BucketContent ¶
func BucketContent(bucket string) (BucketObject, error)
BucketContent provides content on given bucket
type MinioBucketObject ¶ added in v0.5.7
type MinioBucketObject struct {
Bucket string `json:"bucket"`
Objects []minio.ObjectInfo `json:"objects"`
}
MinioBucketObject represents s3 object
type ObjectInfo ¶ added in v0.5.7
type ObjectInfo struct {
Name string `json:"name"` // Name of the object
LastModified time.Time `json:"last_modified"` // Date and time the object was last modified.
Size int64 `json:"size"` // Size in bytes of the object.
ContentType string `json:"content_type"` // A standard MIME type describing the format of the object data.
Expires time.Time `json:"expires"` // The date and time at which the object is no longer able to be cached.
}
ObjectInfo provides information about S3 object
func ListObjects ¶
func ListObjects(bucket string) ([]ObjectInfo, error)
ListObjects provides list of buckets in S3 store
Click to show internal directories.
Click to hide internal directories.