s3

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 13 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[T stream.Thing] struct {
	// contains filtered or unexported fields
}

func New

func New[T stream.Thing](connector string, opts ...stream.Option) (*Storage[T], error)

func (*Storage[T]) Copy added in v0.9.0

func (db *Storage[T]) Copy(ctx context.Context, source T, target T) error

func (*Storage[T]) Get

func (db *Storage[T]) Get(ctx context.Context, key T) (T, io.ReadCloser, error)

Get item from storage

func (*Storage[T]) Has

func (db *Storage[T]) Has(ctx context.Context, key T) (T, error)

Has

func (*Storage[T]) Match

func (db *Storage[T]) Match(ctx context.Context, key T, opts ...interface{ MatchOpt() }) ([]T, error)

Match

func (*Storage[T]) Put

func (db *Storage[T]) Put(ctx context.Context, entity T, val io.Reader) error

Put

func (*Storage[T]) Remove

func (db *Storage[T]) Remove(ctx context.Context, key T) (T, error)

Remove

func (*Storage[T]) Wait added in v0.9.0

func (db *Storage[T]) Wait(ctx context.Context, key T, timeout time.Duration) error

Jump to

Keyboard shortcuts

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