mirror of
https://github.com/khairul169/garage-webui.git
synced 2026-09-15 00:43:21 +07:00
feat: add bucket object browser
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package schema
|
||||
|
||||
import "time"
|
||||
|
||||
type BrowseObjectResult struct {
|
||||
Prefixes []string `json:"prefixes"`
|
||||
Objects []BrowserObject `json:"objects"`
|
||||
Prefix string `json:"prefix"`
|
||||
NextToken *string `json:"nextToken"`
|
||||
}
|
||||
|
||||
type BrowserObject struct {
|
||||
ObjectKey *string `json:"objectKey"`
|
||||
LastModified *time.Time `json:"lastModified"`
|
||||
Size *int64 `json:"size"`
|
||||
}
|
||||
@@ -26,6 +26,7 @@ type KeyElement struct {
|
||||
Name string `json:"name"`
|
||||
Permissions Permissions `json:"permissions"`
|
||||
BucketLocalAliases []interface{} `json:"bucketLocalAliases"`
|
||||
SecretAccessKey string `json:"secretAccessKey"`
|
||||
}
|
||||
|
||||
type Permissions struct {
|
||||
|
||||
Reference in New Issue
Block a user