2018-12-15 02:13:19 +00:00
|
|
|
package filesystem
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
type FileSystem interface {
|
|
|
|
Mount(root, path string) error
|
|
|
|
List() ([]string, error)
|
|
|
|
Open(path string) (io.ReadSeeker, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
func New() FileSystem {
|
|
|
|
return new(filesystem)
|
|
|
|
}
|
|
|
|
|
|
|
|
type filesystem struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fs *filesystem) Mount(root, path string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fs *filesystem) List() ([]string, error) {
|
2018-12-16 01:43:13 +00:00
|
|
|
return nil, nil
|
2018-12-15 02:13:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (fs *filesystem) Open(path string) (io.ReadSeeker, error) {
|
2018-12-16 01:43:13 +00:00
|
|
|
return nil, nil
|
2018-12-15 02:13:19 +00:00
|
|
|
}
|