s3url

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.11.0

type Option func(*Options)

Option type to configure the connection

func WithBucket added in v0.11.0

func WithBucket(bucket string) Option

WithBucket defined bucket for I/O

func WithPrefixes added in v0.11.0

func WithPrefixes(prefixes curie.Prefixes) Option

WithPrefixes defines prefixes for CURIEs

func WithS3 added in v0.11.0

func WithS3(service *s3.Client) Option

Configure AWS Service for broker instance

type Options added in v0.11.1

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

Generic Config Options

type Storage

type Storage[T stream.Thing] struct {
	// contains filtered or unexported fields
}

func New

func New[T stream.Thing](opts ...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, entity T, opts ...interface{ GetterOpt(T) }) (string, error)

Get

func (*Storage[T]) Has

func (db *Storage[T]) Has(ctx context.Context, entity T, opts ...interface{ GetterOpt(T) }) (T, error)

Has

func (*Storage[T]) Match

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

Match

func (*Storage[T]) Put

func (db *Storage[T]) Put(ctx context.Context, entity T, opts ...interface{ WriterOpt(T) }) (string, error)

Put

func (*Storage[T]) Remove

func (db *Storage[T]) Remove(ctx context.Context, entity T, opts ...interface{ WriterOpt(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