Add structs for listing files
This commit is contained in:
parent
38db0c030d
commit
270d4c5da4
27
structs.go
27
structs.go
|
@ -12,12 +12,39 @@ type Client 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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue