feat(storage): add private file layer and isolate SeaweedFS on a storage network

This commit is contained in:
shira committed 2026-10-06 13:51:53 +03:00
1 parent f5b07e8f4d
commit 8378ad45b0
22 files changed
+1668 -40

No files matched your search

@@ -22,8 +22,10 @@ type Object struct {
type ObjectStorage interface {
// Put streams exactly size bytes. The caller owns the source reader and must
// ensure a blocking source can be canceled. An error may leave a completed
// object when the server accepted the write before the response was lost.
// ensure a blocking source can be canceled. Adapters bound connection setup
// and the wait for a response, not the body transfer: the caller's context
// governs Put and the Get body. An error may leave a completed object when
// the server accepted the write before the response was lost.
Put(ctx context.Context, key string, body io.Reader, size int64, contentType string) error
Get(ctx context.Context, key string) (Object, error)
// Delete succeeds when the object is already absent.