s3

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	AccessKeyId     string `mapstructure:"access_key_id"`
	SecretAccessKey string `mapstructure:"secret_access_key"`
	Bucket          string `mapstructure:"bucket"`
	Region          string `mapstructure:"region"`
	Endpoint        string `mapstructure:"endpoint"`
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(c map[string]any) (*Storage, error)

NewStorage returns a new initialized Storage

func (*Storage) Delete added in v1.0.7

func (s *Storage) Delete(path string) error

func (*Storage) Download

func (s *Storage) Download(path string, w io.WriterAt) error

func (*Storage) Upload

func (s *Storage) Upload(path string, r io.ReadSeeker) error

Jump to

Keyboard shortcuts

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