local

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithKey

func WithKey(key string) func(*Storage)

func WithPath

func WithPath(path string) func(*Storage)

Types

type Storage

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

func NewStorage

func NewStorage(options ...func(*Storage)) *Storage

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, r hash.Hash) (rc io.ReadCloser, err error)

func (*Storage) List

func (s *Storage) List(ctx context.Context) iter.Seq2[hash.Hash, error]

func (*Storage) Put

func (s *Storage) Put(ctx context.Context, r io.Reader) (ref hash.Hash, n int64, err error)

Jump to

Keyboard shortcuts

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