s3

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(ctx context.Context, c *Client, filename string) *reader

func NewUploader

func NewUploader(c *Client) *uploader

Types

type Client

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

Client is a wrapper around s3.Client that holds bucket name.

func NewClient

func NewClient(endpoint, accessKey, secretKey, region, bucket string) (*Client, error)

NewClient returns a new instance of a Client.

NOTE(dkharms): We might want to tweak smithy transport for

  • IdleConnTimeout;
  • MaxIdleConnsPerHost;

And maybe we should add tracing support as well.

func (*Client) Exists

func (c *Client) Exists(ctx context.Context, filename string) (bool, error)

func (*Client) MaxRetryAttempts added in v0.61.1

func (c *Client) MaxRetryAttempts() int

func (*Client) Remove

func (c *Client) Remove(ctx context.Context, filenames ...string) error

Jump to

Keyboard shortcuts

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