Documentation
¶
Index ¶
- func Download(raw json.RawMessage, conn Conn) (interface{}, error)
- func List(raw json.RawMessage) (interface{}, error)
- func Mkdir(raw json.RawMessage) (interface{}, error)
- func Read(raw json.RawMessage, conn Conn) (interface{}, error)
- func Remove(raw json.RawMessage) (interface{}, error)
- func Rename(raw json.RawMessage) (interface{}, error)
- func Stat(raw json.RawMessage) (interface{}, error)
- func Upload(raw json.RawMessage, conn Conn) (interface{}, error)
- func Write(raw json.RawMessage, conn Conn) (interface{}, error)
- type Conn
- type FileInfo
- type MkdirParams
- type PathParams
- type RemoveParams
- type RenameParams
- type WriteParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(raw json.RawMessage, conn Conn) (interface{}, error)
Download creates a tar archive of the given path and sends it as a binary frame.
func Read ¶
func Read(raw json.RawMessage, conn Conn) (interface{}, error)
Read reads a file and sends its content as binary frame(s) followed by a JSON result. Files larger than the chunk threshold are sent as multiple binary frames.
func Remove ¶
func Remove(raw json.RawMessage) (interface{}, error)
Remove removes a file or directory.
func Rename ¶
func Rename(raw json.RawMessage) (interface{}, error)
Rename renames a file or directory.
Types ¶
type Conn ¶
type Conn = io.ReadWriter
Conn is an alias for io.ReadWriter used by handlers that need binary frame I/O.
type FileInfo ¶
type FileInfo struct {
Name string `json:"name"`
Size int64 `json:"size"`
IsDir bool `json:"is_dir"`
Mode uint32 `json:"mode"`
ModTime time.Time `json:"mod_time"`
}
FileInfo is a serializable file info entry.
type MkdirParams ¶
MkdirParams is the params for fs.mkdir.
type PathParams ¶
type PathParams struct {
Path string `json:"path"`
}
PathParams is shared params with a path field.
type RemoveParams ¶
RemoveParams is the params for fs.remove.
type RenameParams ¶
RenameParams is the params for fs.rename.
Click to show internal directories.
Click to hide internal directories.