Documentation ¶
Index ¶
- func NewConnection(host, port, accessKeyID, secretAccessKey string, useSSL bool) *minio.Client
- type MinioBucket
- func (mb *MinioBucket) Get(name string) (io.Reader, error)
- func (mb *MinioBucket) GetStat(name string) (io.Reader, *MinioObjectInfo, error)
- func (mb *MinioBucket) Put(name, contentType string, size int64, object io.Reader) error
- func (mb *MinioBucket) Remove(name string) error
- func (mb *MinioBucket) Stat(name string) (*MinioObjectInfo, error)
- type MinioObjectInfo
- type MinioObjectStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MinioBucket ¶
type MinioBucket struct {
// contains filtered or unexported fields
}
MinioBucket stores the name and location of a bucket
func (*MinioBucket) GetStat ¶
func (mb *MinioBucket) GetStat(name string) (io.Reader, *MinioObjectInfo, error)
func (*MinioBucket) Remove ¶
func (mb *MinioBucket) Remove(name string) error
func (*MinioBucket) Stat ¶
func (mb *MinioBucket) Stat(name string) (*MinioObjectInfo, error)
type MinioObjectInfo ¶
type MinioObjectInfo struct {
// contains filtered or unexported fields
}
MinioObjectInfo wraps minio.ObjectInfo{}
func New ¶
func New(mio *minio.ObjectInfo) *MinioObjectInfo
func (*MinioObjectInfo) ContentType ¶
func (oi *MinioObjectInfo) ContentType() string
func (*MinioObjectInfo) ETag ¶
func (oi *MinioObjectInfo) ETag() string
func (*MinioObjectInfo) LastModified ¶
func (oi *MinioObjectInfo) LastModified() time.Time
func (*MinioObjectInfo) Size ¶
func (oi *MinioObjectInfo) Size() int64
type MinioObjectStore ¶
type MinioObjectStore struct {
// contains filtered or unexported fields
}
MinioObjectStore wraps a Minio Client
func NewMinioObjStore ¶
func NewMinioObjStore(client *minio.Client) *MinioObjectStore
func (*MinioObjectStore) DestroyBucket ¶
func (mos *MinioObjectStore) DestroyBucket(name, location string) error
DestroyBucket destroys a bucket based on name and location
func (*MinioObjectStore) GetBucket ¶
func (mos *MinioObjectStore) GetBucket(name, location string) (*MinioBucket, error)
GetBucket returns a bucket based on name and location strings. If a bucket does not yet exist, it will create that bucket.
Click to show internal directories.
Click to hide internal directories.