added fs encryption overlay
This commit is contained in:
parent
2039086696
commit
fd1e8118a4
28 changed files with 3994 additions and 30 deletions
|
|
@ -4,6 +4,7 @@ package provider
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"io/fs"
|
||||
"os"
|
||||
)
|
||||
|
|
@ -34,16 +35,17 @@ func WalkFS(fs FS) fs.FS {
|
|||
}
|
||||
|
||||
type File interface {
|
||||
io.Reader
|
||||
io.ReaderAt
|
||||
io.Writer
|
||||
io.WriterAt
|
||||
io.Seeker
|
||||
io.Closer
|
||||
Name() string
|
||||
Stat() (fs.FileInfo, error)
|
||||
Truncate(int64) error
|
||||
Sync() error
|
||||
Fd() uintptr
|
||||
ReadDir(int) ([]fs.DirEntry, error)
|
||||
Read([]byte) (int, error)
|
||||
ReadAt([]byte, int64) (int, error)
|
||||
WriteAt([]byte, int64) (int, error)
|
||||
Seek(int64, int) (int64, error)
|
||||
Readdir(int) ([]fs.FileInfo, error)
|
||||
Close() error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue