| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | sharedtui "github.com/stevedylandev/andromeda/pkg/tui" |
| 5 | ) |
| 6 | |
| 7 | type bucketsLoadedMsg struct { |
| 8 | Buckets []BucketInfo |
| 9 | Err error |
| 10 | } |
| 11 | |
| 12 | type listingLoadedMsg struct { |
| 13 | Bucket string |
| 14 | Prefix string |
| 15 | Folders []string |
| 16 | Files []ObjectInfo |
| 17 | Err error |
| 18 | } |
| 19 | |
| 20 | type previewLoadedMsg struct { |
| 21 | Seq int |
| 22 | Bucket string |
| 23 | Key string |
| 24 | Content string // pre-rendered ANSI (image) or text |
| 25 | Err error |
| 26 | } |
| 27 | |
| 28 | type previewDebounceMsg struct { |
| 29 | Seq int |
| 30 | Bucket string |
| 31 | Key string |
| 32 | W, H int |
| 33 | } |
| 34 | |
| 35 | type deletedMsg struct { |
| 36 | Key string |
| 37 | Err error |
| 38 | } |
| 39 | |
| 40 | type uploadedMsg struct { |
| 41 | Key string |
| 42 | URL string |
| 43 | Err error |
| 44 | } |
| 45 | |
| 46 | type ( |
| 47 | statusMsg = sharedtui.StatusMsg |
| 48 | clearStatusMsg = sharedtui.ClearStatusMsg |
| 49 | ) |