20 lines
437 B
Go
20 lines
437 B
Go
package main
|
|||
|
|
|
||
|
|
type CloudS3 struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
Region string `json:"region"`
|
||
|
|
Bucket string `json:"bucket"`
|
||
|
|
AccessKey string `json:"accesskey"`
|
||
|
|
SecretKey string `json:"secretekey"`
|
||
|
|
EndpointURL string `json:"endpoint_url"`
|
||
|
|
Folder *string `json:"folder"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type S3Item struct {
|
||
|
|
Key string
|
||
|
|
IsFolder bool
|
||
|
|
FolderName *string
|
||
|
|
Size *int64
|
||
|
|
LastModified *string
|
||
|
|
}
|