2018-12-14 18:13:19 -08: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-15 17:43:13 -08:00
|
|
|
return nil, nil
|
2018-12-14 18:13:19 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (fs *filesystem) Open(path string) (io.ReadSeeker, error) {
|
2018-12-15 17:43:13 -08:00
|
|
|
return nil, nil
|
2018-12-14 18:13:19 -08:00
|
|
|
}
|