|
|
|
@ -26,6 +26,9 @@ type MakeBucketArgs struct { |
|
|
|
|
// DiskInfoArgs - disk info args.
|
|
|
|
|
type DiskInfoArgs struct{} |
|
|
|
|
|
|
|
|
|
// ServerInfoArgs - server info args.
|
|
|
|
|
type ServerInfoArgs struct{} |
|
|
|
|
|
|
|
|
|
// ListBucketsArgs - list bucket args.
|
|
|
|
|
type ListBucketsArgs struct{} |
|
|
|
|
|
|
|
|
@ -35,6 +38,20 @@ type ListObjectsArgs struct { |
|
|
|
|
Prefix string `json:"prefix"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// PutObjectURLArgs - args to generate url for upload access.
|
|
|
|
|
type PutObjectURLArgs struct { |
|
|
|
|
TargetHost string `json:"targetHost"` |
|
|
|
|
BucketName string `json:"bucketName"` |
|
|
|
|
ObjectName string `json:"objectName"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetObjectURLArgs - args to generate url for download access.
|
|
|
|
|
type GetObjectURLArgs struct { |
|
|
|
|
TargetHost string `json:"targetHost"` |
|
|
|
|
BucketName string `json:"bucketName"` |
|
|
|
|
ObjectName string `json:"objectName"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// BucketInfo container for list buckets metadata.
|
|
|
|
|
type BucketInfo struct { |
|
|
|
|
// The name of the bucket.
|
|
|
|
@ -55,27 +72,21 @@ type ObjectInfo struct { |
|
|
|
|
ContentType string `json:"contentType"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// PutObjectURLArgs - args to generate url for upload access.
|
|
|
|
|
type PutObjectURLArgs struct { |
|
|
|
|
TargetHost string `json:"targetHost"` |
|
|
|
|
BucketName string `json:"bucketName"` |
|
|
|
|
ObjectName string `json:"objectName"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetObjectURLArgs - args to generate url for download access.
|
|
|
|
|
type GetObjectURLArgs struct { |
|
|
|
|
TargetHost string `json:"targetHost"` |
|
|
|
|
BucketName string `json:"bucketName"` |
|
|
|
|
ObjectName string `json:"objectName"` |
|
|
|
|
// LoginArgs - login arguments.
|
|
|
|
|
type LoginArgs struct { |
|
|
|
|
Username string `json:"username" form:"username"` |
|
|
|
|
Password string `json:"password" form:"password"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// AuthToken - auth token reply
|
|
|
|
|
// AuthToken - auth token reply.
|
|
|
|
|
type AuthToken struct { |
|
|
|
|
Token string `json:"token" form:"token"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// LoginArgs - login arguments.
|
|
|
|
|
type LoginArgs struct { |
|
|
|
|
Username string `json:"username" form:"username"` |
|
|
|
|
Password string `json:"password" form:"password"` |
|
|
|
|
// ServerInfo - server info reply.
|
|
|
|
|
type ServerInfo struct { |
|
|
|
|
MinioVersion string |
|
|
|
|
MinioMemory string |
|
|
|
|
MinioPlatform string |
|
|
|
|
MinioRuntime string |
|
|
|
|
} |
|
|
|
|