Documentation ¶
Index ¶
- type Client
- func (c *Client) AbortMultipartUpload(ctx context.Context, bucket, object, uploadID string) error
- func (c *Client) CompleteMultipartUpload(ctx context.Context, bucket, object, uploadID string, ...) (string, error)
- func (c *Client) CopyObject(ctx context.Context, sourceBucket, sourceObject, destBucket, destObject string, ...) (models.ObjectInfo, error)
- func (c *Client) CopyObjectMultipart(ctx context.Context, srcObject models.ObjectInfo, ...) error
- func (c *Client) CopyObjectMultipartThreshold() int64
- func (c *Client) GetObject(ctx context.Context, bucketName, objectName string, opts models.ReadMeta) (io.ReadCloser, models.ObjectInfo, error)
- func (c *Client) ListBuckets(ctx context.Context) (bb []models.BucketInfo, e error)
- func (c *Client) ListMultipartUploads(ctx context.Context, ...) (result models.ListMultipartUploadsResult, err error)
- func (c *Client) ListObjectParts(ctx context.Context, bucketName, objectName, uploadID string, ...) (models.ListObjectPartsResult, error)
- func (c *Client) ListObjects(ctx context.Context, bucketName, prefix, marker, delimiter string, max ...int) (result models.ListBucketResult, err error)
- func (c *Client) MakeBucket(ctx context.Context, bucketName string, location string) (err error)
- func (c *Client) NewMultipartUpload(ctx context.Context, bucket, object string, opts models.PutMeta) (uploadID string, err error)
- func (c *Client) PutObject(ctx context.Context, bucketName, objectName string, reader io.Reader, ...) (n int64, err error)
- func (c *Client) PutObjectPart(ctx context.Context, bucket, object, uploadID string, partID int, ...) (models.MultipartObjectPart, error)
- func (c *Client) RemoveBucket(ctx context.Context, bucketName string) error
- func (c *Client) RemoveObject(ctx context.Context, bucketName, objectName string) error
- func (c *Client) StatObject(ctx context.Context, bucketName, objectName string, opts models.ReadMeta) (models.ObjectInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an in-memory implementation of the nodes.StorageClient interface
func (*Client) AbortMultipartUpload ¶
func (*Client) CompleteMultipartUpload ¶
func (*Client) CopyObject ¶
func (*Client) CopyObjectMultipart ¶
func (*Client) CopyObjectMultipartThreshold ¶
func (*Client) ListBuckets ¶
func (*Client) ListMultipartUploads ¶
func (*Client) ListObjectParts ¶
func (*Client) ListObjects ¶
func (*Client) MakeBucket ¶
func (*Client) NewMultipartUpload ¶
func (*Client) PutObjectPart ¶
func (*Client) RemoveBucket ¶
func (*Client) RemoveObject ¶
Click to show internal directories.
Click to hide internal directories.