s3

package
v0.0.0-...-ca5b825 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Repository)

func WithBucket

func WithBucket(bucket string) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithForcePathStyle

func WithForcePathStyle(forcePathStyle bool) Option

func WithLogger

func WithLogger(l *zap.Logger) Option

func WithPrefix

func WithPrefix(prefix string) Option

func WithRegion

func WithRegion(region string) Option

type Repository

type Repository struct {
	Endpoint       string
	Region         string
	Bucket         string
	Prefix         string
	ForcePathStyle bool
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Repository

func (*Repository) Write

func (r *Repository) Write(ctx context.Context, key string, reader io.Reader) error

Jump to

Keyboard shortcuts

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