Documentation ¶
Overview ¶
Package service provides QingStor Service API (API Version 2016-01-06)
Index ¶
- func Bool(v bool) *bool
- func BoolMap(src map[string]bool) map[string]*bool
- func BoolSlice(src []bool) []*bool
- func BoolValue(v *bool) bool
- func BoolValueMap(src map[string]*bool) map[string]bool
- func BoolValueSlice(src []*bool) []bool
- func Int(v int) *int
- func IntMap(src map[string]int) map[string]*int
- func IntSlice(src []int) []*int
- func IntValue(v *int) int
- func IntValueMap(src map[string]*int) map[string]int
- func IntValueSlice(src []*int) []int
- func String(v string) *string
- func StringMap(src map[string]string) map[string]*string
- func StringSlice(src []string) []*string
- func StringValue(v *string) string
- func StringValueMap(src map[string]*string) map[string]string
- func StringValueSlice(src []*string) []string
- func Time(v time.Time) *time.Time
- func TimeMap(src map[string]time.Time) map[string]*time.Time
- func TimeSlice(src []time.Time) []*time.Time
- func TimeUnixMilli(t time.Time) int64
- func TimeValue(v *time.Time) time.Time
- func TimeValueMap(src map[string]*time.Time) map[string]time.Time
- func TimeValueSlice(src []*time.Time) []time.Time
- type ACLType
- type AbortMultipartUploadInput
- type AbortMultipartUploadOutput
- type Bucket
- func (s *Bucket) AbortMultipartUpload(objectKey string, input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error)
- func (s *Bucket) AbortMultipartUploadRequest(objectKey string, input *AbortMultipartUploadInput) (*request.Request, *AbortMultipartUploadOutput, error)
- func (s *Bucket) CompleteMultipartUpload(objectKey string, input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error)
- func (s *Bucket) CompleteMultipartUploadRequest(objectKey string, input *CompleteMultipartUploadInput) (*request.Request, *CompleteMultipartUploadOutput, error)
- func (s *Bucket) Delete() (*DeleteBucketOutput, error)
- func (s *Bucket) DeleteCORS() (*DeleteBucketCORSOutput, error)
- func (s *Bucket) DeleteCORSRequest() (*request.Request, *DeleteBucketCORSOutput, error)
- func (s *Bucket) DeleteExternalMirror() (*DeleteBucketExternalMirrorOutput, error)
- func (s *Bucket) DeleteExternalMirrorRequest() (*request.Request, *DeleteBucketExternalMirrorOutput, error)
- func (s *Bucket) DeleteMultipleObjects(input *DeleteMultipleObjectsInput) (*DeleteMultipleObjectsOutput, error)
- func (s *Bucket) DeleteMultipleObjectsRequest(input *DeleteMultipleObjectsInput) (*request.Request, *DeleteMultipleObjectsOutput, error)
- func (s *Bucket) DeleteObject(objectKey string) (*DeleteObjectOutput, error)
- func (s *Bucket) DeleteObjectRequest(objectKey string) (*request.Request, *DeleteObjectOutput, error)
- func (s *Bucket) DeletePolicy() (*DeleteBucketPolicyOutput, error)
- func (s *Bucket) DeletePolicyRequest() (*request.Request, *DeleteBucketPolicyOutput, error)
- func (s *Bucket) DeleteRequest() (*request.Request, *DeleteBucketOutput, error)
- func (s *Bucket) GetACL() (*GetBucketACLOutput, error)
- func (s *Bucket) GetACLRequest() (*request.Request, *GetBucketACLOutput, error)
- func (s *Bucket) GetCORS() (*GetBucketCORSOutput, error)
- func (s *Bucket) GetCORSRequest() (*request.Request, *GetBucketCORSOutput, error)
- func (s *Bucket) GetExternalMirror() (*GetBucketExternalMirrorOutput, error)
- func (s *Bucket) GetExternalMirrorRequest() (*request.Request, *GetBucketExternalMirrorOutput, error)
- func (s *Bucket) GetObject(objectKey string, input *GetObjectInput) (*GetObjectOutput, error)
- func (s *Bucket) GetObjectRequest(objectKey string, input *GetObjectInput) (*request.Request, *GetObjectOutput, error)
- func (s *Bucket) GetPolicy() (*GetBucketPolicyOutput, error)
- func (s *Bucket) GetPolicyRequest() (*request.Request, *GetBucketPolicyOutput, error)
- func (s *Bucket) GetStatistics() (*GetBucketStatisticsOutput, error)
- func (s *Bucket) GetStatisticsRequest() (*request.Request, *GetBucketStatisticsOutput, error)
- func (s *Bucket) Head() (*HeadBucketOutput, error)
- func (s *Bucket) HeadObject(objectKey string, input *HeadObjectInput) (*HeadObjectOutput, error)
- func (s *Bucket) HeadObjectRequest(objectKey string, input *HeadObjectInput) (*request.Request, *HeadObjectOutput, error)
- func (s *Bucket) HeadRequest() (*request.Request, *HeadBucketOutput, error)
- func (s *Bucket) InitiateMultipartUpload(objectKey string, input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error)
- func (s *Bucket) InitiateMultipartUploadRequest(objectKey string, input *InitiateMultipartUploadInput) (*request.Request, *InitiateMultipartUploadOutput, error)
- func (s *Bucket) ListMultipart(objectKey string, input *ListMultipartInput) (*ListMultipartOutput, error)
- func (s *Bucket) ListMultipartRequest(objectKey string, input *ListMultipartInput) (*request.Request, *ListMultipartOutput, error)
- func (s *Bucket) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error)
- func (s *Bucket) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (*request.Request, *ListMultipartUploadsOutput, error)
- func (s *Bucket) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error)
- func (s *Bucket) ListObjectsRequest(input *ListObjectsInput) (*request.Request, *ListObjectsOutput, error)
- func (s *Bucket) OptionsObject(objectKey string, input *OptionsObjectInput) (*OptionsObjectOutput, error)
- func (s *Bucket) OptionsObjectRequest(objectKey string, input *OptionsObjectInput) (*request.Request, *OptionsObjectOutput, error)
- func (s *Bucket) Put() (*PutBucketOutput, error)
- func (s *Bucket) PutACL(input *PutBucketACLInput) (*PutBucketACLOutput, error)
- func (s *Bucket) PutACLRequest(input *PutBucketACLInput) (*request.Request, *PutBucketACLOutput, error)
- func (s *Bucket) PutCORS(input *PutBucketCORSInput) (*PutBucketCORSOutput, error)
- func (s *Bucket) PutCORSRequest(input *PutBucketCORSInput) (*request.Request, *PutBucketCORSOutput, error)
- func (s *Bucket) PutExternalMirror(input *PutBucketExternalMirrorInput) (*PutBucketExternalMirrorOutput, error)
- func (s *Bucket) PutExternalMirrorRequest(input *PutBucketExternalMirrorInput) (*request.Request, *PutBucketExternalMirrorOutput, error)
- func (s *Bucket) PutObject(objectKey string, input *PutObjectInput) (*PutObjectOutput, error)
- func (s *Bucket) PutObjectRequest(objectKey string, input *PutObjectInput) (*request.Request, *PutObjectOutput, error)
- func (s *Bucket) PutPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error)
- func (s *Bucket) PutPolicyRequest(input *PutBucketPolicyInput) (*request.Request, *PutBucketPolicyOutput, error)
- func (s *Bucket) PutRequest() (*request.Request, *PutBucketOutput, error)
- func (s *Bucket) UploadMultipart(objectKey string, input *UploadMultipartInput) (*UploadMultipartOutput, error)
- func (s *Bucket) UploadMultipartRequest(objectKey string, input *UploadMultipartInput) (*request.Request, *UploadMultipartOutput, error)
- type BucketType
- type CORSRuleType
- type CompleteMultipartUploadInput
- type CompleteMultipartUploadOutput
- type ConditionType
- type DeleteBucketCORSOutput
- type DeleteBucketExternalMirrorOutput
- type DeleteBucketOutput
- type DeleteBucketPolicyOutput
- type DeleteMultipleObjectsInput
- type DeleteMultipleObjectsOutput
- type DeleteObjectOutput
- type GetBucketACLOutput
- type GetBucketCORSOutput
- type GetBucketExternalMirrorOutput
- type GetBucketPolicyOutput
- type GetBucketStatisticsOutput
- type GetObjectInput
- type GetObjectOutput
- type GranteeType
- type HeadBucketOutput
- type HeadObjectInput
- type HeadObjectOutput
- type IPAddressType
- type InitiateMultipartUploadInput
- type InitiateMultipartUploadOutput
- type IsNullType
- type KeyDeleteErrorType
- type KeyType
- type ListBucketsInput
- type ListBucketsOutput
- type ListMultipartInput
- type ListMultipartOutput
- type ListMultipartUploadsInput
- type ListMultipartUploadsOutput
- type ListObjectsInput
- type ListObjectsOutput
- type NotIPAddressType
- type ObjectPartType
- type OptionsObjectInput
- type OptionsObjectOutput
- type OwnerType
- type Properties
- type PutBucketACLInput
- type PutBucketACLOutput
- type PutBucketCORSInput
- type PutBucketCORSOutput
- type PutBucketExternalMirrorInput
- type PutBucketExternalMirrorOutput
- type PutBucketOutput
- type PutBucketPolicyInput
- type PutBucketPolicyOutput
- type PutObjectInput
- type PutObjectOutput
- type Service
- type StatementType
- type StringLikeType
- type StringNotLikeType
- type UploadMultipartInput
- type UploadMultipartOutput
- type UploadsType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolValue ¶
BoolValue returns the value of the given bool pointer or false if the pointer is nil.
func BoolValueMap ¶
BoolValueMap converts a string map of bool pointers into a string map of bool values
func BoolValueSlice ¶
BoolValueSlice converts a slice of bool pointers into a slice of bool values
func IntValueMap ¶
IntValueMap converts a string map of int pointers into a string map of int values
func IntValueSlice ¶
IntValueSlice converts a slice of int pointers into a slice of int values
func StringMap ¶
StringMap converts a string map of string values into a string map of string pointers
func StringSlice ¶
StringSlice converts a slice of string values into a slice of string pointers
func StringValue ¶
StringValue returns the value of the given string pointer or "" if the pointer is nil.
func StringValueMap ¶
StringValueMap converts a string map of string pointers into a string map of string values
func StringValueSlice ¶
StringValueSlice converts a slice of string pointers into a slice of string values
func TimeMap ¶
TimeMap converts a string map of time.Time values into a string map of time.Time pointers
func TimeUnixMilli ¶
TimeUnixMilli returns a Unix timestamp in milliseconds from "January 1, 1970 UTC". The result is undefined if the Unix time cannot be represented by an int64. Which includes calling TimeUnixMilli on a zero Time is undefined.
See Go stdlib https://golang.org/pkg/time/#Time.UnixNano for more information.
func TimeValue ¶
TimeValue returns the value of the given time.Time pointer or time.Time{} if the pointer is nil.
func TimeValueMap ¶
TimeValueMap converts a string map of time.Time pointers into a string map of time.Time values
Types ¶
type ACLType ¶
type ACLType struct { Grantee *GranteeType `json:"grantee" name:"grantee"` // Required // Permission for this grantee // Permission's available values: READ, WRITE, FULL_CONTROL Permission *string `json:"permission" name:"permission"` // Required }
ACLType presents ACL.
type AbortMultipartUploadInput ¶
type AbortMultipartUploadInput struct { // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"params"` // Required }
AbortMultipartUploadInput presents input for AbortMultipartUpload.
func (*AbortMultipartUploadInput) Validate ¶
func (v *AbortMultipartUploadInput) Validate() error
Validate validates the input for AbortMultipartUpload.
type AbortMultipartUploadOutput ¶
type AbortMultipartUploadOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
AbortMultipartUploadOutput presents output for AbortMultipartUpload.
type Bucket ¶
type Bucket struct { Config *config.Config Properties *Properties }
Bucket presents bucket.
func (*Bucket) AbortMultipartUpload ¶
func (s *Bucket) AbortMultipartUpload(objectKey string, input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error)
AbortMultipartUpload does Abort multipart upload. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/abort_multipart_upload.html
func (*Bucket) AbortMultipartUploadRequest ¶
func (s *Bucket) AbortMultipartUploadRequest(objectKey string, input *AbortMultipartUploadInput) (*request.Request, *AbortMultipartUploadOutput, error)
AbortMultipartUploadRequest creates request and output object of AbortMultipartUpload.
func (*Bucket) CompleteMultipartUpload ¶
func (s *Bucket) CompleteMultipartUpload(objectKey string, input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error)
CompleteMultipartUpload does Complete multipart upload. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/complete_multipart_upload.html
func (*Bucket) CompleteMultipartUploadRequest ¶
func (s *Bucket) CompleteMultipartUploadRequest(objectKey string, input *CompleteMultipartUploadInput) (*request.Request, *CompleteMultipartUploadOutput, error)
CompleteMultipartUploadRequest creates request and output object of CompleteMultipartUpload.
func (*Bucket) Delete ¶
func (s *Bucket) Delete() (*DeleteBucketOutput, error)
Delete does Delete a bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/delete.html
func (*Bucket) DeleteCORS ¶
func (s *Bucket) DeleteCORS() (*DeleteBucketCORSOutput, error)
DeleteCORS does Delete CORS information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cors/delete_cors.html
func (*Bucket) DeleteCORSRequest ¶
func (s *Bucket) DeleteCORSRequest() (*request.Request, *DeleteBucketCORSOutput, error)
DeleteCORSRequest creates request and output object of DeleteBucketCORS.
func (*Bucket) DeleteExternalMirror ¶
func (s *Bucket) DeleteExternalMirror() (*DeleteBucketExternalMirrorOutput, error)
DeleteExternalMirror does Delete external mirror of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/external_mirror/delete_external_mirror.html
func (*Bucket) DeleteExternalMirrorRequest ¶
func (s *Bucket) DeleteExternalMirrorRequest() (*request.Request, *DeleteBucketExternalMirrorOutput, error)
DeleteExternalMirrorRequest creates request and output object of DeleteBucketExternalMirror.
func (*Bucket) DeleteMultipleObjects ¶
func (s *Bucket) DeleteMultipleObjects(input *DeleteMultipleObjectsInput) (*DeleteMultipleObjectsOutput, error)
DeleteMultipleObjects does Delete multiple objects from the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/delete_multiple.html
func (*Bucket) DeleteMultipleObjectsRequest ¶
func (s *Bucket) DeleteMultipleObjectsRequest(input *DeleteMultipleObjectsInput) (*request.Request, *DeleteMultipleObjectsOutput, error)
DeleteMultipleObjectsRequest creates request and output object of DeleteMultipleObjects.
func (*Bucket) DeleteObject ¶
func (s *Bucket) DeleteObject(objectKey string) (*DeleteObjectOutput, error)
DeleteObject does Delete the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/delete.html
func (*Bucket) DeleteObjectRequest ¶
func (s *Bucket) DeleteObjectRequest(objectKey string) (*request.Request, *DeleteObjectOutput, error)
DeleteObjectRequest creates request and output object of DeleteObject.
func (*Bucket) DeletePolicy ¶
func (s *Bucket) DeletePolicy() (*DeleteBucketPolicyOutput, error)
DeletePolicy does Delete policy information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/policy/delete_policy.html
func (*Bucket) DeletePolicyRequest ¶
func (s *Bucket) DeletePolicyRequest() (*request.Request, *DeleteBucketPolicyOutput, error)
DeletePolicyRequest creates request and output object of DeleteBucketPolicy.
func (*Bucket) DeleteRequest ¶
func (s *Bucket) DeleteRequest() (*request.Request, *DeleteBucketOutput, error)
DeleteRequest creates request and output object of DeleteBucket.
func (*Bucket) GetACL ¶
func (s *Bucket) GetACL() (*GetBucketACLOutput, error)
GetACL does Get ACL information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/get_acl.html
func (*Bucket) GetACLRequest ¶
func (s *Bucket) GetACLRequest() (*request.Request, *GetBucketACLOutput, error)
GetACLRequest creates request and output object of GetBucketACL.
func (*Bucket) GetCORS ¶
func (s *Bucket) GetCORS() (*GetBucketCORSOutput, error)
GetCORS does Get CORS information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cors/get_cors.html
func (*Bucket) GetCORSRequest ¶
func (s *Bucket) GetCORSRequest() (*request.Request, *GetBucketCORSOutput, error)
GetCORSRequest creates request and output object of GetBucketCORS.
func (*Bucket) GetExternalMirror ¶
func (s *Bucket) GetExternalMirror() (*GetBucketExternalMirrorOutput, error)
GetExternalMirror does Get external mirror of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/external_mirror/get_external_mirror.html
func (*Bucket) GetExternalMirrorRequest ¶
func (s *Bucket) GetExternalMirrorRequest() (*request.Request, *GetBucketExternalMirrorOutput, error)
GetExternalMirrorRequest creates request and output object of GetBucketExternalMirror.
func (*Bucket) GetObject ¶
func (s *Bucket) GetObject(objectKey string, input *GetObjectInput) (*GetObjectOutput, error)
GetObject does Retrieve the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/get.html
func (*Bucket) GetObjectRequest ¶
func (s *Bucket) GetObjectRequest(objectKey string, input *GetObjectInput) (*request.Request, *GetObjectOutput, error)
GetObjectRequest creates request and output object of GetObject.
func (*Bucket) GetPolicy ¶
func (s *Bucket) GetPolicy() (*GetBucketPolicyOutput, error)
GetPolicy does Get policy information of the bucket. Documentation URL: https://https://docs.qingcloud.com/qingstor/api/bucket/policy/get_policy.html
func (*Bucket) GetPolicyRequest ¶
func (s *Bucket) GetPolicyRequest() (*request.Request, *GetBucketPolicyOutput, error)
GetPolicyRequest creates request and output object of GetBucketPolicy.
func (*Bucket) GetStatistics ¶
func (s *Bucket) GetStatistics() (*GetBucketStatisticsOutput, error)
GetStatistics does Get statistics information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/get_stats.html
func (*Bucket) GetStatisticsRequest ¶
func (s *Bucket) GetStatisticsRequest() (*request.Request, *GetBucketStatisticsOutput, error)
GetStatisticsRequest creates request and output object of GetBucketStatistics.
func (*Bucket) Head ¶
func (s *Bucket) Head() (*HeadBucketOutput, error)
Head does Check whether the bucket exists and available. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/head.html
func (*Bucket) HeadObject ¶
func (s *Bucket) HeadObject(objectKey string, input *HeadObjectInput) (*HeadObjectOutput, error)
HeadObject does Check whether the object exists and available. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/head.html
func (*Bucket) HeadObjectRequest ¶
func (s *Bucket) HeadObjectRequest(objectKey string, input *HeadObjectInput) (*request.Request, *HeadObjectOutput, error)
HeadObjectRequest creates request and output object of HeadObject.
func (*Bucket) HeadRequest ¶
func (s *Bucket) HeadRequest() (*request.Request, *HeadBucketOutput, error)
HeadRequest creates request and output object of HeadBucket.
func (*Bucket) InitiateMultipartUpload ¶
func (s *Bucket) InitiateMultipartUpload(objectKey string, input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error)
InitiateMultipartUpload does Initial multipart upload on the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/initiate_multipart_upload.html
func (*Bucket) InitiateMultipartUploadRequest ¶
func (s *Bucket) InitiateMultipartUploadRequest(objectKey string, input *InitiateMultipartUploadInput) (*request.Request, *InitiateMultipartUploadOutput, error)
InitiateMultipartUploadRequest creates request and output object of InitiateMultipartUpload.
func (*Bucket) ListMultipart ¶
func (s *Bucket) ListMultipart(objectKey string, input *ListMultipartInput) (*ListMultipartOutput, error)
ListMultipart does List object parts. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/list_multipart.html
func (*Bucket) ListMultipartRequest ¶
func (s *Bucket) ListMultipartRequest(objectKey string, input *ListMultipartInput) (*request.Request, *ListMultipartOutput, error)
ListMultipartRequest creates request and output object of ListMultipart.
func (*Bucket) ListMultipartUploads ¶
func (s *Bucket) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error)
ListMultipartUploads does List multipart uploads in the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/list_multipart_uploads.html
func (*Bucket) ListMultipartUploadsRequest ¶
func (s *Bucket) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (*request.Request, *ListMultipartUploadsOutput, error)
ListMultipartUploadsRequest creates request and output object of ListMultipartUploads.
func (*Bucket) ListObjects ¶
func (s *Bucket) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error)
ListObjects does Retrieve the object list in a bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/get.html
func (*Bucket) ListObjectsRequest ¶
func (s *Bucket) ListObjectsRequest(input *ListObjectsInput) (*request.Request, *ListObjectsOutput, error)
ListObjectsRequest creates request and output object of ListObjects.
func (*Bucket) OptionsObject ¶
func (s *Bucket) OptionsObject(objectKey string, input *OptionsObjectInput) (*OptionsObjectOutput, error)
OptionsObject does Check whether the object accepts a origin with method and header. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/options.html
func (*Bucket) OptionsObjectRequest ¶
func (s *Bucket) OptionsObjectRequest(objectKey string, input *OptionsObjectInput) (*request.Request, *OptionsObjectOutput, error)
OptionsObjectRequest creates request and output object of OptionsObject.
func (*Bucket) Put ¶
func (s *Bucket) Put() (*PutBucketOutput, error)
Put does Create a new bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/put.html
func (*Bucket) PutACL ¶
func (s *Bucket) PutACL(input *PutBucketACLInput) (*PutBucketACLOutput, error)
PutACL does Set ACL information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/put_acl.html
func (*Bucket) PutACLRequest ¶
func (s *Bucket) PutACLRequest(input *PutBucketACLInput) (*request.Request, *PutBucketACLOutput, error)
PutACLRequest creates request and output object of PutBucketACL.
func (*Bucket) PutCORS ¶
func (s *Bucket) PutCORS(input *PutBucketCORSInput) (*PutBucketCORSOutput, error)
PutCORS does Set CORS information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cors/put_cors.html
func (*Bucket) PutCORSRequest ¶
func (s *Bucket) PutCORSRequest(input *PutBucketCORSInput) (*request.Request, *PutBucketCORSOutput, error)
PutCORSRequest creates request and output object of PutBucketCORS.
func (*Bucket) PutExternalMirror ¶
func (s *Bucket) PutExternalMirror(input *PutBucketExternalMirrorInput) (*PutBucketExternalMirrorOutput, error)
PutExternalMirror does Set external mirror of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/external_mirror/put_external_mirror.html
func (*Bucket) PutExternalMirrorRequest ¶
func (s *Bucket) PutExternalMirrorRequest(input *PutBucketExternalMirrorInput) (*request.Request, *PutBucketExternalMirrorOutput, error)
PutExternalMirrorRequest creates request and output object of PutBucketExternalMirror.
func (*Bucket) PutObject ¶
func (s *Bucket) PutObject(objectKey string, input *PutObjectInput) (*PutObjectOutput, error)
PutObject does Upload the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/put.html
func (*Bucket) PutObjectRequest ¶
func (s *Bucket) PutObjectRequest(objectKey string, input *PutObjectInput) (*request.Request, *PutObjectOutput, error)
PutObjectRequest creates request and output object of PutObject.
func (*Bucket) PutPolicy ¶
func (s *Bucket) PutPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error)
PutPolicy does Set policy information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/policy/put_policy.html
func (*Bucket) PutPolicyRequest ¶
func (s *Bucket) PutPolicyRequest(input *PutBucketPolicyInput) (*request.Request, *PutBucketPolicyOutput, error)
PutPolicyRequest creates request and output object of PutBucketPolicy.
func (*Bucket) PutRequest ¶
func (s *Bucket) PutRequest() (*request.Request, *PutBucketOutput, error)
PutRequest creates request and output object of PutBucket.
func (*Bucket) UploadMultipart ¶
func (s *Bucket) UploadMultipart(objectKey string, input *UploadMultipartInput) (*UploadMultipartOutput, error)
UploadMultipart does Upload object multipart. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/multipart/upload_multipart.html
func (*Bucket) UploadMultipartRequest ¶
func (s *Bucket) UploadMultipartRequest(objectKey string, input *UploadMultipartInput) (*request.Request, *UploadMultipartOutput, error)
UploadMultipartRequest creates request and output object of UploadMultipart.
type BucketType ¶
type BucketType struct { // Created time of the bucket Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601"` // QingCloud Zone ID Location *string `json:"location,omitempty" name:"location"` // Bucket name Name *string `json:"name,omitempty" name:"name"` // URL to access the bucket URL *string `json:"url,omitempty" name:"url"` }
BucketType presents Bucket.
type CORSRuleType ¶
type CORSRuleType struct { // Allowed headers AllowedHeaders []*string `json:"allowed_headers,omitempty" name:"allowed_headers"` // Allowed methods AllowedMethods []*string `json:"allowed_methods" name:"allowed_methods"` // Required // Allowed origin AllowedOrigin *string `json:"allowed_origin" name:"allowed_origin"` // Required // Expose headers ExposeHeaders []*string `json:"expose_headers,omitempty" name:"expose_headers"` // Max age seconds MaxAgeSeconds *int `json:"max_age_seconds,omitempty" name:"max_age_seconds"` }
CORSRuleType presents CORSRule.
func (*CORSRuleType) Validate ¶
func (v *CORSRuleType) Validate() error
Validate validates the CORSRule.
type CompleteMultipartUploadInput ¶
type CompleteMultipartUploadInput struct { // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"params"` // Required // MD5sum of the object part ETag *string `json:"ETag,omitempty" name:"ETag" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` // Encryption key of the object XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"` // Object parts ObjectParts []*ObjectPartType `json:"object_parts,omitempty" name:"object_parts" location:"elements"` }
CompleteMultipartUploadInput presents input for CompleteMultipartUpload.
func (*CompleteMultipartUploadInput) Validate ¶
func (v *CompleteMultipartUploadInput) Validate() error
Validate validates the input for CompleteMultipartUpload.
type CompleteMultipartUploadOutput ¶
type CompleteMultipartUploadOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
CompleteMultipartUploadOutput presents output for CompleteMultipartUpload.
type ConditionType ¶
type ConditionType struct { IPAddress *IPAddressType `json:"ip_address,omitempty" name:"ip_address"` IsNull *IsNullType `json:"is_null,omitempty" name:"is_null"` NotIPAddress *NotIPAddressType `json:"not_ip_address,omitempty" name:"not_ip_address"` StringLike *StringLikeType `json:"string_like,omitempty" name:"string_like"` StringNotLike *StringNotLikeType `json:"string_not_like,omitempty" name:"string_not_like"` }
ConditionType presents Condition.
func (*ConditionType) Validate ¶
func (v *ConditionType) Validate() error
Validate validates the Condition.
type DeleteBucketCORSOutput ¶
type DeleteBucketCORSOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketCORSOutput presents output for DeleteBucketCORS.
type DeleteBucketExternalMirrorOutput ¶
type DeleteBucketExternalMirrorOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketExternalMirrorOutput presents output for DeleteBucketExternalMirror.
type DeleteBucketOutput ¶
type DeleteBucketOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketOutput presents output for DeleteBucket.
type DeleteBucketPolicyOutput ¶
type DeleteBucketPolicyOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketPolicyOutput presents output for DeleteBucketPolicy.
type DeleteMultipleObjectsInput ¶
type DeleteMultipleObjectsInput struct { // A list of keys to delete Objects []*KeyType `json:"objects" name:"objects" location:"elements"` // Required // Whether to return the list of deleted objects Quiet *bool `json:"quiet,omitempty" name:"quiet" location:"elements"` }
DeleteMultipleObjectsInput presents input for DeleteMultipleObjects.
func (*DeleteMultipleObjectsInput) Validate ¶
func (v *DeleteMultipleObjectsInput) Validate() error
Validate validates the input for DeleteMultipleObjects.
type DeleteMultipleObjectsOutput ¶
type DeleteMultipleObjectsOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // List of deleted objects Deleted []*KeyType `json:"deleted,omitempty" name:"deleted" location:"elements"` // Error messages Errors []*KeyDeleteErrorType `json:"errors,omitempty" name:"errors" location:"elements"` }
DeleteMultipleObjectsOutput presents output for DeleteMultipleObjects.
type DeleteObjectOutput ¶
type DeleteObjectOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteObjectOutput presents output for DeleteObject.
type GetBucketACLOutput ¶
type GetBucketACLOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket ACL rules ACL []*ACLType `json:"acl,omitempty" name:"acl" location:"elements"` // Bucket owner Owner *OwnerType `json:"owner,omitempty" name:"owner" location:"elements"` }
GetBucketACLOutput presents output for GetBucketACL.
type GetBucketCORSOutput ¶
type GetBucketCORSOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket CORS rules CORSRules []*CORSRuleType `json:"cors_rules,omitempty" name:"cors_rules" location:"elements"` }
GetBucketCORSOutput presents output for GetBucketCORS.
type GetBucketExternalMirrorOutput ¶
type GetBucketExternalMirrorOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Source site url SourceSite *string `json:"source_site,omitempty" name:"source_site" location:"elements"` }
GetBucketExternalMirrorOutput presents output for GetBucketExternalMirror.
type GetBucketPolicyOutput ¶
type GetBucketPolicyOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket policy statement Statement []*StatementType `json:"statement,omitempty" name:"statement" location:"elements"` }
GetBucketPolicyOutput presents output for GetBucketPolicy.
type GetBucketStatisticsOutput ¶
type GetBucketStatisticsOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Objects count in the bucket Count *int64 `json:"count,omitempty" name:"count" location:"elements"` // Bucket created time Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601" location:"elements"` // QingCloud Zone ID Location *string `json:"location,omitempty" name:"location" location:"elements"` // Bucket name Name *string `json:"name,omitempty" name:"name" location:"elements"` // Bucket storage size Size *int64 `json:"size,omitempty" name:"size" location:"elements"` // Bucket status // Status's available values: active, suspended Status *string `json:"status,omitempty" name:"status" location:"elements"` // URL to access the bucket URL *string `json:"url,omitempty" name:"url" location:"elements"` }
GetBucketStatisticsOutput presents output for GetBucketStatistics.
type GetObjectInput ¶
type GetObjectInput struct { // Specified the Cache-Control response header ResponseCacheControl *string `json:"response-cache-control,omitempty" name:"response-cache-control" location:"params"` // Specified the Content-Disposition response header ResponseContentDisposition *string `json:"response-content-disposition,omitempty" name:"response-content-disposition" location:"params"` // Specified the Content-Encoding response header ResponseContentEncoding *string `json:"response-content-encoding,omitempty" name:"response-content-encoding" location:"params"` // Specified the Content-Language response header ResponseContentLanguage *string `json:"response-content-language,omitempty" name:"response-content-language" location:"params"` // Specified the Content-Type response header ResponseContentType *string `json:"response-content-type,omitempty" name:"response-content-type" location:"params"` // Specified the Expires response header ResponseExpires *string `json:"response-expires,omitempty" name:"response-expires" location:"params"` // Check whether the ETag matches IfMatch *string `json:"If-Match,omitempty" name:"If-Match" location:"headers"` // Check whether the object has been modified IfModifiedSince *time.Time `json:"If-Modified-Since,omitempty" name:"If-Modified-Since" format:"RFC 822" location:"headers"` // Check whether the ETag does not match IfNoneMatch *string `json:"If-None-Match,omitempty" name:"If-None-Match" location:"headers"` // Check whether the object has not been modified IfUnmodifiedSince *time.Time `json:"If-Unmodified-Since,omitempty" name:"If-Unmodified-Since" format:"RFC 822" location:"headers"` // Specified range of the object Range *string `json:"Range,omitempty" name:"Range" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` // Encryption key of the object XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"` }
GetObjectInput presents input for GetObject.
func (*GetObjectInput) Validate ¶
func (v *GetObjectInput) Validate() error
Validate validates the input for GetObject.
type GetObjectOutput ¶
type GetObjectOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // The response body Body io.ReadCloser `location:"body"` // Object content length ContentLength *int64 `json:"Content-Length,omitempty" name:"Content-Length" location:"headers"` // Range of response data content ContentRange *string `json:"Content-Range,omitempty" name:"Content-Range" location:"headers"` // MD5sum of the object ETag *string `json:"ETag,omitempty" name:"ETag" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` }
GetObjectOutput presents output for GetObject.
type GranteeType ¶
type GranteeType struct { // Grantee user ID ID *string `json:"id,omitempty" name:"id"` // Grantee group name Name *string `json:"name,omitempty" name:"name"` // Grantee type // Type's available values: user, group Type *string `json:"type" name:"type"` // Required }
GranteeType presents Grantee.
func (*GranteeType) Validate ¶
func (v *GranteeType) Validate() error
Validate validates the Grantee.
type HeadBucketOutput ¶
type HeadBucketOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
HeadBucketOutput presents output for HeadBucket.
type HeadObjectInput ¶
type HeadObjectInput struct { // Check whether the ETag matches IfMatch *string `json:"If-Match,omitempty" name:"If-Match" location:"headers"` // Check whether the object has been modified IfModifiedSince *time.Time `json:"If-Modified-Since,omitempty" name:"If-Modified-Since" format:"RFC 822" location:"headers"` // Check whether the ETag does not match IfNoneMatch *string `json:"If-None-Match,omitempty" name:"If-None-Match" location:"headers"` // Check whether the object has not been modified IfUnmodifiedSince *time.Time `json:"If-Unmodified-Since,omitempty" name:"If-Unmodified-Since" format:"RFC 822" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` // Encryption key of the object XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"` }
HeadObjectInput presents input for HeadObject.
func (*HeadObjectInput) Validate ¶
func (v *HeadObjectInput) Validate() error
Validate validates the input for HeadObject.
type HeadObjectOutput ¶
type HeadObjectOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Object content length ContentLength *int64 `json:"Content-Length,omitempty" name:"Content-Length" location:"headers"` // Object content type ContentType *string `json:"Content-Type,omitempty" name:"Content-Type" location:"headers"` // MD5sum of the object ETag *string `json:"ETag,omitempty" name:"ETag" location:"headers"` LastModified *time.Time `json:"Last-Modified,omitempty" name:"Last-Modified" format:"RFC 822" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` }
HeadObjectOutput presents output for HeadObject.
type IPAddressType ¶
type IPAddressType struct { // Source IP SourceIP []*string `json:"source_ip,omitempty" name:"source_ip"` }
IPAddressType presents IPAddress.
func (*IPAddressType) Validate ¶
func (v *IPAddressType) Validate() error
Validate validates the IPAddress.
type InitiateMultipartUploadInput ¶
type InitiateMultipartUploadInput struct { // Object content type ContentType *string `json:"Content-Type,omitempty" name:"Content-Type" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` // Encryption key of the object XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"` }
InitiateMultipartUploadInput presents input for InitiateMultipartUpload.
func (*InitiateMultipartUploadInput) Validate ¶
func (v *InitiateMultipartUploadInput) Validate() error
Validate validates the input for InitiateMultipartUpload.
type InitiateMultipartUploadOutput ¶
type InitiateMultipartUploadOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket name Bucket *string `json:"bucket,omitempty" name:"bucket" location:"elements"` // Object key Key *string `json:"key,omitempty" name:"key" location:"elements"` // Object multipart upload ID UploadID *string `json:"upload_id,omitempty" name:"upload_id" location:"elements"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` }
InitiateMultipartUploadOutput presents output for InitiateMultipartUpload.
type IsNullType ¶
type IsNullType struct { // Refer url Referer *bool `json:"Referer,omitempty" name:"Referer"` }
IsNullType presents IsNull.
type KeyDeleteErrorType ¶
type KeyDeleteErrorType struct { // Error code Code *string `json:"code,omitempty" name:"code"` // Object key Key *string `json:"key,omitempty" name:"key"` // Error message Message *string `json:"message,omitempty" name:"message"` }
KeyDeleteErrorType presents KeyDeleteError.
func (*KeyDeleteErrorType) Validate ¶
func (v *KeyDeleteErrorType) Validate() error
Validate validates the KeyDeleteError.
type KeyType ¶
type KeyType struct { // Object created time Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601"` // Whether this key is encrypted Encrypted *bool `json:"encrypted,omitempty" name:"encrypted"` // MD5sum of the object Etag *string `json:"etag,omitempty" name:"etag"` // Object key Key *string `json:"key,omitempty" name:"key"` // MIME type of the object MimeType *string `json:"mime_type,omitempty" name:"mime_type"` // Last modified time in unix time format Modified *int `json:"modified,omitempty" name:"modified"` // Object content size Size *int64 `json:"size,omitempty" name:"size"` }
KeyType presents Key.
type ListBucketsInput ¶
type ListBucketsInput struct { // Limits results to buckets that in the location Location *string `json:"Location,omitempty" name:"Location" location:"headers"` }
ListBucketsInput presents input for ListBuckets.
func (*ListBucketsInput) Validate ¶
func (v *ListBucketsInput) Validate() error
Validate validates the input for ListBuckets.
type ListBucketsOutput ¶
type ListBucketsOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Buckets information Buckets []*BucketType `json:"buckets,omitempty" name:"buckets" location:"elements"` // Bucket count Count *int `json:"count,omitempty" name:"count" location:"elements"` }
ListBucketsOutput presents output for ListBuckets.
type ListMultipartInput ¶
type ListMultipartInput struct { // Limit results count Limit *int `json:"limit,omitempty" name:"limit" location:"params"` // Object multipart upload part number PartNumberMarker *int `json:"part_number_marker,omitempty" name:"part_number_marker" location:"params"` // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"params"` // Required }
ListMultipartInput presents input for ListMultipart.
func (*ListMultipartInput) Validate ¶
func (v *ListMultipartInput) Validate() error
Validate validates the input for ListMultipart.
type ListMultipartOutput ¶
type ListMultipartOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Object multipart count Count *int `json:"count,omitempty" name:"count" location:"elements"` // Object parts ObjectParts []*ObjectPartType `json:"object_parts,omitempty" name:"object_parts" location:"elements"` }
ListMultipartOutput presents output for ListMultipart.
type ListMultipartUploadsInput ¶
type ListMultipartUploadsInput struct { // Put all keys that share a common prefix into a list Delimiter *string `json:"delimiter,omitempty" name:"delimiter" location:"params"` // Results count limit Limit *int `json:"limit,omitempty" name:"limit" location:"params"` // Limit results to keys that start at this marker Marker *string `json:"marker,omitempty" name:"marker" location:"params"` // Limits results to keys that begin with the prefix Prefix *string `json:"prefix,omitempty" name:"prefix" location:"params"` }
ListMultipartUploadsInput presents input for ListMultipartUploads.
func (*ListMultipartUploadsInput) Validate ¶
func (v *ListMultipartUploadsInput) Validate() error
Validate validates the input for ListMultipartUploads.
type ListMultipartUploadsOutput ¶
type ListMultipartUploadsOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Other object keys that share common prefixes CommonPrefixes []*string `json:"common_prefixes,omitempty" name:"common_prefixes" location:"elements"` // Delimiter that specified in request parameters Delimiter *string `json:"delimiter,omitempty" name:"delimiter" location:"elements"` // Limit that specified in request parameters Limit *int `json:"limit,omitempty" name:"limit" location:"elements"` // Marker that specified in request parameters Marker *string `json:"marker,omitempty" name:"marker" location:"elements"` // Bucket name Name *string `json:"name,omitempty" name:"name" location:"elements"` // The last key in keys list NextMarker *string `json:"next_marker,omitempty" name:"next_marker" location:"elements"` // Prefix that specified in request parameters Prefix *string `json:"prefix,omitempty" name:"prefix" location:"elements"` // Multipart uploads Uploads []*UploadsType `json:"uploads,omitempty" name:"uploads" location:"elements"` }
ListMultipartUploadsOutput presents output for ListMultipartUploads.
type ListObjectsInput ¶
type ListObjectsInput struct { // Put all keys that share a common prefix into a list Delimiter *string `json:"delimiter,omitempty" name:"delimiter" location:"params"` // Results count limit Limit *int `json:"limit,omitempty" name:"limit" location:"params"` // Limit results to keys that start at this marker Marker *string `json:"marker,omitempty" name:"marker" location:"params"` // Limits results to keys that begin with the prefix Prefix *string `json:"prefix,omitempty" name:"prefix" location:"params"` }
ListObjectsInput presents input for ListObjects.
func (*ListObjectsInput) Validate ¶
func (v *ListObjectsInput) Validate() error
Validate validates the input for ListObjects.
type ListObjectsOutput ¶
type ListObjectsOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Other object keys that share common prefixes CommonPrefixes []*string `json:"common_prefixes,omitempty" name:"common_prefixes" location:"elements"` // Delimiter that specified in request parameters Delimiter *string `json:"delimiter,omitempty" name:"delimiter" location:"elements"` // Object keys Keys []*KeyType `json:"keys,omitempty" name:"keys" location:"elements"` // Limit that specified in request parameters Limit *int `json:"limit,omitempty" name:"limit" location:"elements"` // Marker that specified in request parameters Marker *string `json:"marker,omitempty" name:"marker" location:"elements"` // Bucket name Name *string `json:"name,omitempty" name:"name" location:"elements"` // The last key in keys list NextMarker *string `json:"next_marker,omitempty" name:"next_marker" location:"elements"` // Bucket owner Owner *OwnerType `json:"owner,omitempty" name:"owner" location:"elements"` // Prefix that specified in request parameters Prefix *string `json:"prefix,omitempty" name:"prefix" location:"elements"` }
ListObjectsOutput presents output for ListObjects.
type NotIPAddressType ¶
type NotIPAddressType struct { // Source IP SourceIP []*string `json:"source_ip,omitempty" name:"source_ip"` }
NotIPAddressType presents NotIPAddress.
func (*NotIPAddressType) Validate ¶
func (v *NotIPAddressType) Validate() error
Validate validates the NotIPAddress.
type ObjectPartType ¶
type ObjectPartType struct { // Object part created time Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601"` // MD5sum of the object part Etag *string `json:"etag,omitempty" name:"etag"` // Object part number PartNumber *int `json:"part_number" name:"part_number" default:"0"` // Required // Object part size Size *int64 `json:"size,omitempty" name:"size"` }
ObjectPartType presents ObjectPart.
func (*ObjectPartType) Validate ¶
func (v *ObjectPartType) Validate() error
Validate validates the ObjectPart.
type OptionsObjectInput ¶
type OptionsObjectInput struct { // Request headers AccessControlRequestHeaders *string `json:"Access-Control-Request-Headers,omitempty" name:"Access-Control-Request-Headers" location:"headers"` // Request method AccessControlRequestMethod *string `json:"Access-Control-Request-Method" name:"Access-Control-Request-Method" location:"headers"` // Required // Request origin Origin *string `json:"Origin" name:"Origin" location:"headers"` // Required }
OptionsObjectInput presents input for OptionsObject.
func (*OptionsObjectInput) Validate ¶
func (v *OptionsObjectInput) Validate() error
Validate validates the input for OptionsObject.
type OptionsObjectOutput ¶
type OptionsObjectOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Allowed headers AccessControlAllowHeaders *string `json:"Access-Control-Allow-Headers,omitempty" name:"Access-Control-Allow-Headers" location:"headers"` // Allowed methods AccessControlAllowMethods *string `json:"Access-Control-Allow-Methods,omitempty" name:"Access-Control-Allow-Methods" location:"headers"` // Allowed origin AccessControlAllowOrigin *string `json:"Access-Control-Allow-Origin,omitempty" name:"Access-Control-Allow-Origin" location:"headers"` // Expose headers AccessControlExposeHeaders *string `json:"Access-Control-Expose-Headers,omitempty" name:"Access-Control-Expose-Headers" location:"headers"` // Max age AccessControlMaxAge *string `json:"Access-Control-Max-Age,omitempty" name:"Access-Control-Max-Age" location:"headers"` }
OptionsObjectOutput presents output for OptionsObject.
type OwnerType ¶
type OwnerType struct { // User ID ID *string `json:"id,omitempty" name:"id"` // Username Name *string `json:"name,omitempty" name:"name"` }
OwnerType presents Owner.
type Properties ¶
type Properties struct { // Bucket name BucketName *string `json:"bucket-name" name:"bucket-name"` // Required // Object key ObjectKey *string `json:"object-key" name:"object-key"` // Required // QingCloud Zone ID Zone *string `json:"zone" name:"zone"` }
Properties presents the service properties.
type PutBucketACLInput ¶
type PutBucketACLInput struct { // Bucket ACL rules ACL []*ACLType `json:"acl" name:"acl" location:"elements"` // Required }
PutBucketACLInput presents input for PutBucketACL.
func (*PutBucketACLInput) Validate ¶
func (v *PutBucketACLInput) Validate() error
Validate validates the input for PutBucketACL.
type PutBucketACLOutput ¶
type PutBucketACLOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketACLOutput presents output for PutBucketACL.
type PutBucketCORSInput ¶
type PutBucketCORSInput struct { // Bucket CORS rules CORSRules []*CORSRuleType `json:"cors_rules" name:"cors_rules" location:"elements"` // Required }
PutBucketCORSInput presents input for PutBucketCORS.
func (*PutBucketCORSInput) Validate ¶
func (v *PutBucketCORSInput) Validate() error
Validate validates the input for PutBucketCORS.
type PutBucketCORSOutput ¶
type PutBucketCORSOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketCORSOutput presents output for PutBucketCORS.
type PutBucketExternalMirrorInput ¶
type PutBucketExternalMirrorInput struct { // Source site url SourceSite *string `json:"source_site" name:"source_site" location:"elements"` // Required }
PutBucketExternalMirrorInput presents input for PutBucketExternalMirror.
func (*PutBucketExternalMirrorInput) Validate ¶
func (v *PutBucketExternalMirrorInput) Validate() error
Validate validates the input for PutBucketExternalMirror.
type PutBucketExternalMirrorOutput ¶
type PutBucketExternalMirrorOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketExternalMirrorOutput presents output for PutBucketExternalMirror.
type PutBucketOutput ¶
type PutBucketOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketOutput presents output for PutBucket.
type PutBucketPolicyInput ¶
type PutBucketPolicyInput struct { // Bucket policy statement Statement []*StatementType `json:"statement" name:"statement" location:"elements"` // Required }
PutBucketPolicyInput presents input for PutBucketPolicy.
func (*PutBucketPolicyInput) Validate ¶
func (v *PutBucketPolicyInput) Validate() error
Validate validates the input for PutBucketPolicy.
type PutBucketPolicyOutput ¶
type PutBucketPolicyOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketPolicyOutput presents output for PutBucketPolicy.
type PutObjectInput ¶
type PutObjectInput struct { // Object content size ContentLength *int64 `json:"Content-Length" name:"Content-Length" location:"headers"` // Required // Object MD5sum ContentMD5 *string `json:"Content-MD5,omitempty" name:"Content-MD5" location:"headers"` // Object content type ContentType *string `json:"Content-Type,omitempty" name:"Content-Type" location:"headers"` // Used to indicate that particular server behaviors are required by the client Expect *string `json:"Expect,omitempty" name:"Expect" location:"headers"` // Copy source, format (/<bucket-name>/<object-key>) XQSCopySource *string `json:"X-QS-Copy-Source,omitempty" name:"X-QS-Copy-Source" location:"headers"` // Encryption algorithm of the object XQSCopySourceEncryptionCustomerAlgorithm *string `` /* 136-byte string literal not displayed */ // Encryption key of the object XQSCopySourceEncryptionCustomerKey *string `json:"X-QS-Copy-Source-Encryption-Customer-Key,omitempty" name:"X-QS-Copy-Source-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSCopySourceEncryptionCustomerKeyMD5 *string `` /* 132-byte string literal not displayed */ // Check whether the copy source matches XQSCopySourceIfMatch *string `json:"X-QS-Copy-Source-If-Match,omitempty" name:"X-QS-Copy-Source-If-Match" location:"headers"` // Check whether the copy source has been modified XQSCopySourceIfModifiedSince *time.Time `` /* 129-byte string literal not displayed */ // Check whether the copy source does not match XQSCopySourceIfNoneMatch *string `json:"X-QS-Copy-Source-If-None-Match,omitempty" name:"X-QS-Copy-Source-If-None-Match" location:"headers"` // Check whether the copy source has not been modified XQSCopySourceIfUnmodifiedSince *time.Time `` /* 133-byte string literal not displayed */ // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` // Encryption key of the object XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"` // Check whether fetch target object has not been modified XQSFetchIfUnmodifiedSince *time.Time `json:"X-QS-Fetch-If-Unmodified-Since,omitempty" name:"X-QS-Fetch-If-Unmodified-Since" format:"RFC 822" location:"headers"` // Fetch source, should be a valid url XQSFetchSource *string `json:"X-QS-Fetch-Source,omitempty" name:"X-QS-Fetch-Source" location:"headers"` // Move source, format (/<bucket-name>/<object-key>) XQSMoveSource *string `json:"X-QS-Move-Source,omitempty" name:"X-QS-Move-Source" location:"headers"` // The request body Body io.Reader `location:"body"` }
PutObjectInput presents input for PutObject.
func (*PutObjectInput) Validate ¶
func (v *PutObjectInput) Validate() error
Validate validates the input for PutObject.
type PutObjectOutput ¶
type PutObjectOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutObjectOutput presents output for PutObject.
type Service ¶
Service QingStor provides low-cost and reliable online storage service with unlimited storage space, high read and write performance, high reliability and data safety, fine-grained access control, and easy to use API.
func (*Service) ListBuckets ¶
func (s *Service) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error)
ListBuckets does Retrieve the bucket list. Documentation URL: https://docs.qingcloud.com/qingstor/api/service/get.html
func (*Service) ListBucketsRequest ¶
func (s *Service) ListBucketsRequest(input *ListBucketsInput) (*request.Request, *ListBucketsOutput, error)
ListBucketsRequest creates request and output object of ListBuckets.
type StatementType ¶
type StatementType struct { // QingStor API methods Action []*string `json:"action" name:"action"` // Required Condition *ConditionType `json:"condition,omitempty" name:"condition"` // Statement effect // Effect's available values: allow, deny Effect *string `json:"effect" name:"effect"` // Required // Bucket policy id, must be unique ID *string `json:"id" name:"id"` // Required // The resources to apply bucket policy Resource []*string `json:"resource,omitempty" name:"resource"` // The user to apply bucket policy User []*string `json:"user" name:"user"` // Required }
StatementType presents Statement.
func (*StatementType) Validate ¶
func (v *StatementType) Validate() error
Validate validates the Statement.
type StringLikeType ¶
type StringLikeType struct { // Refer url Referer []*string `json:"Referer,omitempty" name:"Referer"` }
StringLikeType presents StringLike.
func (*StringLikeType) Validate ¶
func (v *StringLikeType) Validate() error
Validate validates the StringLike.
type StringNotLikeType ¶
type StringNotLikeType struct { // Refer url Referer []*string `json:"Referer,omitempty" name:"Referer"` }
StringNotLikeType presents StringNotLike.
func (*StringNotLikeType) Validate ¶
func (v *StringNotLikeType) Validate() error
Validate validates the StringNotLike.
type UploadMultipartInput ¶
type UploadMultipartInput struct { // Object multipart upload part number PartNumber *int `json:"part_number" name:"part_number" default:"0" location:"params"` // Required // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"params"` // Required // Object multipart content length ContentLength *int64 `json:"Content-Length,omitempty" name:"Content-Length" location:"headers"` // Object multipart content MD5sum ContentMD5 *string `json:"Content-MD5,omitempty" name:"Content-MD5" location:"headers"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` // Encryption key of the object XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"` // MD5sum of encryption key XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"` // The request body Body io.Reader `location:"body"` }
UploadMultipartInput presents input for UploadMultipart.
func (*UploadMultipartInput) Validate ¶
func (v *UploadMultipartInput) Validate() error
Validate validates the input for UploadMultipart.
type UploadMultipartOutput ¶
type UploadMultipartOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
UploadMultipartOutput presents output for UploadMultipart.
type UploadsType ¶
type UploadsType struct { // Object part created time Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601"` // Object key Key *string `json:"key,omitempty" name:"key"` // Object upload id UploadID *string `json:"upload_id,omitempty" name:"upload_id"` }
UploadsType presents Uploads.
func (*UploadsType) Validate ¶
func (v *UploadsType) Validate() error
Validate validates the Uploads.