service

package
v2.2.15+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 21

Documentation

Overview

Package service provides QingStor Service API (API Version 2016-01-06)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns a pointer to the given bool value.

func BoolMap

func BoolMap(src map[string]bool) map[string]*bool

BoolMap converts a string map of bool values into a string map of bool pointers

func BoolSlice

func BoolSlice(src []bool) []*bool

BoolSlice converts a slice of bool values into a slice of bool pointers

func BoolValue

func BoolValue(v *bool) bool

BoolValue returns the value of the given bool pointer or false if the pointer is nil.

func BoolValueMap

func BoolValueMap(src map[string]*bool) map[string]bool

BoolValueMap converts a string map of bool pointers into a string map of bool values

func BoolValueSlice

func BoolValueSlice(src []*bool) []bool

BoolValueSlice converts a slice of bool pointers into a slice of bool values

func Int

func Int(v int) *int

Int returns a pointer to the given int value.

func IntMap

func IntMap(src map[string]int) map[string]*int

IntMap converts a string map of int values into a string map of int pointers

func IntSlice

func IntSlice(src []int) []*int

IntSlice converts a slice of int values into a slice of int pointers

func IntValue

func IntValue(v *int) int

IntValue returns the value of the given int pointer or 0 if the pointer is nil.

func IntValueMap

func IntValueMap(src map[string]*int) map[string]int

IntValueMap converts a string map of int pointers into a string map of int values

func IntValueSlice

func IntValueSlice(src []*int) []int

IntValueSlice converts a slice of int pointers into a slice of int values

func String

func String(v string) *string

String returns a pointer to the given string value.

func StringMap

func StringMap(src map[string]string) map[string]*string

StringMap converts a string map of string values into a string map of string pointers

func StringSlice

func StringSlice(src []string) []*string

StringSlice converts a slice of string values into a slice of string pointers

func StringValue

func StringValue(v *string) string

StringValue returns the value of the given string pointer or "" if the pointer is nil.

func StringValueMap

func StringValueMap(src map[string]*string) map[string]string

StringValueMap converts a string map of string pointers into a string map of string values

func StringValueSlice

func StringValueSlice(src []*string) []string

StringValueSlice converts a slice of string pointers into a slice of string values

func Time

func Time(v time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func TimeMap

func TimeMap(src map[string]time.Time) map[string]*time.Time

TimeMap converts a string map of time.Time values into a string map of time.Time pointers

func TimeSlice

func TimeSlice(src []time.Time) []*time.Time

TimeSlice converts a slice of time.Time values into a slice of time.Time pointers

func TimeUnixMilli

func TimeUnixMilli(t time.Time) int64

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

func TimeValue(v *time.Time) time.Time

TimeValue returns the value of the given time.Time pointer or time.Time{} if the pointer is nil.

func TimeValueMap

func TimeValueMap(src map[string]*time.Time) map[string]time.Time

TimeValueMap converts a string map of time.Time pointers into a string map of time.Time values

func TimeValueSlice

func TimeValueSlice(src []*time.Time) []time.Time

TimeValueSlice converts a slice of time.Time pointers into a slice 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.

func (*ACLType) Validate

func (v *ACLType) Validate() error

Validate validates the 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

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 Bucket

type Bucket struct {
	Config     *config.Config
	Properties *Properties
}

Bucket presents bucket.

func (*Bucket) AbortMultipartUpload

func (s *Bucket) AbortMultipartUpload(objectKey string, input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error)

AbortMultipartUpload does Abort multipart upload. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/abort_multipart_upload.html

func (*Bucket) AbortMultipartUploadRequest

func (s *Bucket) AbortMultipartUploadRequest(objectKey string, input *AbortMultipartUploadInput) (*request.Request, *AbortMultipartUploadOutput, error)

AbortMultipartUploadRequest creates request and output object of AbortMultipartUpload.

func (*Bucket) CompleteMultipartUpload

func (s *Bucket) CompleteMultipartUpload(objectKey string, input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error)

CompleteMultipartUpload does Complete multipart upload. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/complete_multipart_upload.html

func (*Bucket) CompleteMultipartUploadRequest

func (s *Bucket) CompleteMultipartUploadRequest(objectKey string, input *CompleteMultipartUploadInput) (*request.Request, *CompleteMultipartUploadOutput, error)

CompleteMultipartUploadRequest creates request and output object of CompleteMultipartUpload.

func (*Bucket) Delete

func (s *Bucket) Delete() (*DeleteBucketOutput, error)

Delete does Delete a bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/delete.html

func (*Bucket) DeleteCORS

func (s *Bucket) DeleteCORS() (*DeleteBucketCORSOutput, error)

DeleteCORS does Delete CORS information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cors/delete_cors.html

func (*Bucket) DeleteCORSRequest

func (s *Bucket) DeleteCORSRequest() (*request.Request, *DeleteBucketCORSOutput, error)

DeleteCORSRequest creates request and output object of DeleteBucketCORS.

func (*Bucket) DeleteExternalMirror

func (s *Bucket) DeleteExternalMirror() (*DeleteBucketExternalMirrorOutput, error)

DeleteExternalMirror does Delete external mirror of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/external_mirror/delete_external_mirror.html

func (*Bucket) DeleteExternalMirrorRequest

func (s *Bucket) DeleteExternalMirrorRequest() (*request.Request, *DeleteBucketExternalMirrorOutput, error)

DeleteExternalMirrorRequest creates request and output object of DeleteBucketExternalMirror.

func (*Bucket) 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) 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) 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) DeleteObject

