s3

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 19 Imported by: ? modules, 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

This section is empty.

Types

type S3Backend

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

func NewS3Backend

func NewS3Backend(ctx context.Context, conf S3BackendConfig) (*S3Backend, error)

func (*S3Backend) Close

func (be *S3Backend) Close() error

func (*S3Backend) Delete

func (be *S3Backend) Delete(ctx context.Context, u *url.URL) error

func (*S3Backend) ListPrefix

func (be *S3Backend) ListPrefix(ctx context.Context, u *url.URL, optFunc ...types.ListOption) ([]*types.Object, error)

func (*S3Backend) ReadMetadata

func (be *S3Backend) ReadMetadata(ctx context.Context, u *url.URL) (*types.ObjectMetadata, error)

func (*S3Backend) Reader

func (be *S3Backend) Reader(ctx context.Context, u *url.URL) (types.Reader, error)

func (*S3Backend) ReaderAt

func (be *S3Backend) ReaderAt(ctx context.Context, u *url.URL) (types.ReaderAt, error)

func (*S3Backend) Writer

func (be *S3Backend) Writer(ctx context.Context, u *url.URL) (types.Writer, error)

type S3BackendConfig

type S3BackendConfig struct {
	AccessKeyId         string
	SecretAccessKey     string
	SessionToken        string
	Endpoint            string
	Region              string
	DisableSsl          bool
	ForcePathStyle      bool
	UploadPartSize      int
	UploadConcurrency   int
	UploadMaxParts      int
	DownloadPartSize    int
	DownloadConcurrency int
	EnableAwsSdkLogging bool
	AwsSdkLogLevel      string
}

Jump to

Keyboard shortcuts

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