update deps
This commit is contained in:
@@ -11,7 +11,8 @@ import (
|
||||
|
||||
"github.com/minio/minio-go/v7"
|
||||
"github.com/minio/minio-go/v7/pkg/credentials"
|
||||
"github.com/tenrok/filestore/remote"
|
||||
|
||||
"filestore/remote"
|
||||
)
|
||||
|
||||
const defaultFileMode = 0o755
|
||||
|
||||
+7
-6
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"sync"
|
||||
)
|
||||
|
||||
@@ -14,13 +15,13 @@ var (
|
||||
|
||||
type Storage interface {
|
||||
NewStorage(ctx context.Context, connString string) (Storage, error)
|
||||
// Create(name string) (http.File, error)
|
||||
Create(name string) (http.File, error)
|
||||
Open(name string) (http.File, error)
|
||||
// OpenFile(name string, flag int, fileMode os.FileMode) (http.File, error)
|
||||
// Remove(name string) error
|
||||
// RemoveAll(path string) error
|
||||
// Rename(oldName, newName string) error
|
||||
// Stat(name string) (os.FileInfo, error)
|
||||
OpenFile(name string, flag int, fileMode os.FileMode) (http.File, error)
|
||||
Remove(name string) error
|
||||
RemoveAll(path string) error
|
||||
Rename(oldName, newName string) error
|
||||
Stat(name string) (os.FileInfo, error)
|
||||
}
|
||||
|
||||
// NewStorage returns a new remote storage instance.
|
||||
|
||||
Reference in New Issue
Block a user