Documentation ¶
Index ¶
- type Client
- func (c *Client) Connect() error
- func (c *Client) DeleteBucket() error
- func (c *Client) DeleteBucketByName(name string) error
- func (c *Client) Get(filename string) (*minio.Object, error)
- func (c *Client) ListObjects() ([]minio.ObjectInfo, error)
- func (c *Client) Stat(filename string) (minio.ObjectInfo, error)
- func (c *Client) Upload(object UploadObject) error
- type UploadObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Endpoint string AccessKeyID string SecretAccessKey string // contains filtered or unexported fields }
Client wraps the minio s3 client
func (*Client) DeleteBucket ¶
DeleteBucket deletes the main bucket where the client is connected to.
func (*Client) DeleteBucketByName ¶
DeleteBucketByName deletes the bucket with the specified name
func (*Client) ListObjects ¶
ListObjects lists all objects in the bucket
func (*Client) Upload ¶
func (c *Client) Upload(object UploadObject) error
Upload uploads a io.Reader object to the configured endpoint
type UploadObject ¶
Click to show internal directories.
Click to hide internal directories.