func (s *Bucket) DeleteObject(objectKey string) (*DeleteObjectOutput, error)

DeleteObject does Delete the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/delete.html

func (*Bucket) DeleteObjectRequest

func (s *Bucket) DeleteObjectRequest(objectKey string) (*request.Request, *DeleteObjectOutput, error)

DeleteObjectRequest creates request and output object of DeleteObject.

func (*Bucket) DeletePolicy

func (s *Bucket) DeletePolicy() (*DeleteBucketPolicyOutput, error)

DeletePolicy does Delete policy information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/policy/delete_policy.html

func (*Bucket) DeletePolicyRequest

func (s *Bucket) DeletePolicyRequest() (*request.Request, *DeleteBucketPolicyOutput, error)

DeletePolicyRequest creates request and output object of DeleteBucketPolicy.

func (*Bucket) DeleteRequest

func (s *Bucket) DeleteRequest() (*request.Request, *DeleteBucketOutput, error)

DeleteRequest creates request and output object of DeleteBucket.

func (*Bucket) GetACL

func (s *Bucket) GetACL() (*GetBucketACLOutput, error)

GetACL does Get ACL information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/get_acl.html

func (*Bucket) GetACLRequest

func (s *Bucket) GetACLRequest() (*request.Request, *GetBucketACLOutput, error)

GetACLRequest creates request and output object of GetBucketACL.

func (*Bucket) GetCORS

func (s *Bucket) GetCORS() (*GetBucketCORSOutput, error)

GetCORS does Get CORS information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cors/get_cors.html

func (*Bucket) GetCORSRequest

func (s *Bucket) GetCORSRequest() (*request.Request, *GetBucketCORSOutput, error)

GetCORSRequest creates request and output object of GetBucketCORS.

func (*Bucket) GetExternalMirror

func (s *Bucket) GetExternalMirror() (*GetBucketExternalMirrorOutput, error)

GetExternalMirror does Get external mirror of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/external_mirror/get_external_mirror.html

func (*Bucket) GetExternalMirrorRequest

func (s *Bucket) GetExternalMirrorRequest() (*request.Request, *GetBucketExternalMirrorOutput, error)

GetExternalMirrorRequest creates request and output object of GetBucketExternalMirror.

func (*Bucket) 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) 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) GetObject

func (s *Bucket) GetObject(objectKey string, input *GetObjectInput) (*GetObjectOutput, error)

