mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix error logs and improve some comments/messages (#35105)
This commit is contained in:
@@ -59,8 +59,12 @@ type Object interface {
|
||||
// ObjectStorage represents an object storage to handle a bucket and files
|
||||
type ObjectStorage interface {
|
||||
Open(path string) (Object, error)
|
||||
// Save store a object, if size is unknown set -1
|
||||
|
||||
// Save store an object, if size is unknown set -1
|
||||
// NOTICE: Some storage SDK will close the Reader after saving if it is also a Closer,
|
||||
// DO NOT use the reader anymore after Save, or wrap it to a non-Closer reader.
|
||||
Save(path string, r io.Reader, size int64) (int64, error)
|
||||
|
||||
Stat(path string) (os.FileInfo, error)
|
||||
Delete(path string) error
|
||||
URL(path, name, method string, reqParams url.Values) (*url.URL, error)
|
||||
|
Reference in New Issue
Block a user