s3store

package
v0.0.0-...-98ef36f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint   string
	Region     string
	ID         string
	Secret     string
	Bucket     string
	TempBucket string
}

type Store

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

func New

func New(c Config) (*Store, error)

func (*Store) Add

func (s *Store) Add(ctx context.Context, oldChecksum string, b io.Reader) (string, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, checksum string) error

func (*Store) EachID

func (s *Store) EachID(ctx context.Context, fn func(string) bool) error

func (*Store) Exists

func (s *Store) Exists(ctx context.Context, checksum string) (bool, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, checksum string, b io.Writer) error

Jump to

Keyboard shortcuts

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