package
Version:
v0.0.0-...-bf201e6
Opens a new window with list of versions in this module.
Published: Dec 21, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AddBlockReq struct {
Handle int64 `json:"handle,omitempty" url:"handle,omitempty"`
Data string `json:"data,omitempty" url:"data,omitempty"`
}
type CloseReq struct {
Handle int64 `json:"handle,omitempty" url:"handle,omitempty"`
}
type CreateReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
Overwrite bool `json:"overwrite,omitempty" url:"overwrite,omitempty"`
}
type CreateResp struct {
Handle int64 `json:"handle,omitempty" url:"handle,omitempty"`
}
type DeleteReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
Recursive bool `json:"recursive,omitempty" url:"recursive,omitempty"`
}
type GetStatusReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
}
type GetStatusResp struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
IsDir bool `json:"is_dir,omitempty" url:"is_dir,omitempty"`
FileSize int64 `json:"file_size,omitempty" url:"file_size,omitempty"`
ModificationTime int64 `json:"modification_time,omitempty" url:"modification_time,omitempty"`
}
type ListReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
}
type ListResp struct {
Files *[]models.FileInfo `json:"files,omitempty" url:"files,omitempty"`
}
type MkdirsReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
}
type MoveReq struct {
SourcePath string `json:"source_path,omitempty" url:"source_path,omitempty"`
DestinationPath string `json:"destination_path,omitempty" url:"destination_path,omitempty"`
}
type PutReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
Contents string `json:"contents,omitempty" url:"contents,omitempty"`
Overwrite bool `json:"overwrite,omitempty" url:"overwrite,omitempty"`
}
type ReadReq struct {
Path string `json:"path,omitempty" url:"path,omitempty"`
Offset int64 `json:"offset,omitempty" url:"offset,omitempty"`
Length int64 `json:"length,omitempty" url:"length,omitempty"`
}
type ReadResp struct {
BytesRead int64 `json:"bytes_read,omitempty" url:"bytes_read,omitempty"`
Data string `json:"data,omitempty" url:"data,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.