GetObject does Retrieve the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/get.html

func (*Bucket) GetObjectRequest

func (s *Bucket) GetObjectRequest(objectKey string, input *GetObjectInput) (*request.Request, *GetObjectOutput, error)

GetObjectRequest creates request and output object of GetObject.

func (*Bucket) GetPolicy

func (s *Bucket) GetPolicy() (*GetBucketPolicyOutput, error)

GetPolicy does Get policy information of the bucket. Documentation URL: https://https://docs.qingcloud.com/qingstor/api/bucket/policy/get_policy.html

func (*Bucket) GetPolicyRequest

func (s *Bucket) GetPolicyRequest() (*request.Request, *GetBucketPolicyOutput, error)

GetPolicyRequest creates request and output object of GetBucketPolicy.

func (*Bucket) GetStatistics

func (s *Bucket) GetStatistics() (*GetBucketStatisticsOutput, error)

GetStatistics does Get statistics information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/get_stats.html

func (*Bucket) GetStatisticsRequest

func (s *Bucket) GetStatisticsRequest() (*request.Request, *GetBucketStatisticsOutput, error)

GetStatisticsRequest creates request and output object of GetBucketStatistics.

func (*Bucket) Head

func (s *Bucket) Head() (*HeadBucketOutput, error)

Head does Check whether the bucket exists and available. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/head.html

func (*Bucket) HeadObject

func (s *Bucket) HeadObject(objectKey string, input *HeadObjectInput) (*HeadObjectOutput, error)

HeadObject does Check whether the object exists and available. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/head.html

func (*Bucket) HeadObjectRequest

func (s *Bucket) HeadObjectRequest(objectKey string, input *HeadObjectInput) (*request.Request, *HeadObjectOutput, error)

HeadObjectRequest creates request and output object of HeadObject.

func (*Bucket) HeadRequest

func (s *Bucket) HeadRequest() (*request.Request, *HeadBucketOutput, error)

HeadRequest creates request and output object of HeadBucket.

func (*Bucket) 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) InitiateMultipartUpload

func (s *Bucket) InitiateMultipartUpload(objectKey string, input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error)

InitiateMultipartUpload does Initial multipart upload on the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/initiate_multipart_upload.html

func (*Bucket) InitiateMultipartUploadRequest

func (s *Bucket) InitiateMultipartUploadRequest(objectKey string, input *InitiateMultipartUploadInput) (*request.Request, *InitiateMultipartUploadOutput, error)

InitiateMultipartUploadRequest creates request and output object of InitiateMultipartUpload.

func (*Bucket) ListMultipart

func (s *Bucket) ListMultipart(objectKey string, input *ListMultipartInput) (*ListMultipartOutput, error)

ListMultipart does List object parts. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/list_multipart.html

func (*Bucket) ListMultipartRequest

func (s *Bucket) ListMultipartRequest(objectKey string, input *ListMultipartInput) (*request.Request, *ListMultipartOutput, error)

ListMultipartRequest creates request and output object of ListMultipart.

func (*Bucket) ListMultipartUploads

func (s *Bucket) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error)

ListMultipartUploads does List multipart uploads in the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/list_multipart_uploads.html

func (*Bucket) ListMultipartUploadsRequest

func (s *Bucket) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (*request.Request, *ListMultipartUploadsOutput, error)

ListMultipartUploadsRequest creates request and output object of ListMultipartUploads.

func (*Bucket) ListObjects

func (s *Bucket) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error)

ListObjects does Retrieve the object list in a bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/get.html

func (*Bucket) ListObjectsRequest

func (s *Bucket) ListObjectsRequest(input *ListObjectsInput) (*request.Request, *ListObjectsOutput, error)

ListObjectsRequest creates request and output object of ListObjects.

func (*Bucket) OptionsObject

func (s *Bucket) OptionsObject(objectKey string, input *OptionsObjectInput) (*OptionsObjectOutput, error)

