local

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package local provides filesystem object storage for development and single-node deployments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func New

func New(root string) (*Backend, error)

func (*Backend) Delete

func (backend *Backend) Delete(ctx context.Context, key string) error

func (*Backend) List

func (backend *Backend) List(ctx context.Context, list storage.ListRequest) (storage.ListPage, error)

func (*Backend) Open

func (backend *Backend) Open(_ context.Context, key string) (io.ReadCloser, storage.Object, error)

func (*Backend) Ping

func (backend *Backend) Ping(ctx context.Context) (result error)

Ping verifies that the configured storage root accepts a durable probe write. The private probe is always removed before Ping returns.

func (*Backend) Put

func (backend *Backend) Put(ctx context.Context, key string, source io.Reader, size int64, _ string) (result error)

Jump to

Keyboard shortcuts

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