memory

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryBackend

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

func NewMemoryBackend

func NewMemoryBackend(ctx context.Context, conf MemoryBackendConfig) *MemoryBackend

func (*MemoryBackend) Close

func (be *MemoryBackend) Close() error

func (*MemoryBackend) Delete

func (be *MemoryBackend) Delete(ctx context.Context, u *url.URL) error

func (*MemoryBackend) ListPrefix

func (be *MemoryBackend) ListPrefix(ctx context.Context, u *url.URL, optFunc ...types.ListOption) ([]*types.Object, error)

func (*MemoryBackend) ReadMetadata

func (be *MemoryBackend) ReadMetadata(ctx context.Context, u *url.URL) (*types.ObjectMetadata, error)

func (*MemoryBackend) Reader

func (be *MemoryBackend) Reader(ctx context.Context, u *url.URL) (types.Reader, error)

func (*MemoryBackend) ReaderAt

func (be *MemoryBackend) ReaderAt(ctx context.Context, u *url.URL) (types.ReaderAt, error)

func (*MemoryBackend) Writer

func (be *MemoryBackend) Writer(ctx context.Context, u *url.URL) (types.Writer, error)

type MemoryBackendConfig

type MemoryBackendConfig struct{}

Jump to

Keyboard shortcuts

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