OptionsObject does Check whether the object accepts a origin with method and header. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/options.html

func (*Bucket) OptionsObjectRequest

func (s *Bucket) OptionsObjectRequest(objectKey string, input *OptionsObjectInput) (*request.Request, *OptionsObjectOutput, error)

OptionsObjectRequest creates request and output object of OptionsObject.

func (*Bucket) Put

func (s *Bucket) Put() (*PutBucketOutput, error)

Put does Create a new bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/put.html

func (*Bucket) PutACL

func (s *Bucket) PutACL(input *PutBucketACLInput) (*PutBucketACLOutput, error)

PutACL does Set ACL information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/put_acl.html

func (*Bucket) PutACLRequest

func (s *Bucket) PutACLRequest(input *PutBucketACLInput) (*request.Request, *PutBucketACLOutput, error)

PutACLRequest creates request and output object of PutBucketACL.

func (*Bucket) PutCORS

func (s *Bucket) PutCORS(input *PutBucketCORSInput) (*PutBucketCORSOutput, error)

PutCORS does Set CORS information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/cors/put_cors.html

func (*Bucket) PutCORSRequest

func (s *Bucket) PutCORSRequest(input *PutBucketCORSInput) (*request.Request, *PutBucketCORSOutput, error)

PutCORSRequest creates request and output object of PutBucketCORS.

func (*Bucket) PutExternalMirror

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) 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) 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) PutObject

func (s *Bucket) PutObject(objectKey string, input *PutObjectInput) (*PutObjectOutput, error)

PutObject does Upload the object. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/put.html

func (*Bucket) PutObjectRequest

func (s *Bucket) PutObjectRequest(objectKey string, input *PutObjectInput) (*request.Request, *PutObjectOutput, error)

PutObjectRequest creates request and output object of PutObject.

func (*Bucket) PutPolicy

func (s *Bucket) PutPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error)

PutPolicy does Set policy information of the bucket. Documentation URL: https://docs.qingcloud.com/qingstor/api/bucket/policy/put_policy.html

func (*Bucket) PutPolicyRequest

func (s *Bucket) PutPolicyRequest(input *PutBucketPolicyInput) (*request.Request, *PutBucketPolicyOutput, error)

PutPolicyRequest creates request and output object of PutBucketPolicy.

func (*Bucket) PutRequest

func (s *Bucket) PutRequest() (*request.Request, *PutBucketOutput, error)

PutRequest creates request and output object of PutBucket.

func (*Bucket) UploadMultipart

func (s *Bucket) UploadMultipart(objectKey string, input *UploadMultipartInput) (*UploadMultipartOutput, error)

UploadMultipart does Upload object multipart. Documentation URL: https://docs.qingcloud.com/qingstor/api/object/multipart/upload_multipart.html

func (*Bucket) UploadMultipartRequest

func (s *Bucket) UploadMultipartRequest(objectKey string, input *UploadMultipartInput) (*request.Request, *UploadMultipartOutput, error)

UploadMultipartRequest creates request and output object of UploadMultipart.

type BucketType

type BucketType struct {
	// Created time of the bucket
	Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601"`
	// QingCloud Zone ID
	Location *string `json:"location,omitempty" name:"location"`
	// Bucket name
	Name *string `json:"name,omitempty" name:"name"`
	// URL to access the bucket
	URL *string `json:"url,omitempty" name:"url"`
}

BucketType presents Bucket.

func (*BucketType) Validate

func (v *BucketType) Validate() error

Validate validates the 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 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 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 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 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 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.

func (*FilterType) Validate

func (v *FilterType) Validate() error

Validate validates the Filter.

type GetBucketACLOutput

type GetBucketACLOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`

	// Bucket ACL rules
	ACL []*ACLType `json:"acl,omitempty" name:"acl" location:"elements"`
	// Bucket owner
	Owner *OwnerType `json:"owner,omitempty" name:"owner" location:"elements"`
}

GetBucketACLOutput presents output for GetBucketACL.

type GetBucketCORSOutput

type GetBucketCORSOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`

	// Bucket CORS rules
	CORSRules []*CORSRuleType `json:"cors_rules,omitempty" name:"cors_rules" location:"elements"`
}

