storage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package storage abstracts where encrypted blobs live remotely (folder, S3/R2, SyncMyEnv server, WebDAV...).

Implementations only ever see ciphertext and opaque IDs — never paths, project names or plaintext.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("storage: blob not found")

ErrNotFound is returned when a blob does not exist.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Put(ctx context.Context, id string, r io.Reader) error
	Get(ctx context.Context, id string) (io.ReadCloser, error)
	Delete(ctx context.Context, id string) error
	List(ctx context.Context, prefix string) ([]string, error)
}

Backend is a content-addressed store for encrypted blobs.

Jump to

Keyboard shortcuts

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