Help us shape the future of Go! Take the 2026 Go Developer Survey

object

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPartSize = 1024 * 1024 * 8

DefaultPartSize is the default part size for multipart uploads to S3. This is used only when the content size is unknown and is a low value for small VMs.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type Storer

type Storer interface {
	Exists(ctx context.Context, path string) (bool, error)
	Read(ctx context.Context, path string) (io.Reader, int64, error)
	Write(ctx context.Context, path string, w io.Reader, size int64) error
	Delete(ctx context.Context, path string) error
	List(ctx context.Context, prefix string) ([]string, error)
}

func NewLocalStorer

func NewLocalStorer(cfg config.Config) Storer

func NewS3Storer

func NewS3Storer(ctx context.Context, cfg config.Config) (Storer, error)

Jump to

Keyboard shortcuts

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