Documentation ¶
Index ¶
- func NewOptions(accessKeyID, secretAccessKey, sessionToken string, secure bool) *minio.Options
- type BucketClient
- func (c *BucketClient) EnsureBucket(ctx context.Context, opts minio.MakeBucketOptions) error
- func (c *BucketClient) GetObject(ctx context.Context, objectName string, opts minio.GetObjectOptions) (*minio.Object, error)
- func (c *BucketClient) ListObjects(ctx context.Context, opts minio.ListObjectsOptions) <-chan minio.ObjectInfo
- func (c *BucketClient) Put(ctx context.Context, objectName string, value any, opts minio.PutObjectOptions, ...) (minio.UploadInfo, error)
- func (c *BucketClient) PutBytes(ctx context.Context, objectName string, value []byte, ...) (minio.UploadInfo, error)
- func (c *BucketClient) Read(ctx context.Context, objectName string, dst any, opts minio.GetObjectOptions, ...) error
- func (c *BucketClient) ReadBytes(ctx context.Context, objectName string, dst io.Writer, ...) error
- func (c *BucketClient) RemoveBucket(ctx context.Context) error
- func (c *BucketClient) RemoveObject(ctx context.Context, objectName string, opts minio.RemoveObjectOptions) error
- func (c *BucketClient) StatObject(ctx context.Context, objectName string, opts minio.GetObjectOptions) (minio.ObjectInfo, error)
- type Client
- func (c *Client) EnsureBucket(ctx context.Context, bucketName string, opts minio.MakeBucketOptions) error
- func (c *Client) GetBucketClient(bucketName string, serializer Serializer) *BucketClient
- func (c *Client) Put(ctx context.Context, bucketName, objectName string, value any, ...) (minio.UploadInfo, error)
- func (c *Client) PutBytes(ctx context.Context, bucketName, objectName string, value []byte, ...) (minio.UploadInfo, error)
- func (c *Client) Read(ctx context.Context, bucketName string, objectName string, dst any, ...) error
- func (c *Client) ReadBytes(ctx context.Context, bucketName string, objectName string, dst io.Writer, ...) error
- type JSONSerializer
- type Serializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOptions ¶
Types ¶
type BucketClient ¶
type BucketClient struct { Client *Client BucketName string Serializer Serializer }
func NewBucketClient ¶
func NewBucketClient(endpoint string, bucketName string, opts *minio.Options, serializer Serializer) (*BucketClient, error)
func (*BucketClient) EnsureBucket ¶
func (c *BucketClient) EnsureBucket(ctx context.Context, opts minio.MakeBucketOptions) error
func (*BucketClient) GetObject ¶
func (c *BucketClient) GetObject(ctx context.Context, objectName string, opts minio.GetObjectOptions) (*minio.Object, error)
func (*BucketClient) ListObjects ¶
func (c *BucketClient) ListObjects(ctx context.Context, opts minio.ListObjectsOptions) <-chan minio.ObjectInfo
func (*BucketClient) Put ¶
func (c *BucketClient) Put(ctx context.Context, objectName string, value any, opts minio.PutObjectOptions, s ...Serializer) (minio.UploadInfo, error)
func (*BucketClient) Read ¶
func (c *BucketClient) Read(ctx context.Context, objectName string, dst any, opts minio.GetObjectOptions, s ...Serializer) error
func (*BucketClient) RemoveBucket ¶
func (c *BucketClient) RemoveBucket(ctx context.Context) error
func (*BucketClient) RemoveObject ¶
func (c *BucketClient) RemoveObject(ctx context.Context, objectName string, opts minio.RemoveObjectOptions) error
func (*BucketClient) StatObject ¶
func (c *BucketClient) StatObject(ctx context.Context, objectName string, opts minio.GetObjectOptions) (minio.ObjectInfo, error)
type Client ¶
type Client struct { *minio.Client Serializer Serializer }
func NewClient ¶
func NewClient(endpoint string, opts *minio.Options, serializer Serializer) (*Client, error)
func (*Client) EnsureBucket ¶
func (*Client) GetBucketClient ¶
func (c *Client) GetBucketClient(bucketName string, serializer Serializer) *BucketClient
type JSONSerializer ¶
type JSONSerializer struct{}
func (JSONSerializer) Deserialize ¶
func (_ JSONSerializer) Deserialize(data []byte, v any) error
Click to show internal directories.
Click to hide internal directories.