GetBucketCORSOutput presents output for GetBucketCORS.

type GetBucketExternalMirrorOutput

type GetBucketExternalMirrorOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`

	// Source site url
	SourceSite *string `json:"source_site,omitempty" name:"source_site" location:"elements"`
}

GetBucketExternalMirrorOutput presents output for GetBucketExternalMirror.

type 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 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 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"`
	// 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"`
	// 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"`
	// 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.

func (*IsNullType) Validate

func (v *IsNullType) Validate() error

Validate validates the IsNull.

type KeyDeleteErrorType

type KeyDeleteErrorType struct {
	// Error code
	Code *string `json:"code,omitempty" name:"code"`
	// Object key
	Key *string `json:"key,omitempty" name:"key"`
	// Error message
	Message *string `json:"message,omitempty" name:"message"`
}

KeyDeleteErrorType presents KeyDeleteError.

func (*KeyDeleteErrorType) Validate

func (v *KeyDeleteErrorType) Validate() error

Validate validates the KeyDeleteError.

type KeyType

type KeyType struct {
	// Object created time
	Created *time.Time `json:"created,omitempty" name:"created" format:"ISO 8601"`
	// Whether this key is encrypted
	Encrypted *bool `json:"encrypted,omitempty" name:"encrypted"`
	// MD5sum of the object
	Etag *string `json:"etag,omitempty" name:"etag"`
	// Object key
	Key *string `json:"key,omitempty" name:"key"`
	// MIME type of the object
	MimeType *string `json:"mime_type,omitempty" name:"mime_type"`
	// Last modified time in unix time format
	Modified *int `json:"modified,omitempty" name:"modified"`
	// Object content size
	Size *int64 `json:"size,omitempty" name:"size"`
}

KeyType presents Key.

func (*KeyType) Validate

func (v *KeyType) Validate() error

Validate validates the Key.

type ListBucketsInput

type ListBucketsInput struct {
	// Limits results to buckets that in the location
	Location *string `json:"Location,omitempty" name:"Location" location:"headers"`
}

ListBucketsInput presents input for ListBuckets.

func (*ListBucketsInput) Validate

func (v *ListBucketsInput) Validate() error

Validate validates the input for ListBuckets.

type ListBucketsOutput

type ListBucketsOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`

	// Buckets information
	Buckets []*BucketType `json:"buckets,omitempty" name:"buckets" location:"elements"`
	// Bucket count
	Count *int `json:"count,omitempty" name:"count" location:"elements"`
}

ListBucketsOutput presents output for ListBuckets.

type ListMultipartInput

type ListMultipartInput struct {
	// Limit results count
	Limit *int `json:"limit,omitempty" name:"limit" location:"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"`
	// 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"`
	// Object keys
	Keys []*KeyType `json:"keys,omitempty" name:"keys" location:"elements"`
	// Limit that specified in request parameters
	Limit *int `json:"limit,omitempty" name:"limit" location:"elements"`
	// Marker that specified in request parameters
	Marker *string `json:"marker,omitempty" name:"marker" location:"elements"`
	// Bucket name
	Name *string `json:"name,omitempty" name:"name" location:"elements"`
	// The last key in keys list
	NextMarker *string `json:"next_marker,omitempty" name:"next_marker" location:"elements"`
	// Bucket owner
	Owner *OwnerType `json:"owner,omitempty" name:"owner" location:"elements"`
	// Prefix that specified in request parameters
	Prefix *string `json:"prefix,omitempty" name:"prefix" location:"elements"`
}

ListObjectsOutput presents output for ListObjects.

type NotIPAddressType

type NotIPAddressType struct {
	// Source IP
	SourceIP []*string `json:"source_ip,omitempty" name:"source_ip"`
}

