s3

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const Name = "s3"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(endpoint, accessKey, secretAccess, bucket string, useSSL bool, partSize uint64, options ...ConfigOption) (App, error)

func (App) ConvertError added in v0.3.4

func (a App) ConvertError(err error) error

func (App) CreateDir

func (a App) CreateDir(ctx context.Context, name string) error

func (App) Enabled

func (a App) Enabled() bool

func (App) Info

func (a App) Info(ctx context.Context, pathname string) (model.Item, error)

func (App) List

func (a App) List(ctx context.Context, pathname string) ([]model.Item, error)

func (App) Name added in v0.0.3

func (a App) Name() string

func (App) Path added in v0.0.3

func (a App) Path(pathname string) string

func (App) ReadFrom added in v0.1.0

func (a App) ReadFrom(ctx context.Context, pathname string) (io.ReadSeekCloser, error)

func (App) Remove

func (a App) Remove(ctx context.Context, pathname string) error

func (App) Rename

func (a App) Rename(ctx context.Context, oldName, newName string) error

func (App) UpdateDate

func (a App) UpdateDate(_ context.Context, _ string, _ time.Time) error

func (App) Walk

func (a App) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error

func (App) WithIgnoreFn

func (a App) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage

func (App) WriteTo added in v0.1.0

func (a App) WriteTo(ctx context.Context, pathname string, reader io.Reader, opts model.WriteOpts) error

type Config added in v1.1.0

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

type ConfigOption added in v1.1.0

type ConfigOption func(Config) Config

func WithRegion added in v1.1.0

func WithRegion(region string) ConfigOption

func WithStorageClass added in v1.1.0

func WithStorageClass(storageClass string) ConfigOption

Jump to

Keyboard shortcuts

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