Add structs for listing files
This commit is contained in:
parent
f61787a1ba
commit
50ae8f7138
|
@ -29,14 +29,42 @@ type ClientBasicInfo struct {
|
|||
|
||||
type Instructions struct {
|
||||
IsHeartbeat bool
|
||||
|
||||
IsCommand bool
|
||||
|
||||
IsKillswitch bool
|
||||
|
||||
// IsDownload bool
|
||||
// IsUpload bool
|
||||
// FileName string
|
||||
// FileContents []byte
|
||||
|
||||
IsListFiles bool
|
||||
Path string
|
||||
|
||||
Message string
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Successful bool
|
||||
Message string
|
||||
|
||||
// IsUpload bool
|
||||
// FileName string
|
||||
// FileContents []byte
|
||||
|
||||
IsListFiles bool
|
||||
FileList
|
||||
}
|
||||
|
||||
type FileList struct {
|
||||
File []Item
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
Name string
|
||||
FullPath string
|
||||
IsFolder bool
|
||||
}
|
||||
|
||||
type Bulk struct {
|
||||
|
|
Loading…
Reference in New Issue