Documentation ¶
Overview ¶
Package afs provides an abstract file system, that can be used to write data to the backing store.
Index ¶
- type Entry
- type File
- type FileSystem
- func (fs *FileSystem) Destroy() error
- func (fs *FileSystem) Finalize() (string, error)
- func (fs *FileSystem) List(name string) ([]Entry, error)
- func (fs *FileSystem) Mkdir(name string) error
- func (fs *FileSystem) Open(name string) (*File, error)
- func (fs *FileSystem) Remove(name string) error
- func (fs *FileSystem) Rename(from, to string) error
- func (fs *FileSystem) Rmdir(name string) error
- func (fs *FileSystem) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(dir, u string) (*FileSystem, error)
func (*FileSystem) Destroy ¶
func (fs *FileSystem) Destroy() error
func (*FileSystem) Finalize ¶
func (fs *FileSystem) Finalize() (string, error)
func (*FileSystem) Mkdir ¶
func (fs *FileSystem) Mkdir(name string) error
func (*FileSystem) Remove ¶
func (fs *FileSystem) Remove(name string) error
func (*FileSystem) Rename ¶
func (fs *FileSystem) Rename(from, to string) error
func (*FileSystem) Rmdir ¶
func (fs *FileSystem) Rmdir(name string) error
Click to show internal directories.
Click to hide internal directories.