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 Int64(v int64) *int64
- func Int64Value(v *int64) int64
- 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 AbortIncompleteMultipartUploadType
- type AbortMultipartUploadInput
- type AbortMultipartUploadOutput
- type AppendObjectInput
- type AppendObjectOutput
- 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) AbortMultipartUploadWithContext(ctx context.Context, objectKey string, input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error)
- func (s *Bucket) AppendObject(objectKey string, input *AppendObjectInput) (*AppendObjectOutput, error)
- func (s *Bucket) AppendObjectRequest(objectKey string, input *AppendObjectInput) (*request.Request, *AppendObjectOutput, error)
- func (s *Bucket) AppendObjectWithContext(ctx context.Context, objectKey string, input *AppendObjectInput) (*AppendObjectOutput, 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) CompleteMultipartUploadWithContext(ctx context.Context, objectKey string, input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error)
- func (s *Bucket) Delete() (*DeleteBucketOutput, error)
- func (s *Bucket) DeleteCNAME(input *DeleteBucketCNAMEInput) (*DeleteBucketCNAMEOutput, error)
- func (s *Bucket) DeleteCNAMERequest(input *DeleteBucketCNAMEInput) (*request.Request, *DeleteBucketCNAMEOutput, error)
- func (s *Bucket) DeleteCNAMEWithContext(ctx context.Context, input *DeleteBucketCNAMEInput) (*DeleteBucketCNAMEOutput, error)
- func (s *Bucket) DeleteCORS() (*DeleteBucketCORSOutput, error)
- func (s *Bucket) DeleteCORSRequest() (*request.Request, *DeleteBucketCORSOutput, error)
- func (s *Bucket) DeleteCORSWithContext(ctx context.Context) (*DeleteBucketCORSOutput, error)
- func (s *Bucket) DeleteExternalMirror() (*DeleteBucketExternalMirrorOutput, error)
- func (s *Bucket) DeleteExternalMirrorRequest() (*request.Request, *DeleteBucketExternalMirrorOutput, error)
- func (s *Bucket) DeleteExternalMirrorWithContext(ctx context.Context) (*DeleteBucketExternalMirrorOutput, error)
- func (s *Bucket) DeleteLifecycle() (*DeleteBucketLifecycleOutput, error)
- func (s *Bucket) DeleteLifecycleRequest() (*request.Request, *DeleteBucketLifecycleOutput, error)
- func (s *Bucket) DeleteLifecycleWithContext(ctx context.Context) (*DeleteBucketLifecycleOutput, error)
- func (s *Bucket) DeleteLogging() (*DeleteBucketLoggingOutput, error)
- func (s *Bucket) DeleteLoggingRequest() (*request.Request, *DeleteBucketLoggingOutput, error)
- func (s *Bucket) DeleteLoggingWithContext(ctx context.Context) (*DeleteBucketLoggingOutput, error)
- func (s *Bucket) DeleteMultipleObjects(input *DeleteMultipleObjectsInput) (*DeleteMultipleObjectsOutput, error)
- func (s *Bucket) DeleteMultipleObjectsRequest(input *DeleteMultipleObjectsInput) (*request.Request, *DeleteMultipleObjectsOutput, error)
- func (s *Bucket) DeleteMultipleObjectsWithContext(ctx context.Context, input *DeleteMultipleObjectsInput) (*DeleteMultipleObjectsOutput, error)
- func (s *Bucket) DeleteNotification() (*DeleteBucketNotificationOutput, error)
- func (s *Bucket) DeleteNotificationRequest() (*request.Request, *DeleteBucketNotificationOutput, error)
- func (s *Bucket) DeleteNotificationWithContext(ctx context.Context) (*DeleteBucketNotificationOutput, error)
- func (s *Bucket) DeleteObject(objectKey string) (*DeleteObjectOutput, error)
- func (s *Bucket) DeleteObjectRequest(objectKey string) (*request.Request, *DeleteObjectOutput, error)
- func (s *Bucket) DeleteObjectWithContext(ctx context.Context, objectKey string) (*DeleteObjectOutput, error)
- func (s *Bucket) DeletePolicy() (*DeleteBucketPolicyOutput, error)
- func (s *Bucket) DeletePolicyRequest() (*request.Request, *DeleteBucketPolicyOutput, error)
- func (s *Bucket) DeletePolicyWithContext(ctx context.Context) (*DeleteBucketPolicyOutput, error)
- func (s *Bucket) DeleteReplication() (*DeleteBucketReplicationOutput, error)
- func (s *Bucket) DeleteReplicationRequest() (*request.Request, *DeleteBucketReplicationOutput, error)
- func (s *Bucket) DeleteReplicationWithContext(ctx context.Context) (*DeleteBucketReplicationOutput, error)
- func (s *Bucket) DeleteRequest() (*request.Request, *DeleteBucketOutput, error)
- func (s *Bucket) DeleteWithContext(ctx context.Context) (*DeleteBucketOutput, error)
- func (s *Bucket) GetACL() (*GetBucketACLOutput, error)
- func (s *Bucket) GetACLRequest() (*request.Request, *GetBucketACLOutput, error)
- func (s *Bucket) GetACLWithContext(ctx context.Context) (*GetBucketACLOutput, error)
- func (s *Bucket) GetCNAME(input *GetBucketCNAMEInput) (*GetBucketCNAMEOutput, error)
- func (s *Bucket) GetCNAMERequest(input *GetBucketCNAMEInput) (*request.Request, *GetBucketCNAMEOutput, error)
- func (s *Bucket) GetCNAMEWithContext(ctx context.Context, input *GetBucketCNAMEInput) (*GetBucketCNAMEOutput, error)
- func (s *Bucket) GetCORS() (*GetBucketCORSOutput, error)
- func (s *Bucket) GetCORSRequest() (*request.Request, *GetBucketCORSOutput, error)
- func (s *Bucket) GetCORSWithContext(ctx context.Context) (*GetBucketCORSOutput, error)
- func (s *Bucket) GetExternalMirror() (*GetBucketExternalMirrorOutput, error)
- func (s *Bucket) GetExternalMirrorRequest() (*request.Request, *GetBucketExternalMirrorOutput, error)
- func (s *Bucket) GetExternalMirrorWithContext(ctx context.Context) (*GetBucketExternalMirrorOutput, error)
- func (s *Bucket) GetLifecycle() (*GetBucketLifecycleOutput, error)
- func (s *Bucket) GetLifecycleRequest() (*request.Request, *GetBucketLifecycleOutput, error)
- func (s *Bucket) GetLifecycleWithContext(ctx context.Context) (*GetBucketLifecycleOutput, error)
- func (s *Bucket) GetLogging() (*GetBucketLoggingOutput, error)
- func (s *Bucket) GetLoggingRequest() (*request.Request, *GetBucketLoggingOutput, error)
- func (s *Bucket) GetLoggingWithContext(ctx context.Context) (*GetBucketLoggingOutput, error)
- func (s *Bucket) GetNotification() (*GetBucketNotificationOutput, error)
- func (s *Bucket) GetNotificationRequest() (*request.Request, *GetBucketNotificationOutput, error)
- func (s *Bucket) GetNotificationWithContext(ctx context.Context) (*GetBucketNotificationOutput, 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) GetObjectWithContext(ctx context.Context, objectKey string, input *GetObjectInput) (*GetObjectOutput, error)
- func (s *Bucket) GetPolicy() (*GetBucketPolicyOutput, error)
- func (s *Bucket) GetPolicyRequest() (*request.Request, *GetBucketPolicyOutput, error)
- func (s *Bucket) GetPolicyWithContext(ctx context.Context) (*GetBucketPolicyOutput, error)
- func (s *Bucket) GetReplication() (*GetBucketReplicationOutput, error)
- func (s *Bucket) GetReplicationRequest() (*request.Request, *GetBucketReplicationOutput, error)
- func (s *Bucket) GetReplicationWithContext(ctx context.Context) (*GetBucketReplicationOutput, error)
- func (s *Bucket) GetStatistics() (*GetBucketStatisticsOutput, error)
- func (s *Bucket) GetStatisticsRequest() (*request.Request, *GetBucketStatisticsOutput, error)
- func (s *Bucket) GetStatisticsWithContext(ctx context.Context) (*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) HeadObjectWithContext(ctx context.Context, objectKey string, input *HeadObjectInput) (*HeadObjectOutput, error)
- func (s *Bucket) HeadRequest() (*request.Request, *HeadBucketOutput, error)
- func (s *Bucket) HeadWithContext(ctx context.Context) (*HeadBucketOutput, error)
- func (s *Bucket) ImageProcess(objectKey string, input *ImageProcessInput) (*ImageProcessOutput, error)
- func (s *Bucket) ImageProcessRequest(objectKey string, input *ImageProcessInput) (*request.Request, *ImageProcessOutput, error)
- func (s *Bucket) ImageProcessWithContext(ctx context.Context, objectKey string, input *ImageProcessInput) (*ImageProcessOutput, 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) InitiateMultipartUploadWithContext(ctx context.Context, objectKey string, input *InitiateMultipartUploadInput) (*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) ListMultipartUploadsWithContext(ctx context.Context, input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error)
- func (s *Bucket) ListMultipartWithContext(ctx context.Context, objectKey string, input *ListMultipartInput) (*ListMultipartOutput, error)
- func (s *Bucket) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error)
- func (s *Bucket) ListObjectsRequest(input *ListObjectsInput) (*request.Request, *ListObjectsOutput, error)
- func (s *Bucket) ListObjectsWithContext(ctx context.Context, input *ListObjectsInput) (*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) OptionsObjectWithContext(ctx context.Context, objectKey string, input *OptionsObjectInput) (*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) PutACLWithContext(ctx context.Context, input *PutBucketACLInput) (*PutBucketACLOutput, error)
- func (s *Bucket) PutCNAME(input *PutBucketCNAMEInput) (*PutBucketCNAMEOutput, error)
- func (s *Bucket) PutCNAMERequest(input *PutBucketCNAMEInput) (*request.Request, *PutBucketCNAMEOutput, error)
- func (s *Bucket) PutCNAMEWithContext(ctx context.Context, input *PutBucketCNAMEInput) (*PutBucketCNAMEOutput, error)
- func (s *Bucket) PutCORS(input *PutBucketCORSInput) (*PutBucketCORSOutput, error)
- func (s *Bucket) PutCORSRequest(input *PutBucketCORSInput) (*request.Request, *PutBucketCORSOutput, error)
- func (s *Bucket) PutCORSWithContext(ctx context.Context, input *PutBucketCORSInput) (*PutBucketCORSOutput, error)
- func (s *Bucket) PutExternalMirror(input *PutBucketExternalMirrorInput) (*PutBucketExternalMirrorOutput, error)
- func (s *Bucket) PutExternalMirrorRequest(input *PutBucketExternalMirrorInput) (*request.Request, *PutBucketExternalMirrorOutput, error)
- func (s *Bucket) PutExternalMirrorWithContext(ctx context.Context, input *PutBucketExternalMirrorInput) (*PutBucketExternalMirrorOutput, error)
- func (s *Bucket) PutLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error)
- func (s *Bucket) PutLifecycleRequest(input *PutBucketLifecycleInput) (*request.Request, *PutBucketLifecycleOutput, error)
- func (s *Bucket) PutLifecycleWithContext(ctx context.Context, input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error)
- func (s *Bucket) PutLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error)
- func (s *Bucket) PutLoggingRequest(input *PutBucketLoggingInput) (*request.Request, *PutBucketLoggingOutput, error)
- func (s *Bucket) PutLoggingWithContext(ctx context.Context, input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error)
- func (s *Bucket) PutNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error)
- func (s *Bucket) PutNotificationRequest(input *PutBucketNotificationInput) (*request.Request, *PutBucketNotificationOutput, error)
- func (s *Bucket) PutNotificationWithContext(ctx context.Context, input *PutBucketNotificationInput) (*PutBucketNotificationOutput, 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) PutObjectWithContext(ctx context.Context, objectKey string, input *PutObjectInput) (*PutObjectOutput, error)
- func (s *Bucket) PutPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error)
- func (s *Bucket) PutPolicyRequest(input *PutBucketPolicyInput) (*request.Request, *PutBucketPolicyOutput, error)
- func (s *Bucket) PutPolicyWithContext(ctx context.Context, input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error)
- func (s *Bucket) PutReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error)
- func (s *Bucket) PutReplicationRequest(input *PutBucketReplicationInput) (*request.Request, *PutBucketReplicationOutput, error)
- func (s *Bucket) PutReplicationWithContext(ctx context.Context, input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error)
- func (s *Bucket) PutRequest() (*request.Request, *PutBucketOutput, error)
- func (s *Bucket) PutWithContext(ctx context.Context) (*PutBucketOutput, error)
- func (s *Bucket) UploadMultipart(objectKey string, input *UploadMultipartInput) (*UploadMultipartOutput, error)
- func (s *Bucket) UploadMultipartRequest(objectKey string, input *UploadMultipartInput) (*request.Request, *UploadMultipartOutput, error)
- func (s *Bucket) UploadMultipartWithContext(ctx context.Context, objectKey string, input *UploadMultipartInput) (*UploadMultipartOutput, error)
- type BucketType
- type CORSRuleType
- type CloudfuncArgsType
- type CnameRecordType
- type CnameRecordsType
- type CnameType
- type CompleteMultipartUploadInput
- type CompleteMultipartUploadOutput
- type ConditionType
- type DeleteBucketCNAMEInput
- type DeleteBucketCNAMEOutput
- type DeleteBucketCORSOutput
- type DeleteBucketExternalMirrorOutput
- type DeleteBucketLifecycleOutput
- type DeleteBucketLoggingOutput
- type DeleteBucketNotificationOutput
- type DeleteBucketOutput
- type DeleteBucketPolicyOutput
- type DeleteBucketReplicationOutput
- type DeleteMultipleObjectsInput
- type DeleteMultipleObjectsOutput
- type DeleteObjectOutput
- type DestinationType
- type ExpirationType
- type FilterType
- type FiltersType
- type GetBucketACLOutput
- type GetBucketCNAMEInput
- type GetBucketCNAMEOutput
- type GetBucketCORSOutput
- type GetBucketExternalMirrorOutput
- type GetBucketLifecycleOutput
- type GetBucketLoggingOutput
- type GetBucketNotificationOutput
- type GetBucketPolicyOutput
- type GetBucketReplicationOutput
- type GetBucketStatisticsOutput
- type GetObjectInput
- type GetObjectOutput
- type GranteeType
- type HeadBucketOutput
- type HeadObjectInput
- type HeadObjectOutput
- type IPAddressType
- type ImageProcessInput
- type ImageProcessOutput
- 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 LoggingType
- type NotIPAddressType
- type NotificationType
- type ObjectPartType
- type OptionsObjectInput
- type OptionsObjectOutput
- type OwnerType
- type Properties
- type PutBucketACLInput
- type PutBucketACLOutput
- type PutBucketCNAMEInput
- type PutBucketCNAMEOutput
- type PutBucketCORSInput
- type PutBucketCORSOutput
- type PutBucketExternalMirrorInput
- type PutBucketExternalMirrorOutput
- type PutBucketLifecycleInput
- type PutBucketLifecycleOutput
- type PutBucketLoggingInput
- type PutBucketLoggingOutput
- type PutBucketNotificationInput
- type PutBucketNotificationOutput
- type PutBucketOutput
- type PutBucketPolicyInput
- type PutBucketPolicyOutput
- type PutBucketReplicationInput
- type PutBucketReplicationOutput
- type PutObjectInput
- type PutObjectOutput
- type RuleType
- type RulesType
- type Service
- func (s *Service) Bucket(bucketName string, zone string) (*Bucket, error)
- func (s *Service) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error)
- func (s *Service) ListBucketsRequest(input *ListBucketsInput) (*request.Request, *ListBucketsOutput, error)
- func (s *Service) ListBucketsWithContext(ctx context.Context, input *ListBucketsInput) (*ListBucketsOutput, error)
- type StatementType
- type StringLikeType
- type StringNotLikeType
- type TransitionType
- 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 Int64Value ¶
Int64Value returns the value of the given int64 pointer or 0 if the pointer is nil.
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 AbortIncompleteMultipartUploadType ¶
type AbortIncompleteMultipartUploadType struct { // days after initiation DaysAfterInitiation *int `json:"days_after_initiation" name:"days_after_initiation"` // Required }
AbortIncompleteMultipartUploadType presents AbortIncompleteMultipartUpload.
func (*AbortIncompleteMultipartUploadType) Validate ¶
func (v *AbortIncompleteMultipartUploadType) Validate() error
Validate validates the AbortIncompleteMultipartUpload.
type AbortMultipartUploadInput ¶
type AbortMultipartUploadInput struct { // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"query"` // 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 AppendObjectInput ¶
type AppendObjectInput struct { // Object append position Position *int64 `json:"position" name:"position" location:"query"` // Required // 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"` // Specify the storage class for object // XQSStorageClass's available values: STANDARD, STANDARD_IA XQSStorageClass *string `json:"X-QS-Storage-Class,omitempty" name:"X-QS-Storage-Class" location:"headers"` // The request body Body io.Reader `location:"body"` }
AppendObjectInput presents input for AppendObject.
func (*AppendObjectInput) Validate ¶
func (v *AppendObjectInput) Validate() error
Validate validates the input for AppendObject.
type AppendObjectOutput ¶
type AppendObjectOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // next position when append data to this object XQSNextAppendPosition *int64 `json:"X-QS-Next-Append-Position,omitempty" name:"X-QS-Next-Append-Position" location:"headers"` }
AppendObjectOutput presents output for AppendObject.
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) AbortMultipartUploadWithContext ¶ added in v4.1.0
func (s *Bucket) AbortMultipartUploadWithContext(ctx context.Context, objectKey string, input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error)
AbortMultipartUploadWithContext add context support for AbortMultipartUpload
func (*Bucket) AppendObject ¶
func (s *Bucket) AppendObject(objectKey string, input *AppendObjectInput) (*AppendObjectOutput, error)
AppendObject does Append the Object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/append.html
func (*Bucket) AppendObjectRequest ¶
func (s *Bucket) AppendObjectRequest(objectKey string, input *AppendObjectInput) (*request.Request, *AppendObjectOutput, error)
AppendObjectRequest creates request and output object of AppendObject.
func (*Bucket) AppendObjectWithContext ¶ added in v4.1.0
func (s *Bucket) AppendObjectWithContext(ctx context.Context, objectKey string, input *AppendObjectInput) (*AppendObjectOutput, error)
AppendObjectWithContext add context support for AppendObject
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) CompleteMultipartUploadWithContext ¶ added in v4.1.0
func (s *Bucket) CompleteMultipartUploadWithContext(ctx context.Context, objectKey string, input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error)
CompleteMultipartUploadWithContext add context support for 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) DeleteCNAME ¶ added in v4.1.0
func (s *Bucket) DeleteCNAME(input *DeleteBucketCNAMEInput) (*DeleteBucketCNAMEOutput, error)
DeleteCNAME does Delete bucket CNAME setting of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cname/delete_cname.html
func (*Bucket) DeleteCNAMERequest ¶ added in v4.1.0
func (s *Bucket) DeleteCNAMERequest(input *DeleteBucketCNAMEInput) (*request.Request, *DeleteBucketCNAMEOutput, error)
DeleteCNAMERequest creates request and output object of DeleteBucketCNAME.
func (*Bucket) DeleteCNAMEWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteCNAMEWithContext(ctx context.Context, input *DeleteBucketCNAMEInput) (*DeleteBucketCNAMEOutput, error)
DeleteCNAMEWithContext add context support for DeleteCNAME
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) DeleteCORSWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteCORSWithContext(ctx context.Context) (*DeleteBucketCORSOutput, error)
DeleteCORSWithContext add context support for DeleteCORS
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) DeleteExternalMirrorWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteExternalMirrorWithContext(ctx context.Context) (*DeleteBucketExternalMirrorOutput, error)
DeleteExternalMirrorWithContext add context support for DeleteExternalMirror
func (*Bucket) DeleteLifecycle ¶
func (s *Bucket) DeleteLifecycle() (*DeleteBucketLifecycleOutput, error)
DeleteLifecycle does Delete Lifecycle information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/lifecycle/delete_lifecycle.html
func (*Bucket) DeleteLifecycleRequest ¶
func (s *Bucket) DeleteLifecycleRequest() (*request.Request, *DeleteBucketLifecycleOutput, error)
DeleteLifecycleRequest creates request and output object of DeleteBucketLifecycle.
func (*Bucket) DeleteLifecycleWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteLifecycleWithContext(ctx context.Context) (*DeleteBucketLifecycleOutput, error)
DeleteLifecycleWithContext add context support for DeleteLifecycle
func (*Bucket) DeleteLogging ¶ added in v4.1.0
func (s *Bucket) DeleteLogging() (*DeleteBucketLoggingOutput, error)
DeleteLogging does Delete bucket logging setting of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/logging/delete_logging.html
func (*Bucket) DeleteLoggingRequest ¶ added in v4.1.0
func (s *Bucket) DeleteLoggingRequest() (*request.Request, *DeleteBucketLoggingOutput, error)
DeleteLoggingRequest creates request and output object of DeleteBucketLogging.
func (*Bucket) DeleteLoggingWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteLoggingWithContext(ctx context.Context) (*DeleteBucketLoggingOutput, error)
DeleteLoggingWithContext add context support for DeleteLogging
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) DeleteMultipleObjectsWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteMultipleObjectsWithContext(ctx context.Context, input *DeleteMultipleObjectsInput) (*DeleteMultipleObjectsOutput, error)
DeleteMultipleObjectsWithContext add context support for DeleteMultipleObjects
func (*Bucket) DeleteNotification ¶
func (s *Bucket) DeleteNotification() (*DeleteBucketNotificationOutput, error)
DeleteNotification does Delete Notification information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/notification/delete_notification.html
func (*Bucket) DeleteNotificationRequest ¶
func (s *Bucket) DeleteNotificationRequest() (*request.Request, *DeleteBucketNotificationOutput, error)
DeleteNotificationRequest creates request and output object of DeleteBucketNotification.
func (*Bucket) DeleteNotificationWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteNotificationWithContext(ctx context.Context) (*DeleteBucketNotificationOutput, error)
DeleteNotificationWithContext add context support for DeleteNotification
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) DeleteObjectWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteObjectWithContext(ctx context.Context, objectKey string) (*DeleteObjectOutput, error)
DeleteObjectWithContext add context support for 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) DeletePolicyWithContext ¶ added in v4.1.0
func (s *Bucket) DeletePolicyWithContext(ctx context.Context) (*DeleteBucketPolicyOutput, error)
DeletePolicyWithContext add context support for DeletePolicy
func (*Bucket) DeleteReplication ¶ added in v4.3.0
func (s *Bucket) DeleteReplication() (*DeleteBucketReplicationOutput, error)
DeleteReplication does Delete Replication information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/replication/delete_replication.html
func (*Bucket) DeleteReplicationRequest ¶ added in v4.3.0
func (s *Bucket) DeleteReplicationRequest() (*request.Request, *DeleteBucketReplicationOutput, error)
DeleteReplicationRequest creates request and output object of DeleteBucketReplication.
func (*Bucket) DeleteReplicationWithContext ¶ added in v4.3.0
func (s *Bucket) DeleteReplicationWithContext(ctx context.Context) (*DeleteBucketReplicationOutput, error)
DeleteReplicationWithContext add context support for DeleteReplication
func (*Bucket) DeleteRequest ¶
func (s *Bucket) DeleteRequest() (*request.Request, *DeleteBucketOutput, error)
DeleteRequest creates request and output object of DeleteBucket.
func (*Bucket) DeleteWithContext ¶ added in v4.1.0
func (s *Bucket) DeleteWithContext(ctx context.Context) (*DeleteBucketOutput, error)
DeleteWithContext add context support for Delete
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) GetACLWithContext ¶ added in v4.1.0
func (s *Bucket) GetACLWithContext(ctx context.Context) (*GetBucketACLOutput, error)
GetACLWithContext add context support for GetACL
func (*Bucket) GetCNAME ¶ added in v4.1.0
func (s *Bucket) GetCNAME(input *GetBucketCNAMEInput) (*GetBucketCNAMEOutput, error)
GetCNAME does Get bucket CNAME setting of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cname/get_cname.html
func (*Bucket) GetCNAMERequest ¶ added in v4.1.0
func (s *Bucket) GetCNAMERequest(input *GetBucketCNAMEInput) (*request.Request, *GetBucketCNAMEOutput, error)
GetCNAMERequest creates request and output object of GetBucketCNAME.
func (*Bucket) GetCNAMEWithContext ¶ added in v4.1.0
func (s *Bucket) GetCNAMEWithContext(ctx context.Context, input *GetBucketCNAMEInput) (*GetBucketCNAMEOutput, error)
GetCNAMEWithContext add context support for GetCNAME
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) GetCORSWithContext ¶ added in v4.1.0
func (s *Bucket) GetCORSWithContext(ctx context.Context) (*GetBucketCORSOutput, error)
GetCORSWithContext add context support for GetCORS
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) GetExternalMirrorWithContext ¶ added in v4.1.0
func (s *Bucket) GetExternalMirrorWithContext(ctx context.Context) (*GetBucketExternalMirrorOutput, error)
GetExternalMirrorWithContext add context support for GetExternalMirror
func (*Bucket) GetLifecycle ¶
func (s *Bucket) GetLifecycle() (*GetBucketLifecycleOutput, error)
GetLifecycle does Get Lifecycle information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/lifecycle/get_lifecycle.html
func (*Bucket) GetLifecycleRequest ¶
func (s *Bucket) GetLifecycleRequest() (*request.Request, *GetBucketLifecycleOutput, error)
GetLifecycleRequest creates request and output object of GetBucketLifecycle.
func (*Bucket) GetLifecycleWithContext ¶ added in v4.1.0
func (s *Bucket) GetLifecycleWithContext(ctx context.Context) (*GetBucketLifecycleOutput, error)
GetLifecycleWithContext add context support for GetLifecycle
func (*Bucket) GetLogging ¶ added in v4.1.0
func (s *Bucket) GetLogging() (*GetBucketLoggingOutput, error)
GetLogging does Get bucket logging setting of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/logging/get_logging.html
func (*Bucket) GetLoggingRequest ¶ added in v4.1.0
func (s *Bucket) GetLoggingRequest() (*request.Request, *GetBucketLoggingOutput, error)
GetLoggingRequest creates request and output object of GetBucketLogging.
func (*Bucket) GetLoggingWithContext ¶ added in v4.1.0
func (s *Bucket) GetLoggingWithContext(ctx context.Context) (*GetBucketLoggingOutput, error)
GetLoggingWithContext add context support for GetLogging
func (*Bucket) GetNotification ¶
func (s *Bucket) GetNotification() (*GetBucketNotificationOutput, error)
GetNotification does Get Notification information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/notification/get_notification.html
func (*Bucket) GetNotificationRequest ¶
func (s *Bucket) GetNotificationRequest() (*request.Request, *GetBucketNotificationOutput, error)
GetNotificationRequest creates request and output object of GetBucketNotification.
func (*Bucket) GetNotificationWithContext ¶ added in v4.1.0
func (s *Bucket) GetNotificationWithContext(ctx context.Context) (*GetBucketNotificationOutput, error)
GetNotificationWithContext add context support for GetNotification
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) GetObjectWithContext ¶ added in v4.1.0
func (s *Bucket) GetObjectWithContext(ctx context.Context, objectKey string, input *GetObjectInput) (*GetObjectOutput, error)
GetObjectWithContext add context support for 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) GetPolicyWithContext ¶ added in v4.1.0
func (s *Bucket) GetPolicyWithContext(ctx context.Context) (*GetBucketPolicyOutput, error)
GetPolicyWithContext add context support for GetPolicy
func (*Bucket) GetReplication ¶ added in v4.3.0
func (s *Bucket) GetReplication() (*GetBucketReplicationOutput, error)
GetReplication does Get Replication information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/replication/get_replication.html
func (*Bucket) GetReplicationRequest ¶ added in v4.3.0
func (s *Bucket) GetReplicationRequest() (*request.Request, *GetBucketReplicationOutput, error)
GetReplicationRequest creates request and output object of GetBucketReplication.
func (*Bucket) GetReplicationWithContext ¶ added in v4.3.0
func (s *Bucket) GetReplicationWithContext(ctx context.Context) (*GetBucketReplicationOutput, error)
GetReplicationWithContext add context support for GetReplication
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) GetStatisticsWithContext ¶ added in v4.1.0
func (s *Bucket) GetStatisticsWithContext(ctx context.Context) (*GetBucketStatisticsOutput, error)
GetStatisticsWithContext add context support for GetStatistics
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) HeadObjectWithContext ¶ added in v4.1.0
func (s *Bucket) HeadObjectWithContext(ctx context.Context, objectKey string, input *HeadObjectInput) (*HeadObjectOutput, error)
HeadObjectWithContext add context support for HeadObject
func (*Bucket) HeadRequest ¶
func (s *Bucket) HeadRequest() (*request.Request, *HeadBucketOutput, error)
HeadRequest creates request and output object of HeadBucket.
func (*Bucket) HeadWithContext ¶ added in v4.1.0
func (s *Bucket) HeadWithContext(ctx context.Context) (*HeadBucketOutput, error)
HeadWithContext add context support for Head
func (*Bucket) ImageProcess ¶
func (s *Bucket) ImageProcess(objectKey string, input *ImageProcessInput) (*ImageProcessOutput, error)
ImageProcess does Image process with the action on the object Documentation URL: https://docs.qingcloud.com/qingstor/data_process/image_process/index.html
func (*Bucket) ImageProcessRequest ¶
func (s *Bucket) ImageProcessRequest(objectKey string, input *ImageProcessInput) (*request.Request, *ImageProcessOutput, error)
ImageProcessRequest creates request and output object of ImageProcess.
func (*Bucket) ImageProcessWithContext ¶ added in v4.1.0
func (s *Bucket) ImageProcessWithContext(ctx context.Context, objectKey string, input *ImageProcessInput) (*ImageProcessOutput, error)
ImageProcessWithContext add context support for ImageProcess
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) InitiateMultipartUploadWithContext ¶ added in v4.1.0
func (s *Bucket) InitiateMultipartUploadWithContext(ctx context.Context, objectKey string, input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error)
InitiateMultipartUploadWithContext add context support for 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) ListMultipartUploadsWithContext ¶ added in v4.1.0
func (s *Bucket) ListMultipartUploadsWithContext(ctx context.Context, input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error)
ListMultipartUploadsWithContext add context support for ListMultipartUploads
func (*Bucket) ListMultipartWithContext ¶ added in v4.1.0
func (s *Bucket) ListMultipartWithContext(ctx context.Context, objectKey string, input *ListMultipartInput) (*ListMultipartOutput, error)
ListMultipartWithContext add context support for ListMultipart
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) ListObjectsWithContext ¶ added in v4.1.0
func (s *Bucket) ListObjectsWithContext(ctx context.Context, input *ListObjectsInput) (*ListObjectsOutput, error)
ListObjectsWithContext add context support for 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) OptionsObjectWithContext ¶ added in v4.1.0
func (s *Bucket) OptionsObjectWithContext(ctx context.Context, objectKey string, input *OptionsObjectInput) (*OptionsObjectOutput, error)
OptionsObjectWithContext add context support for 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) PutACLWithContext ¶ added in v4.1.0
func (s *Bucket) PutACLWithContext(ctx context.Context, input *PutBucketACLInput) (*PutBucketACLOutput, error)
PutACLWithContext add context support for PutACL
func (*Bucket) PutCNAME ¶ added in v4.1.0
func (s *Bucket) PutCNAME(input *PutBucketCNAMEInput) (*PutBucketCNAMEOutput, error)
PutCNAME does Set bucket CNAME of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cname/put_cname.html
func (*Bucket) PutCNAMERequest ¶ added in v4.1.0
func (s *Bucket) PutCNAMERequest(input *PutBucketCNAMEInput) (*request.Request, *PutBucketCNAMEOutput, error)
PutCNAMERequest creates request and output object of PutBucketCNAME.
func (*Bucket) PutCNAMEWithContext ¶ added in v4.1.0
func (s *Bucket) PutCNAMEWithContext(ctx context.Context, input *PutBucketCNAMEInput) (*PutBucketCNAMEOutput, error)
PutCNAMEWithContext add context support for PutCNAME
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) PutCORSWithContext ¶ added in v4.1.0
func (s *Bucket) PutCORSWithContext(ctx context.Context, input *PutBucketCORSInput) (*PutBucketCORSOutput, error)
PutCORSWithContext add context support for PutCORS
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) PutExternalMirrorWithContext ¶ added in v4.1.0
func (s *Bucket) PutExternalMirrorWithContext(ctx context.Context, input *PutBucketExternalMirrorInput) (*PutBucketExternalMirrorOutput, error)
PutExternalMirrorWithContext add context support for PutExternalMirror
func (*Bucket) PutLifecycle ¶
func (s *Bucket) PutLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error)
PutLifecycle does Set Lifecycle information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/lifecycle/put_lifecycle.html
func (*Bucket) PutLifecycleRequest ¶
func (s *Bucket) PutLifecycleRequest(input *PutBucketLifecycleInput) (*request.Request, *PutBucketLifecycleOutput, error)
PutLifecycleRequest creates request and output object of PutBucketLifecycle.
func (*Bucket) PutLifecycleWithContext ¶ added in v4.1.0
func (s *Bucket) PutLifecycleWithContext(ctx context.Context, input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error)
PutLifecycleWithContext add context support for PutLifecycle
func (*Bucket) PutLogging ¶ added in v4.1.0
func (s *Bucket) PutLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error)
PutLogging does Set bucket logging of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/logging/put_logging.html
func (*Bucket) PutLoggingRequest ¶ added in v4.1.0
func (s *Bucket) PutLoggingRequest(input *PutBucketLoggingInput) (*request.Request, *PutBucketLoggingOutput, error)
PutLoggingRequest creates request and output object of PutBucketLogging.
func (*Bucket) PutLoggingWithContext ¶ added in v4.1.0
func (s *Bucket) PutLoggingWithContext(ctx context.Context, input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error)
PutLoggingWithContext add context support for PutLogging
func (*Bucket) PutNotification ¶
func (s *Bucket) PutNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error)
PutNotification does Set Notification information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/notification/put_notification.html
func (*Bucket) PutNotificationRequest ¶
func (s *Bucket) PutNotificationRequest(input *PutBucketNotificationInput) (*request.Request, *PutBucketNotificationOutput, error)
PutNotificationRequest creates request and output object of PutBucketNotification.
func (*Bucket) PutNotificationWithContext ¶ added in v4.1.0
func (s *Bucket) PutNotificationWithContext(ctx context.Context, input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error)
PutNotificationWithContext add context support for PutNotification
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) PutObjectWithContext ¶ added in v4.1.0
func (s *Bucket) PutObjectWithContext(ctx context.Context, objectKey string, input *PutObjectInput) (*PutObjectOutput, error)
PutObjectWithContext add context support for 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) PutPolicyWithContext ¶ added in v4.1.0
func (s *Bucket) PutPolicyWithContext(ctx context.Context, input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error)
PutPolicyWithContext add context support for PutPolicy
func (*Bucket) PutReplication ¶ added in v4.3.0
func (s *Bucket) PutReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error)
PutReplication does Set Replication information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/replication/put_replication.html
func (*Bucket) PutReplicationRequest ¶ added in v4.3.0
func (s *Bucket) PutReplicationRequest(input *PutBucketReplicationInput) (*request.Request, *PutBucketReplicationOutput, error)
PutReplicationRequest creates request and output object of PutBucketReplication.
func (*Bucket) PutReplicationWithContext ¶ added in v4.3.0
func (s *Bucket) PutReplicationWithContext(ctx context.Context, input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error)
PutReplicationWithContext add context support for PutReplication
func (*Bucket) PutRequest ¶
func (s *Bucket) PutRequest() (*request.Request, *PutBucketOutput, error)
PutRequest creates request and output object of PutBucket.
func (*Bucket) PutWithContext ¶ added in v4.1.0
func (s *Bucket) PutWithContext(ctx context.Context) (*PutBucketOutput, error)
PutWithContext add context support for Put
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.
func (*Bucket) UploadMultipartWithContext ¶ added in v4.1.0
func (s *Bucket) UploadMultipartWithContext(ctx context.Context, objectKey string, input *UploadMultipartInput) (*UploadMultipartOutput, error)
UploadMultipartWithContext add context support for 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 CloudfuncArgsType ¶
type CloudfuncArgsType struct { Action *string `json:"action" name:"action"` // Required KeyPrefix *string `json:"key_prefix,omitempty" name:"key_prefix" default:"gen"` KeySeprate *string `json:"key_seprate,omitempty" name:"key_seprate" default:"_"` SaveBucket *string `json:"save_bucket,omitempty" name:"save_bucket"` }
CloudfuncArgsType presents CloudfuncArgs.
func (*CloudfuncArgsType) Validate ¶
func (v *CloudfuncArgsType) Validate() error
Validate validates the CloudfuncArgs.
type CnameRecordType ¶ added in v4.1.0
type CnameRecordType struct { // the created time of this CNAME record. Created *string `json:"created,omitempty" name:"created"` // The domain name to be bound to the bucket. The domain name must have been registered and not bound to another bucket. Domain *string `json:"domain,omitempty" name:"domain"` // The purpose of the domain name to be bound. Currently supports two types, normal and website. // Type's available values: normal, website Type *string `json:"type,omitempty" name:"type"` }
CnameRecordType presents CnameRecord.
func (*CnameRecordType) Validate ¶ added in v4.1.0
func (v *CnameRecordType) Validate() error
Validate validates the CnameRecord.
type CnameRecordsType ¶ added in v4.1.0
type CnameRecordsType struct { // the details of all eligible CNAME records. CnameRecords []*CnameRecordType `json:"cname_records,omitempty" name:"cname_records"` // the count of all eligible CNAME records. Count *int `json:"count,omitempty" name:"count"` }
CnameRecordsType presents CnameRecords.
func (*CnameRecordsType) Validate ¶ added in v4.1.0
func (v *CnameRecordsType) Validate() error
Validate validates the CnameRecords.
type CnameType ¶ added in v4.1.0
type CnameType struct { // The domain name to be bound to the bucket. The domain name must have been registered and not bound to another bucket. Domain *string `json:"domain" name:"domain"` // Required // The purpose of the domain name to be bound. Currently supports two types, normal and website. // Type's available values: normal, website Type *string `json:"type,omitempty" name:"type"` }
CnameType presents Cname.
type CompleteMultipartUploadInput ¶
type CompleteMultipartUploadInput struct { // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"query"` // 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" name:"object_parts" location:"elements"` // Required }
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"` // Encryption algorithm of the object XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"` }
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 DeleteBucketCNAMEInput ¶ added in v4.1.0
type DeleteBucketCNAMEInput struct { // domain name Domain *string `json:"domain" name:"domain" location:"elements"` // Required }
DeleteBucketCNAMEInput presents input for DeleteBucketCNAME.
func (*DeleteBucketCNAMEInput) Validate ¶ added in v4.1.0
func (v *DeleteBucketCNAMEInput) Validate() error
Validate validates the input for DeleteBucketCNAME.
type DeleteBucketCNAMEOutput ¶ added in v4.1.0
type DeleteBucketCNAMEOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketCNAMEOutput presents output for DeleteBucketCNAME.
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 DeleteBucketLifecycleOutput ¶
type DeleteBucketLifecycleOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketLifecycleOutput presents output for DeleteBucketLifecycle.
type DeleteBucketLoggingOutput ¶ added in v4.1.0
type DeleteBucketLoggingOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketLoggingOutput presents output for DeleteBucketLogging.
type DeleteBucketNotificationOutput ¶
type DeleteBucketNotificationOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketNotificationOutput presents output for DeleteBucketNotification.
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 DeleteBucketReplicationOutput ¶ added in v4.3.0
type DeleteBucketReplicationOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
DeleteBucketReplicationOutput presents output for DeleteBucketReplication.
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 DestinationType ¶ added in v4.3.0
type DestinationType struct { // dst bucket name Bucket *string `json:"bucket" name:"bucket"` // Required // dst storage class StorageClass *string `json:"storage_class,omitempty" name:"storage_class"` // dst zone Zone *string `json:"zone,omitempty" name:"zone"` }
DestinationType presents Destination.
func (*DestinationType) Validate ¶ added in v4.3.0
func (v *DestinationType) Validate() error
Validate validates the Destination.
type ExpirationType ¶
type ExpirationType struct { // days Days *int `json:"days,omitempty" name:"days"` }
ExpirationType presents Expiration.
func (*ExpirationType) Validate ¶
func (v *ExpirationType) Validate() error
Validate validates the Expiration.
type FilterType ¶
type FilterType struct { // Prefix matching Prefix *string `json:"prefix" name:"prefix"` // Required }
FilterType presents Filter.
type FiltersType ¶ added in v4.3.0
type FiltersType struct { // Prefix matching Prefix *string `json:"prefix,omitempty" name:"prefix"` }
FiltersType presents Filters.
func (*FiltersType) Validate ¶ added in v4.3.0
func (v *FiltersType) Validate() error
Validate validates the Filters.
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 GetBucketCNAMEInput ¶ added in v4.1.0
type GetBucketCNAMEInput struct { // Limit the type used for query, normal will be recognized if empty. // Type's available values: website, normal Type *string `json:"type,omitempty" name:"type" location:"query"` }
GetBucketCNAMEInput presents input for GetBucketCNAME.
func (*GetBucketCNAMEInput) Validate ¶ added in v4.1.0
func (v *GetBucketCNAMEInput) Validate() error
Validate validates the input for GetBucketCNAME.
type GetBucketCNAMEOutput ¶ added in v4.1.0
type GetBucketCNAMEOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // the details of all eligible CNAME records. CnameRecords []*CnameRecordType `json:"cname_records,omitempty" name:"cname_records" location:"elements"` // the count of all eligible CNAME records. Count *int `json:"count,omitempty" name:"count" location:"elements"` }
GetBucketCNAMEOutput presents output for GetBucketCNAME.
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 GetBucketLifecycleOutput ¶
type GetBucketLifecycleOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket Lifecycle rule Rule []*RuleType `json:"rule,omitempty" name:"rule" location:"elements"` }
GetBucketLifecycleOutput presents output for GetBucketLifecycle.
type GetBucketLoggingOutput ¶ added in v4.1.0
type GetBucketLoggingOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // The name of the bucket used to store logs. The user must be the owner of the bucket. TargetBucket *string `json:"target_bucket,omitempty" name:"target_bucket" location:"elements"` // generated log files' common prefix TargetPrefix *string `json:"target_prefix,omitempty" name:"target_prefix" location:"elements"` }
GetBucketLoggingOutput presents output for GetBucketLogging.
type GetBucketNotificationOutput ¶
type GetBucketNotificationOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket Notification Notifications []*NotificationType `json:"notifications,omitempty" name:"notifications" location:"elements"` }
GetBucketNotificationOutput presents output for GetBucketNotification.
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 GetBucketReplicationOutput ¶ added in v4.3.0
type GetBucketReplicationOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` // Bucket Replication rule Rules []*RulesType `json:"rules,omitempty" name:"rules" location:"elements"` }
GetBucketReplicationOutput presents output for GetBucketReplication.
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:"query"` // Specified the Content-Disposition response header ResponseContentDisposition *string `json:"response-content-disposition,omitempty" name:"response-content-disposition" location:"query"` // Specified the Content-Encoding response header ResponseContentEncoding *string `json:"response-content-encoding,omitempty" name:"response-content-encoding" location:"query"` // Specified the Content-Language response header ResponseContentLanguage *string `json:"response-content-language,omitempty" name:"response-content-language" location:"query"` // Specified the Content-Type response header ResponseContentType *string `json:"response-content-type,omitempty" name:"response-content-type" location:"query"` // Specified the Expires response header ResponseExpires *string `json:"response-expires,omitempty" name:"response-expires" location:"query"` // 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"` // The Cache-Control general-header field is used to specify directives for caching mechanisms in both requests and responses. CacheControl *string `json:"Cache-Control,omitempty" name:"Cache-Control" location:"headers"` // In a multipart/form-data body, the HTTP Content-Disposition general header is a header that can be used on the subpart of a multipart body to give information about the field it applies to. ContentDisposition *string `json:"Content-Disposition,omitempty" name:"Content-Disposition" location:"headers"` // The Content-Encoding entity header is used to compress the media-type. ContentEncoding *string `json:"Content-Encoding,omitempty" name:"Content-Encoding" location:"headers"` // The Content-Language entity header is used to describe the language(s) intended for the audience. ContentLanguage *string `json:"Content-Language,omitempty" name:"Content-Language" location:"headers"` // 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"` // The Content-Type entity header is used to indicate the media type of the resource. ContentType *string `json:"Content-Type,omitempty" name:"Content-Type" location:"headers"` // MD5sum of the object ETag *string `json:"ETag,omitempty" name:"ETag" location:"headers"` // The Expires header contains the date/time after which the response is considered stale. Expires *string `json:"Expires,omitempty" name:"Expires" 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"` // User-defined metadata XQSMetaData *map[string]string `json:"X-QS-MetaData,omitempty" name:"X-QS-MetaData" location:"headers"` // Storage class of the object XQSStorageClass *string `json:"X-QS-Storage-Class,omitempty" name:"X-QS-Storage-Class" location:"headers"` }
GetObjectOutput presents output for GetObject.
func (*GetObjectOutput) Close ¶
func (o *GetObjectOutput) Close() (err error)
Close will close the underlay body.
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"` // User-defined metadata XQSMetaData *map[string]string `json:"X-QS-MetaData,omitempty" name:"X-QS-MetaData" location:"headers"` // Next position when append data to this object, only returns when object type is appendable XQSNextAppendPosition *int64 `json:"X-QS-Next-Append-Position,omitempty" name:"X-QS-Next-Append-Position" location:"headers"` // Object type of this object, only returns when object type is appendable XQSObjectType *string `json:"X-QS-Object-Type,omitempty" name:"X-QS-Object-Type" location:"headers"` // Storage class of the object XQSStorageClass *string `json:"X-QS-Storage-Class,omitempty" name:"X-QS-Storage-Class" 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 ImageProcessInput ¶
type ImageProcessInput struct { // Image process action Action *string `json:"action" name:"action" location:"query"` // Required // Specified the Cache-Control response header ResponseCacheControl *string `json:"response-cache-control,omitempty" name:"response-cache-control" location:"query"` // Specified the Content-Disposition response header ResponseContentDisposition *string `json:"response-content-disposition,omitempty" name:"response-content-disposition" location:"query"` // Specified the Content-Encoding response header ResponseContentEncoding *string `json:"response-content-encoding,omitempty" name:"response-content-encoding" location:"query"` // Specified the Content-Language response header ResponseContentLanguage *string `json:"response-content-language,omitempty" name:"response-content-language" location:"query"` // Specified the Content-Type response header ResponseContentType *string `json:"response-content-type,omitempty" name:"response-content-type" location:"query"` // Specified the Expires response header ResponseExpires *string `json:"response-expires,omitempty" name:"response-expires" location:"query"` // Check whether the object has been modified IfModifiedSince *time.Time `json:"If-Modified-Since,omitempty" name:"If-Modified-Since" format:"RFC 822" location:"headers"` }
ImageProcessInput presents input for ImageProcess.
func (*ImageProcessInput) Validate ¶
func (v *ImageProcessInput) Validate() error
Validate validates the input for ImageProcess.
type ImageProcessOutput ¶
type ImageProcessOutput 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"` }
ImageProcessOutput presents output for ImageProcess.
func (*ImageProcessOutput) Close ¶
func (o *ImageProcessOutput) Close() (err error)
Close will close the underlay body.
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"` // User-defined metadata XQSMetaData *map[string]string `json:"X-QS-MetaData,omitempty" name:"X-QS-MetaData" location:"headers"` // Specify the storage class for object // XQSStorageClass's available values: STANDARD, STANDARD_IA XQSStorageClass *string `json:"X-QS-Storage-Class,omitempty" name:"X-QS-Storage-Class" 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"` // Object storage class StorageClass *string `json:"storage_class,omitempty" name:"storage_class"` }
KeyType presents Key.
type ListBucketsInput ¶
type ListBucketsInput struct { // Results count limit Limit *int `json:"limit,omitempty" name:"limit" location:"query"` // Limit results to keys that start at this offset Offset *int `json:"offset,omitempty" name:"offset" location:"query"` // 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:"query"` // Object multipart upload part number PartNumberMarker *int `json:"part_number_marker,omitempty" name:"part_number_marker" location:"query"` // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"query"` // 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:"query"` // Limit results returned from the first key after key_marker sorted by alphabetical order KeyMarker *string `json:"key_marker,omitempty" name:"key_marker" location:"query"` // Results count limit Limit *int `json:"limit,omitempty" name:"limit" location:"query"` // Limits results to keys that begin with the prefix Prefix *string `json:"prefix,omitempty" name:"prefix" location:"query"` // Limit results returned from the first uploading segment after upload_id_marker sorted by the time of upload_id UploadIDMarker *string `json:"upload_id_marker,omitempty" name:"upload_id_marker" location:"query"` }
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"` // Indicate if these are more results in the next page HasMore *bool `json:"has_more,omitempty" name:"has_more" 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 uploads list NextKeyMarker *string `json:"next_key_marker,omitempty" name:"next_key_marker" location:"elements"` // The last upload_id in uploads list NextUploadIDMarker *string `json:"next_upload_id_marker,omitempty" name:"next_upload_id_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:"query"` // Results count limit Limit *int `json:"limit,omitempty" name:"limit" location:"query"` // Limit results to keys that start at this marker Marker *string `json:"marker,omitempty" name:"marker" location:"query"` // Limits results to keys that begin with the prefix Prefix *string `json:"prefix,omitempty" name:"prefix" location:"query"` }
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"` // Indicate if these are more results in the next page HasMore *bool `json:"has_more,omitempty" name:"has_more" 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 LoggingType ¶ added in v4.1.0
type LoggingType struct { // The name of the bucket used to store logs. The user must be the owner of the bucket. TargetBucket *string `json:"target_bucket" name:"target_bucket"` // Required // generated log files' common prefix TargetPrefix *string `json:"target_prefix" name:"target_prefix"` // Required }
LoggingType presents Logging.
func (*LoggingType) Validate ¶ added in v4.1.0
func (v *LoggingType) Validate() error
Validate validates the Logging.
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 NotificationType ¶
type NotificationType struct { // Event processing service // Cloudfunc's available values: tupu-porn, notifier, image Cloudfunc *string `json:"cloudfunc" name:"cloudfunc"` // Required CloudfuncArgs *CloudfuncArgsType `json:"cloudfunc_args,omitempty" name:"cloudfunc_args"` // event types EventTypes []*string `json:"event_types" name:"event_types"` // Required // notification id ID *string `json:"id" name:"id"` // Required // notify url NotifyURL *string `json:"notify_url,omitempty" name:"notify_url"` // Object name matching rule ObjectFilters []*string `json:"object_filters,omitempty" name:"object_filters"` }
NotificationType presents Notification.
func (*NotificationType) Validate ¶
func (v *NotificationType) Validate() error
Validate validates the Notification.
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 PutBucketCNAMEInput ¶ added in v4.1.0
type PutBucketCNAMEInput struct { // The domain name to be bound to the bucket. The domain name must have been registered and not bound to another bucket. Domain *string `json:"domain" name:"domain" location:"elements"` // Required // The purpose of the domain name to be bound. Currently supports two types, normal and website. // Type's available values: normal, website Type *string `json:"type,omitempty" name:"type" location:"elements"` }
PutBucketCNAMEInput presents input for PutBucketCNAME.
func (*PutBucketCNAMEInput) Validate ¶ added in v4.1.0
func (v *PutBucketCNAMEInput) Validate() error
Validate validates the input for PutBucketCNAME.
type PutBucketCNAMEOutput ¶ added in v4.1.0
type PutBucketCNAMEOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketCNAMEOutput presents output for PutBucketCNAME.
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 PutBucketLifecycleInput ¶
type PutBucketLifecycleInput struct { // Bucket Lifecycle rule Rule []*RuleType `json:"rule" name:"rule" location:"elements"` // Required }
PutBucketLifecycleInput presents input for PutBucketLifecycle.
func (*PutBucketLifecycleInput) Validate ¶
func (v *PutBucketLifecycleInput) Validate() error
Validate validates the input for PutBucketLifecycle.
type PutBucketLifecycleOutput ¶
type PutBucketLifecycleOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketLifecycleOutput presents output for PutBucketLifecycle.
type PutBucketLoggingInput ¶ added in v4.1.0
type PutBucketLoggingInput struct { // The name of the bucket used to store logs. The user must be the owner of the bucket. TargetBucket *string `json:"target_bucket" name:"target_bucket" location:"elements"` // Required // generated log files' common prefix TargetPrefix *string `json:"target_prefix" name:"target_prefix" location:"elements"` // Required }
PutBucketLoggingInput presents input for PutBucketLogging.
func (*PutBucketLoggingInput) Validate ¶ added in v4.1.0
func (v *PutBucketLoggingInput) Validate() error
Validate validates the input for PutBucketLogging.
type PutBucketLoggingOutput ¶ added in v4.1.0
type PutBucketLoggingOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketLoggingOutput presents output for PutBucketLogging.
type PutBucketNotificationInput ¶
type PutBucketNotificationInput struct { // Bucket Notification Notifications []*NotificationType `json:"notifications" name:"notifications" location:"elements"` // Required }
PutBucketNotificationInput presents input for PutBucketNotification.
func (*PutBucketNotificationInput) Validate ¶
func (v *PutBucketNotificationInput) Validate() error
Validate validates the input for PutBucketNotification.
type PutBucketNotificationOutput ¶
type PutBucketNotificationOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketNotificationOutput presents output for PutBucketNotification.
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 PutBucketReplicationInput ¶ added in v4.3.0
type PutBucketReplicationInput struct { // Bucket Replication rules Rules []*RulesType `json:"rules" name:"rules" location:"elements"` // Required }
PutBucketReplicationInput presents input for PutBucketReplication.
func (*PutBucketReplicationInput) Validate ¶ added in v4.3.0
func (v *PutBucketReplicationInput) Validate() error
Validate validates the input for PutBucketReplication.
type PutBucketReplicationOutput ¶ added in v4.3.0
type PutBucketReplicationOutput struct { StatusCode *int `location:"statusCode"` RequestID *string `location:"requestID"` }
PutBucketReplicationOutput presents output for PutBucketReplication.
type PutObjectInput ¶
type PutObjectInput struct { // Object cache control CacheControl *string `json:"Cache-Control,omitempty" name:"Cache-Control" location:"headers"` // Object content encoding ContentEncoding *string `json:"Content-Encoding,omitempty" name:"Content-Encoding" location:"headers"` // 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"` // User-defined metadata XQSMetaData *map[string]string `json:"X-QS-MetaData,omitempty" name:"X-QS-MetaData" location:"headers"` // Use for modified metadata, valid (COPY/REPLACE) // XQSMetadataDirective's available values: COPY, REPLACE XQSMetadataDirective *string `json:"X-QS-Metadata-Directive,omitempty" name:"X-QS-Metadata-Directive" location:"headers"` // Move source, format (/<bucket-name>/<object-key>) XQSMoveSource *string `json:"X-QS-Move-Source,omitempty" name:"X-QS-Move-Source" location:"headers"` // Specify the storage class for object // XQSStorageClass's available values: STANDARD, STANDARD_IA XQSStorageClass *string `json:"X-QS-Storage-Class,omitempty" name:"X-QS-Storage-Class" 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"` // 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"` }
PutObjectOutput presents output for PutObject.
type RuleType ¶
type RuleType struct { AbortIncompleteMultipartUpload *AbortIncompleteMultipartUploadType `json:"abort_incomplete_multipart_upload,omitempty" name:"abort_incomplete_multipart_upload"` Expiration *ExpirationType `json:"expiration,omitempty" name:"expiration"` Filter *FilterType `json:"filter" name:"filter"` // Required // rule id ID *string `json:"id" name:"id"` // Required // rule status // Status's available values: enabled, disabled Status *string `json:"status" name:"status"` // Required Transition *TransitionType `json:"transition,omitempty" name:"transition"` }
RuleType presents Rule.
type RulesType ¶ added in v4.3.0
type RulesType struct { // rule delete marker // DeleteMarker's available values: enabled, disabled DeleteMarker *string `json:"delete_marker,omitempty" name:"delete_marker"` Destination *DestinationType `json:"destination" name:"destination"` // Required Filters *FiltersType `json:"filters" name:"filters"` // Required // rule id ID *string `json:"id" name:"id"` // Required // rule status // Status's available values: enabled, disabled Status *string `json:"status,omitempty" name:"status"` // rule sync marker // SyncMarker's available values: enabled, disabled SyncMarker *string `json:"sync_marker,omitempty" name:"sync_marker"` }
RulesType presents Rules.
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.
func (*Service) ListBucketsWithContext ¶ added in v4.1.0
func (s *Service) ListBucketsWithContext(ctx context.Context, input *ListBucketsInput) (*ListBucketsOutput, error)
ListBucketsWithContext add context support for 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 TransitionType ¶
type TransitionType struct { // days Days *int `json:"days,omitempty" name:"days"` // storage class StorageClass *int `json:"storage_class" name:"storage_class"` // Required }
TransitionType presents Transition.
func (*TransitionType) Validate ¶
func (v *TransitionType) Validate() error
Validate validates the Transition.
type UploadMultipartInput ¶
type UploadMultipartInput struct { // Object multipart upload part number PartNumber *int `json:"part_number" name:"part_number" default:"0" location:"query"` // Required // Object multipart upload ID UploadID *string `json:"upload_id" name:"upload_id" location:"query"` // 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"` // Specify range of the source object XQSCopyRange *string `json:"X-QS-Copy-Range,omitempty" name:"X-QS-Copy-Range" 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 Etag of copy source matches the specified value 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 since the specified date XQSCopySourceIfModifiedSince *time.Time `` /* 129-byte string literal not displayed */ // Check whether the Etag of copy source does not matches the specified value 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 unmodified since the specified date 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"` // 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"` // MD5sum of the object ETag *string `json:"ETag,omitempty" name:"ETag" location:"headers"` // Range of response data content XQSContentCopyRange *string `json:"X-QS-Content-Copy-Range,omitempty" name:"X-QS-Content-Copy-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"` }
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.