NotIPAddressType presents NotIPAddress.

func (*NotIPAddressType) Validate

func (v *NotIPAddressType) Validate() error

Validate validates the NotIPAddress.

type 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.

func (*OwnerType) Validate

func (v *OwnerType) Validate() error

Validate validates the Owner.

type Properties

type Properties struct {
	// Bucket name
	BucketName *string `json:"bucket-name" name:"bucket-name"` // Required
	// Object key
	ObjectKey *string `json:"object-key" name:"object-key"` // Required
	// QingCloud Zone ID
	Zone *string `json:"zone" name:"zone"`
}

Properties presents the service properties.

type PutBucketACLInput

type PutBucketACLInput struct {
	// Bucket ACL rules
	ACL []*ACLType `json:"acl" name:"acl" location:"elements"` // Required

}

PutBucketACLInput presents input for PutBucketACL.

func (*PutBucketACLInput) Validate

func (v *PutBucketACLInput) Validate() error

Validate validates the input for PutBucketACL.

type PutBucketACLOutput

type PutBucketACLOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`
}

PutBucketACLOutput presents output for PutBucketACL.

type PutBucketCORSInput

type PutBucketCORSInput struct {
	// Bucket CORS rules
	CORSRules []*CORSRuleType `json:"cors_rules" name:"cors_rules" location:"elements"` // Required

}

PutBucketCORSInput presents input for PutBucketCORS.

func (*PutBucketCORSInput) Validate

func (v *PutBucketCORSInput) Validate() error

Validate validates the input for PutBucketCORS.

type PutBucketCORSOutput

type PutBucketCORSOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`
}

PutBucketCORSOutput presents output for PutBucketCORS.

type PutBucketExternalMirrorInput

type PutBucketExternalMirrorInput struct {
	// Source site url
	SourceSite *string `json:"source_site" name:"source_site" location:"elements"` // Required

}

PutBucketExternalMirrorInput presents input for PutBucketExternalMirror.

func (*PutBucketExternalMirrorInput) Validate

func (v *PutBucketExternalMirrorInput) Validate() error

Validate validates the input for PutBucketExternalMirror.

type PutBucketExternalMirrorOutput

type PutBucketExternalMirrorOutput struct {
	StatusCode *int `location:"statusCode"`

	RequestID *string `location:"requestID"`
}

PutBucketExternalMirrorOutput presents output for PutBucketExternalMirror.

type 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 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 PutObjectInput

