s3

package
v0.61.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

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,
	maxRetryAttempts int,
) (*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