Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteObject(bucketName, objectName string) error
- func (c *Client) GetObject(bucketName, objectName, filePath string, opts minio.GetObjectOptions) error
- func (c *Client) ListBuckets() ([]minio.BucketInfo, error)
- func (c *Client) ListObjects(bucketName, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan minio.ObjectInfo
- func (c *Client) NewBucket(name string, timezone string) error
- func (c *Client) PutImage(bucketName, objectName, filePath string) (int64, error)
- func (c *Client) PutObject(bucketName, objectName, filePath string, opts minio.PutObjectOptions) (int64, error)
- func (c *Client) PutText(bucketName, objectName, filePath string) (int64, error)
- func (c *Client) PutZip(bucketName, objectName, filePath string) (int64, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a minio client.
func (*Client) DeleteObject ¶
DeleteObject removes an object from a bucket.
func (*Client) GetObject ¶
func (c *Client) GetObject(bucketName, objectName, filePath string, opts minio.GetObjectOptions) error
GetObject downloads contents of an object to a local file.
func (*Client) ListBuckets ¶
ListBuckets list all buckets owned by this authenticated user.
func (*Client) ListObjects ¶
func (c *Client) ListObjects(bucketName, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan minio.ObjectInfo
ListObjects lists all objects matching the objectPrefix from the specified bucket.
func (*Client) PutObject ¶
func (c *Client) PutObject(bucketName, objectName, filePath string, opts minio.PutObjectOptions) (int64, error)
PutObject creates an object in a bucket, with contents from file at filePath.
Click to show internal directories.
Click to hide internal directories.