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