Documentation
¶
Index ¶
- func IsComposeUnsupported(err error) bool
- func IsNoSuchKey(err error) bool
- type Client
- type Config
- type ErrS3Operation
- type Object
- type S3Client
- func (c *S3Client) Compose(ctx context.Context, key string, parts []s3lib.CopyPart) (string, error)
- func (c *S3Client) Delete(ctx context.Context, key string) error
- func (c *S3Client) Download(ctx context.Context, key string) ([]byte, error)
- func (c *S3Client) DownloadRange(ctx context.Context, key, etag string, offset, size int64) ([]byte, error)
- func (c *S3Client) List(ctx context.Context, prefix string) iter.Seq2[Object, error]
- func (c *S3Client) Stat(ctx context.Context, key string) (Object, error)
- func (c *S3Client) Upload(ctx context.Context, key string, data []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsComposeUnsupported ¶ added in v0.2.0
func IsNoSuchKey ¶
Types ¶
type Client ¶
type Client interface {
Upload(context.Context, string, []byte) (string, error)
Download(context.Context, string) ([]byte, error)
DownloadRange(context.Context, string, string, int64, int64) ([]byte, error)
List(context.Context, string) iter.Seq2[Object, error]
Stat(context.Context, string) (Object, error)
Delete(context.Context, string) error
Compose(context.Context, string, []s3lib.CopyPart) (string, error)
}
type ErrS3Operation ¶
func (ErrS3Operation) Error ¶
func (e ErrS3Operation) Error() string
func (ErrS3Operation) Unwrap ¶
func (e ErrS3Operation) Unwrap() error
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
func (*S3Client) DownloadRange ¶
Click to show internal directories.
Click to hide internal directories.