s3

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 13 Imported by: 3 modules, 2 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

View Source
const Name = "object"

Variables

This section is empty.

Functions

func IsNotExist added in v1.4.0

func IsNotExist(err error) bool

Types

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 WithPrefix added in v1.8.0

func WithPrefix(prefix string) ConfigOption

func WithRegion added in v1.1.0

func WithRegion(region string) ConfigOption

func WithStorageClass added in v1.1.0

func WithStorageClass(storageClass string) ConfigOption

type Service added in v1.7.1

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

func New

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

func (Service) Close added in v1.8.1

func (s Service) Close() error

func (Service) ConvertError added in v1.7.1

func (s Service) ConvertError(err error) error

func (Service) Enabled added in v1.7.1

func (s Service) Enabled() bool

func (Service) List added in v1.7.1

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

func (Service) Mkdir added in v1.7.1

func (s Service) Mkdir(ctx context.Context, pathname string) error

func (Service) Name added in v1.7.1

func (s Service) Name() string

func (Service) Path added in v1.7.1

func (s Service) Path(name string) string

func (Service) ReadFrom added in v1.7.1

func (s Service) ReadFrom(ctx context.Context, pathname string) (model.ReadAtSeekCloser, error)

func (Service) RemoveAll added in v1.7.1

func (s Service) RemoveAll(ctx context.Context, pathname string) error

func (Service) Rename added in v1.7.1

func (s Service) Rename(ctx context.Context, oldName, newName string) error

func (Service) Stat added in v1.7.1

func (s Service) Stat(ctx context.Context, pathname string) (model.Item, error)

func (Service) UpdateDate added in v1.7.1

func (s Service) UpdateDate(_ context.Context, pathname string, _ time.Time) error

func (Service) Walk added in v1.7.1

func (s Service) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error

func (Service) WithIgnoreFn added in v1.7.1

func (s Service) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage

func (Service) WriteTo added in v1.7.1

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

Jump to

Keyboard shortcuts

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