object storage supports webdav

This commit is contained in:
MaysWind
2025-08-02 01:26:29 +08:00
parent cad53d0bfc
commit 29a87dcfaf
6 changed files with 438 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
package storage
import (
"bytes"
)
// bytesSliceObject represents a byte slice object in storage
type bytesSliceObject struct {
*bytes.Reader
}
// Close does nothing because it does not hold any resources that need to be released
func (b *bytesSliceObject) Close() error {
return nil
}
// newByteSliceObject creates a new byte slice object from the specified byte slice
func newByteSliceObject(data []byte) ObjectInStorage {
return &bytesSliceObject{
Reader: bytes.NewReader(data),
}
}