blobstorage

package
v0.0.0-...-f44e450 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStorage

type BlobStorage interface {
	io.Closer

	Get(ctx context.Context, key []byte) ([]byte, error)
	Replace(ctx context.Context, key []byte, blob []byte) error
	Delete(ctx context.Context, key []byte) error
}

func New

func New(urlString string) (BlobStorage, error)

type FS

type FS struct {
	RootDir string
}

FS is a dummy implementation of ObjectStorage.

func (*FS) Close

func (fs *FS) Close() error

func (*FS) Delete

func (fs *FS) Delete(ctx context.Context, key []byte) error

func (*FS) Get

func (fs *FS) Get(ctx context.Context, key []byte) ([]byte, error)

func (*FS) Replace

func (fs *FS) Replace(ctx context.Context, key []byte, blob []byte) error

Jump to

Keyboard shortcuts

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