Documentation ¶
Index ¶
- type Cert
- type Client
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) DeleteBucket(ctx context.Context) error
- func (c *Client) DeleteBucketByName(ctx context.Context, name string) error
- func (c *Client) Get(ctx context.Context, filename string) (*minio.Object, error)
- func (c *Client) ListObjects(ctx context.Context) ([]minio.ObjectInfo, error)
- func (c *Client) Stat(ctx context.Context, filename string) (minio.ObjectInfo, error)
- func (c *Client) Upload(ctx context.Context, 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
type UploadObject ¶
Click to show internal directories.
Click to hide internal directories.