s3

package
v0.371.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client for S3.

func NewClient

func NewClient(ctx context.Context, c config.S3Config) (*Client, error)

NewClient returns a new S3 client.

func (*Client) Download

func (c *Client) Download(ctx context.Context, w io.WriterAt, key string) error

Download uses a download manager to download an object from a bucket. The download manager gets the data in parts and writes them to a buffer until all of the data has been downloaded.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL