Documentation
¶
Index ¶
- Constants
- type DirEntry
- type EntryType
- type Fula
- func (f *Fula) AddBox(boxAddr string) error
- func (f *Fula) Delete(userDID string, path string) error
- func (f *Fula) GetBox() (peer.ID, error)
- func (f *Fula) Ls(userDID string, path string) ([]DirEntry, error)
- func (f *Fula) MkDir(userDID string, path string) error
- func (f *Fula) NewStream() (network.Stream, error)
- func (f *Fula) Read(userDID string, filePath string, destPath string) error
- func (f *Fula) Write(userDID string, srcPath string, destPath string) error
- type IFula
Constants ¶
View Source
const ( STORE_PATH = "storePath" //I will cheet until i can add threadsafe datastore MY_BOX = "/mybox/cheat" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fula ¶
type Fula struct {
Node rhost.RoutedHost
// contains filtered or unexported fields
}
func (*Fula) Delete ¶ added in v0.4.7
Deletes an entry in a path on a user's drive Calls a RequestDelete on the file protocol
func (*Fula) Ls ¶ added in v0.4.7
Lists entries in a path on a user's drive Calls a RequestLs on the file protocol
func (*Fula) MkDir ¶ added in v0.4.7
Makes a new directory on user's drive Calls a RequsetMkDir on the file protocol
Click to show internal directories.
Click to hide internal directories.