type PutObjectInput struct {
	// Object content size
	ContentLength *int64 `json:"Content-Length" name:"Content-Length" location:"headers"` // Required
	// Object MD5sum
	ContentMD5 *string `json:"Content-MD5,omitempty" name:"Content-MD5" location:"headers"`
	// Object content type
	ContentType *string `json:"Content-Type,omitempty" name:"Content-Type" location:"headers"`
	// Used to indicate that particular server behaviors are required by the client
	Expect *string `json:"Expect,omitempty" name:"Expect" location:"headers"`
	// Copy source, format (/<bucket-name>/<object-key>)
	XQSCopySource *string `json:"X-QS-Copy-Source,omitempty" name:"X-QS-Copy-Source" location:"headers"`
	// Encryption algorithm of the object
	XQSCopySourceEncryptionCustomerAlgorithm *string `` /* 136-byte string literal not displayed */
	// Encryption key of the object
	XQSCopySourceEncryptionCustomerKey *string `json:"X-QS-Copy-Source-Encryption-Customer-Key,omitempty" name:"X-QS-Copy-Source-Encryption-Customer-Key" location:"headers"`
	// MD5sum of encryption key
	XQSCopySourceEncryptionCustomerKeyMD5 *string `` /* 132-byte string literal not displayed */
	// Check whether the copy source matches
	XQSCopySourceIfMatch *string `json:"X-QS-Copy-Source-If-Match,omitempty" name:"X-QS-Copy-Source-If-Match" location:"headers"`
	// Check whether the copy source has been modified
	XQSCopySourceIfModifiedSince *time.Time `` /* 129-byte string literal not displayed */
	// Check whether the copy source does not match
	XQSCopySourceIfNoneMatch *string `json:"X-QS-Copy-Source-If-None-Match,omitempty" name:"X-QS-Copy-Source-If-None-Match" location:"headers"`
	// Check whether the copy source has not been modified
	XQSCopySourceIfUnmodifiedSince *time.Time `` /* 133-byte string literal not displayed */
	// Encryption algorithm of the object
	XQSEncryptionCustomerAlgorithm *string `json:"X-QS-Encryption-Customer-Algorithm,omitempty" name:"X-QS-Encryption-Customer-Algorithm" location:"headers"`
	// Encryption key of the object
	XQSEncryptionCustomerKey *string `json:"X-QS-Encryption-Customer-Key,omitempty" name:"X-QS-Encryption-Customer-Key" location:"headers"`
	// MD5sum of encryption key
	XQSEncryptionCustomerKeyMD5 *string `json:"X-QS-Encryption-Customer-Key-MD5,omitempty" name:"X-QS-Encryption-Customer-Key-MD5" location:"headers"`
	// Check whether fetch target object has not been modified
	XQSFetchIfUnmodifiedSince *time.Time `json:"X-QS-Fetch-If-Unmodified-Since,omitempty" name:"X-QS-Fetch-If-Unmodified-Since" format:"RFC 822" location:"headers"`
	// Fetch source, should be a valid url
	XQSFetchSource *string `json:"X-QS-Fetch-Source,omitempty" name:"X-QS-Fetch-Source" location:"headers"`
	// Move source, format (/<bucket-name>/<object-key>)
	XQSMoveSource *string `json:"X-QS-Move-Source,omitempty" name:"X-QS-Move-Source" location:"headers"`
	// 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.

func (*RuleType) Validate

func (v *RuleType) Validate() error

Validate validates the Rule.

type Service

type Service struct {
	Config *config.Config
}

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 Init

func Init(c *config.Config) (*Service, error)

Init initializes a new service.

func (*Service) Bucket

func (s *Service) Bucket(bucketName string, zone string) (*Bucket, error)

Bucket initializes a new bucket.

func (*Service) ListBuckets

func (s *Service) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error)

ListBuckets does Retrieve the bucket list. Documentation URL: https://docs.qingcloud.com/qingstor/api/service/get.html

func (*Service) ListBucketsRequest

func (s *Service) ListBucketsRequest(input *ListBucketsInput) (*request.Request, *ListBucketsOutput, error)

ListBucketsRequest creates request and output object of ListBuckets.

type StatementType

type StatementType struct {
	// QingStor API methods
	Action    []*string      `json:"action" name:"action"` // Required
	Condition *ConditionType `json:"condition,omitempty" name:"condition"`
	// Statement effect
	// Effect's available values: allow, deny
	Effect *string `json:"effect" name:"effect"` // Required
	// Bucket policy id, must be unique
	ID *string `json:"id" name:"id"` // Required
	// The resources to apply bucket policy
	Resource []*string `json:"resource,omitempty" name:"resource"`
	// The user to apply bucket policy
	User []*string `json:"user" name:"user"` // Required

}

StatementType presents Statement.

func (*StatementType) Validate

func (v *StatementType) Validate() error

Validate validates the Statement.

type StringLikeType

type StringLikeType struct {
	// Refer url
	Referer []*string `json:"Referer,omitempty" name:"Referer"`
}

StringLikeType presents StringLike.

func (*StringLikeType) Validate

func (v *StringLikeType) Validate() error

Validate validates the StringLike.

type StringNotLikeType

type StringNotLikeType struct {
	// Refer url
	Referer []*string `json:"Referer,omitempty" name:"Referer"`
}

StringNotLikeType presents StringNotLike.

func (*StringNotLikeType) Validate

func (v *StringNotLikeType) Validate() error

Validate validates the StringNotLike.

type 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL