s3

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 19 Imported by: 0

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