s3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 10 Imported by: 0

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.Stream] struct {
	*s3ts.Store[T]
	// contains filtered or unexported fields
}

func New

func New[T stream.Stream](opts ...Option) (*Storage[T], error)

New client instance

func (*Storage[T]) Get

func (db *Storage[T]) Get(ctx context.Context, key T, opts ...interface{ GetterOpt(T) }) (T, io.ReadCloser, error)

Get stream and its metadata from store

func (*Storage[T]) Put

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

Put stream into store

Jump to

Keyboard shortcuts

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