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.
Click to show internal directories.
Click to hide internal directories.