s3 support

This commit is contained in:
onysd 2026-08-04 23:09:11 +03:00
parent fa5cfaf14d
commit 03f10b66ee
53 changed files with 2796 additions and 102 deletions

View file

@ -168,6 +168,16 @@ func (f *fakeMediaStore) GetFileBlobs(_ context.Context, keys []string) (map[str
return out, nil
}
func (f *fakeMediaStore) SumFileBlobBytes(_ context.Context) (int64, error) {
f.mu.Lock()
defer f.mu.Unlock()
var total int64
for _, b := range f.blobs {
total += b.Size
}
return total, nil
}
func (f *fakeMediaStore) GetSeedState(_ context.Context, key string) (string, bool, error) {
f.mu.Lock()
defer f.mu.Unlock()