cos

package module
Version: v0.7.38 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 34 Imported by: 208

README

cos-go-sdk-v5

腾讯云对象存储服务 COS(Cloud Object Storage) Go SDK(API 版本:V5 版本的 XML API)。

Install

go get -u github.com/tencentyun/cos-go-sdk-v5

Usage

package main

import (
	"context"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"os"
	"time"
	
	"github.com/tencentyun/cos-go-sdk-v5"
)

func main() {
	//将<bucket>和<region>修改为真实的信息
	//bucket的命名规则为{name}-{appid} ,此处填写的存储桶名称必须为此格式
	u, _ := url.Parse("https://<bucket>.cos.<region>.myqcloud.com")
	b := &cos.BaseURL{BucketURL: u}
	c := cos.NewClient(b, &http.Client{
		//设置超时时间
		Timeout: 100 * time.Second,
		Transport: &cos.AuthorizationTransport{
			//如实填写账号和密钥,也可以设置为环境变量
			SecretID:  os.Getenv("COS_SECRETID"),
			SecretKey: os.Getenv("COS_SECRETKEY"),
		},
	})

	name := "test/hello.txt"
	resp, err := c.Object.Get(context.Background(), name, nil)
	if err != nil {
		panic(err)
	}
	bs, _ := ioutil.ReadAll(resp.Body)
	resp.Body.Close()
	fmt.Printf("%s\n", string(bs))
}

所有的 API 在 example 目录下都有对应的使用示例。

Service API:

Bucket API:

Object API:

数据处理 API:

内容审核 API:

Documentation

Overview

Package cos is COS(Cloud Object Storage) Go SDK. The V5 version(XML API). There are examples of using each API in the project's 'example' directory.

Index

Constants

View Source
const (
	// Version current go sdk version
	Version   = "0.7.38"
	UserAgent = "cos-go-sdk-v5/" + Version
)

Variables

View Source
var DNSScatterDialContext = DNSScatterDialContextFunc
View Source
var DNSScatterTransport = &http.Transport{
	Proxy:                 http.ProxyFromEnvironment,
	DialContext:           DNSScatterDialContext,
	MaxIdleConns:          100,
	IdleConnTimeout:       90 * time.Second,
	TLSHandshakeTimeout:   10 * time.Second,
	ExpectContinueTimeout: 1 * time.Second,
}
View Source
var NeedSignHeaders = map[string]bool{
	"host":                           true,
	"range":                          true,
	"x-cos-acl":                      true,
	"x-cos-grant-read":               true,
	"x-cos-grant-write":              true,
	"x-cos-grant-full-control":       true,
	"response-content-type":          true,
	"response-content-language":      true,
	"response-expires":               true,
	"response-cache-control":         true,
	"response-content-disposition":   true,
	"response-content-encoding":      true,
	"cache-control":                  true,
	"content-disposition":            true,
	"content-encoding":               true,
	"content-type":                   true,
	"content-length":                 true,
	"content-md5":                    true,
	"transfer-encoding":              true,
	"versionid":                      true,
	"expect":                         true,
	"expires":                        true,
	"x-cos-content-sha1":             true,
	"x-cos-storage-class":            true,
	"if-match":                       true,
	"if-modified-since":              true,
	"if-none-match":                  true,
	"if-unmodified-since":            true,
	"origin":                         true,
	"access-control-request-method":  true,
	"access-control-request-headers": true,
	"x-cos-object-type":              true,
}

需要校验的 Headers 列表

Functions

func AddAuthorizationHeader

func AddAuthorizationHeader(secretID, secretKey string, sessionToken string, req *http.Request, authTime *AuthTime)

AddAuthorizationHeader 给 req 增加签名信息

func CheckReaderLen added in v0.7.16

func CheckReaderLen(reader io.Reader) error

func DNSScatterDialContextFunc added in v0.7.35

func DNSScatterDialContextFunc(ctx context.Context, network string, addr string) (conn net.Conn, err error)

func DecodeURIComponent added in v0.7.11

func DecodeURIComponent(s string) (string, error)

func DividePart

func DividePart(fileSize int64, last int) (int64, int64)

func EncodePicOperations

func EncodePicOperations(pic *PicOperations) string

func EncodeURIComponent added in v0.7.11

func EncodeURIComponent(s string) string

func FormatRangeOptions added in v0.7.25

func FormatRangeOptions(opt *RangeOptions) string

func GetReaderLen added in v0.7.13

func GetReaderLen(reader io.Reader) (length int64, err error)

func IsLenReader added in v0.7.23

func IsLenReader(reader io.Reader) bool

func IsNotFoundError

func IsNotFoundError(e error) bool

func LimitReadCloser added in v0.7.23

func LimitReadCloser(r io.Reader, n int64) io.Reader

func NewBucketURL

func NewBucketURL(bucketName, region string, secure bool) (*url.URL, error)

NewBucketURL 生成 BaseURL 所需的 BucketURL

bucketName: bucket名称, bucket的命名规则为{name}-{appid} ,此处填写的存储桶名称必须为此格式
Region: 区域代码: ap-beijing-1,ap-beijing,ap-shanghai,ap-guangzhou...
secure: 是否使用 https

func SetNeedSignHeaders added in v0.7.32

func SetNeedSignHeaders(key string, val bool)

非线程安全,只能在进程初始化(而不是Client初始化)时做设置

func TeeReader added in v0.7.13

func TeeReader(reader io.Reader, writer io.Writer, total int64, listener ProgressListener) *teeReader

Types

type ACLGrant

type ACLGrant struct {
	Grantee    *ACLGrantee
	Permission string
}

ACLGrant is the param of ACLXml

type ACLGrantee

type ACLGrantee struct {
	Type        string `xml:"type,attr"`
	UIN         string `xml:"uin,omitempty"`
	URI         string `xml:"URI,omitempty"`
	ID          string `xml:",omitempty"`
	DisplayName string `xml:",omitempty"`
	SubAccount  string `xml:"Subaccount,omitempty"`
}

ACLGrantee is the param of ACLGrant

type ACLHeaderOptions

type ACLHeaderOptions struct {
	XCosACL              string `header:"x-cos-acl,omitempty" url:"-" xml:"-"`
	XCosGrantRead        string `header:"x-cos-grant-read,omitempty" url:"-" xml:"-"`
	XCosGrantWrite       string `header:"x-cos-grant-write,omitempty" url:"-" xml:"-"`
	XCosGrantFullControl string `header:"x-cos-grant-full-control,omitempty" url:"-" xml:"-"`
	XCosGrantReadACP     string `header:"x-cos-grant-read-acp,omitempty" url:"-" xml:"-"`
	XCosGrantWriteACP    string `header:"x-cos-grant-write-acp,omitempty" url:"-" xml:"-"`
}

ACLHeaderOptions is the option of ACLHeader

type ACLXml

type ACLXml struct {
	XMLName           xml.Name `xml:"AccessControlPolicy"`
	Owner             *Owner
	AccessControlList []ACLGrant `xml:"AccessControlList>Grant,omitempty"`
}

ACLXml is the ACL body struct

type ASRJobDetail added in v0.7.34

type ASRJobDetail struct {
	Code         string           `xml:"Code,omitempty"`
	Message      string           `xml:"Message,omitempty"`
	JobId        string           `xml:"JobId,omitempty"`
	Tag          string           `xml:"Tag,omitempty"`
	State        string           `xml:"State,omitempty"`
	CreationTime string           `xml:"CreationTime,omitempty"`
	QueueId      string           `xml:"QueueId,omitempty"`
	Input        *JobInput        `xml:"Input,omitempty"`
	Operation    *ASRJobOperation `xml:"Operation,omitempty"`
}

ASRJobDetail TODO

type ASRJobOperation added in v0.7.34

type ASRJobOperation struct {
	Tag                     string                   `xml:"Tag,omitempty"`
	Output                  *JobOutput               `xml:"Output,omitempty"`
	SpeechRecognition       *SpeechRecognition       `xml:"SpeechRecognition,omitempty"`
	SpeechRecognitionResult *SpeechRecognitionResult `xml:"SpeechRecognitionResult,omitempty"`
}

ASRJobOperation TODO

type AddStyleOptions added in v0.7.36

type AddStyleOptions struct {
	XMLName   xml.Name `xml:"AddStyle"`
	StyleName string   `xml:"StyleName,omitempty"`
	StyleBody string   `xml:"StyleBody,omitempty"`
}

type Animation added in v0.7.32

type Animation struct {
	Container    *Container      `xml:"Container,omitempty"`
	Video        *AnimationVideo `xml:"Video,omitempty"`
	TimeInterval *TimeInterval   `xml:"TimeInterval,omitempty"`
}

Animation TODO

type AnimationVideo added in v0.7.32

type AnimationVideo struct {
	Codec                      string `xml:"Codec"`
	Width                      string `xml:"Width"`
	Height                     string `xml:"Height"`
	Fps                        string `xml:"Fps"`
	AnimateOnlyKeepKeyFrame    string `xml:"AnimateOnlyKeepKeyFrame"`
	AnimateTimeIntervalOfFrame string `xml:"AnimateTimeIntervalOfFrame"`
	AnimateFramesPerSecond     string `xml:"AnimateFramesPerSecond"`
	Quality                    string `xml:"Quality"`
}

AnimationVideo TODO 有意和转码区分,两种任务关注的参数不一样避免干扰

type Audio added in v0.7.21

type Audio struct {
	Codec         string `xml:"Codec,omitempty"`
	Samplerate    string `xml:"Samplerate,omitempty"`
	Bitrate       string `xml:"Bitrate,omitempty"`
	Channels      string `xml:"Channels,omitempty"`
	Remove        string `xml:"Remove,omitempty"`
	KeepTwoTracks string `xml:"KeepTwoTracks,omitempty"`
	SwitchTrack   string `xml:"SwitchTrack,omitempty"`
	SampleFormat  string `xml:"SampleFormat,omitempty"`
}

Audio TODO

type AudioAuditingJobConf added in v0.7.25

type AudioAuditingJobConf struct {
	DetectType      string `xml:",omitempty"`
	Callback        string `xml:",omitempty"`
	CallbackVersion string `xml:",omitempty"`
	BizType         string `xml:",omitempty"`
}

AudioAuditingJobConf is the config of PutAudioAuditingJobOptions

type AudioAuditingJobDetail added in v0.7.31

type AudioAuditingJobDetail struct {
	Code          string               `xml:",omitempty"`
	Message       string               `xml:",omitempty"`
	JobId         string               `xml:",omitempty"`
	State         string               `xml:",omitempty"`
	CreationTime  string               `xml:",omitempty"`
	Object        string               `xml:",omitempty"`
	Url           string               `xml:",omitempty"`
	DataId        string               `xml:",omitempty"`
	AudioText     string               `xml:",omitempty"`
	Label         string               `xml:",omitempty"`
	Result        int                  `xml:",omitempty"`
	PornInfo      *RecognitionInfo     `xml:",omitempty"`
	TerrorismInfo *RecognitionInfo     `xml:",omitempty"`
	PoliticsInfo  *RecognitionInfo     `xml:",omitempty"`
	AdsInfo       *RecognitionInfo     `xml:",omitempty"`
	Section       []AudioSectionResult `xml:",omitempty"`
	UserInfo      *UserExtraInfo       `xml:",omitempty"`
}

AudioAuditingJobDetail is the detail of GetAudioAuditingJobResult

type AudioConfig added in v0.7.34

type AudioConfig struct {
	Codec      string `xml:"Codec"`
	Samplerate string `xml:"Samplerate"`
	Bitrate    string `xml:"Bitrate"`
	Channels   string `xml:"Channels"`
}

AudioConfig TODO

type AudioMix added in v0.7.35

type AudioMix struct {
	AudioSource  string        `xml:"AudioSource,omitempty"`
	MixMode      string        `xml:"MixMode,omitempty"`
	Replace      string        `xml:"Replace,omitempty"`
	EffectConfig *EffectConfig `xml:"EffectConfig,omitempty"`
}

AudioMix TODO

type AudioSectionResult added in v0.7.31

type AudioSectionResult struct {
	Url           string           `xml:",omitempty"`
	Text          string           `xml:",omitempty"`
	OffsetTime    int              `xml:",omitempty"`
	Duration      int              `xml:",omitempty"`
	Label         string           `xml:",omitempty"`
	Result        int              `xml:",omitempty"`
	PornInfo      *RecognitionInfo `xml:",omitempty"`
	TerrorismInfo *RecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *RecognitionInfo `xml:",omitempty"`
	AdsInfo       *RecognitionInfo `xml:",omitempty"`
}

AudioSectionResult is the audio section result of AuditingJobDetail/AudioAuditingJobDetail

type AuditingJobDetail added in v0.7.25

type AuditingJobDetail struct {
	Code          string                        `xml:",omitempty"`
	Message       string                        `xml:",omitempty"`
	JobId         string                        `xml:",omitempty"`
	State         string                        `xml:",omitempty"`
	CreationTime  string                        `xml:",omitempty"`
	Object        string                        `xml:",omitempty"`
	Url           string                        `xml:",omitempty"`
	DataId        string                        `xml:",omitempty"`
	SnapshotCount string                        `xml:",omitempty"`
	Label         string                        `xml:",omitempty"`
	Result        int                           `xml:",omitempty"`
	PornInfo      *RecognitionInfo              `xml:",omitempty"`
	TerrorismInfo *RecognitionInfo              `xml:",omitempty"`
	PoliticsInfo  *RecognitionInfo              `xml:",omitempty"`
	AdsInfo       *RecognitionInfo              `xml:",omitempty"`
	TeenagerInfo  *RecognitionInfo              `xml:",omitempty"`
	Snapshot      []GetVideoAuditingJobSnapshot `xml:",omitempty"`
	AudioSection  []AudioSectionResult          `xml:",omitempty"`
	UserInfo      *UserExtraInfo                `xml:",omitempty"`
	Type          string                        `xml:",omitempty"`
}

AuditingJobDetail is the detail of GetVideoAuditingJobResult

type AuthTime

type AuthTime struct {
	SignStartTime time.Time
	SignEndTime   time.Time
	KeyStartTime  time.Time
	KeyEndTime    time.Time
}

AuthTime 用于生成签名所需的 q-sign-time 和 q-key-time 相关参数

func NewAuthTime

func NewAuthTime(expire time.Duration) *AuthTime

NewAuthTime 生成 AuthTime 的便捷函数

expire: 从现在开始多久过期.

type AuthorizationTransport

type AuthorizationTransport struct {
	SecretID     string
	SecretKey    string
	SessionToken string

	// 签名多久过期
	Expire    time.Duration
	Transport http.RoundTripper
	// contains filtered or unexported fields
}

AuthorizationTransport 给请求增加 Authorization header

func (*AuthorizationTransport) GetCredential

func (t *AuthorizationTransport) GetCredential() (string, string, string)

GetCredential get the ak, sk, token

func (*AuthorizationTransport) RoundTrip

func (t *AuthorizationTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the RoundTripper interface.

func (*AuthorizationTransport) SetCredential

func (t *AuthorizationTransport) SetCredential(ak, sk, token string)

SetCredential update the SecretID(ak), SercretKey(sk), sessiontoken

type BaseURL

type BaseURL struct {
	// 访问 bucket, object 相关 API 的基础 URL(不包含 path 部分): http://example.com
	BucketURL *url.URL
	// 访问 service API 的基础 URL(不包含 path 部分): http://example.com
	ServiceURL *url.URL
	// 访问 job API 的基础 URL (不包含 path 部分): http://example.com
	BatchURL *url.URL
	// 访问 CI 的基础 URL
	CIURL *url.URL
	// 访问 Fetch Task 的基础 URL
	FetchURL *url.URL
}

BaseURL 访问各 API 所需的基础 URL

type BatchAccessControlGrants

type BatchAccessControlGrants struct {
	COSGrants *BatchCOSGrant `xml:"COSGrant,omitempty" header:"-" url:"-"`
}

type BatchCOSGrant

type BatchCOSGrant struct {
	Grantee    *BatchGrantee `xml:"Grantee" header:"-" url:"-"`
	Permission string        `xml:"Permission" header:"-" url:"-"`
}

type BatchCreateJobOptions

type BatchCreateJobOptions struct {
	XMLName              xml.Name           `xml:"CreateJobRequest" header:"-" url:"-"`
	ClientRequestToken   string             `xml:"ClientRequestToken" header:"-" url:"-"`
	ConfirmationRequired string             `xml:"ConfirmationRequired,omitempty" header:"-" url:"-"`
	Description          string             `xml:"Description,omitempty" header:"-" url:"-"`
	Manifest             *BatchJobManifest  `xml:"Manifest" header:"-" url:"-"`
	Operation            *BatchJobOperation `xml:"Operation" header:"-" url:"-"`
	Priority             int                `xml:"Priority" header:"-" url:"-"`
	Report               *BatchJobReport    `xml:"Report" header:"-" url:"-"`
	RoleArn              string             `xml:"RoleArn" header:"-" url:"-"`
}

type BatchCreateJobResult

type BatchCreateJobResult struct {
	XMLName xml.Name `xml:"CreateJobResult"`
	JobId   string   `xml:"JobId,omitempty"`
}

type BatchDescribeJob

type BatchDescribeJob struct {
	ConfirmationRequired string                  `xml:"ConfirmationRequired,omitempty" header:"-" url:"-"`
	CreationTime         string                  `xml:"CreationTime,omitempty" header:"-" url:"-"`
	Description          string                  `xml:"Description,omitempty" header:"-" url:"-"`
	FailureReasons       *BatchJobFailureReasons `xml:"FailureReasons>JobFailure,omitempty" header:"-" url:"-"`
	JobId                string                  `xml:"JobId" header:"-" url:"-"`
	Manifest             *BatchJobManifest       `xml:"Manifest" header:"-" url:"-"`
	Operation            *BatchJobOperation      `xml:"Operation" header:"-" url:"-"`
	Priority             int                     `xml:"Priority" header:"-" url:"-"`
	ProgressSummary      *BatchProgressSummary   `xml:"ProgressSummary" header:"-" url:"-"`
	Report               *BatchJobReport         `xml:"Report,omitempty" header:"-" url:"-"`
	RoleArn              string                  `xml:"RoleArn,omitempty" header:"-" url:"-"`
	Status               string                  `xml:"Status,omitempty" header:"-" url:"-"`
	StatusUpdateReason   string                  `xml:"StatusUpdateReason,omitempty" header:"-" url:"-"`
	SuspendedCause       string                  `xml:"SuspendedCause,omitempty" header:"-" url:"-"`
	SuspendedDate        string                  `xml:"SuspendedDate,omitempty" header:"-" url:"-"`
	TerminationDate      string                  `xml:"TerminationDate,omitempty" header:"-" url:"-"`
}

type BatchDescribeJobResult

type BatchDescribeJobResult struct {
	XMLName xml.Name          `xml:"DescribeJobResult"`
	Job     *BatchDescribeJob `xml:"Job,omitempty"`
}

type BatchGrantee

type BatchGrantee struct {
	DisplayName    string `xml:"DisplayName,omitempty" header:"-" url:"-"`
	Identifier     string `xml:"Identifier" header:"-" url:"-"`
	TypeIdentifier string `xml:"TypeIdentifier" header:"-" url:"-"`
}

type BatchImageAuditingJobResult added in v0.7.33

type BatchImageAuditingJobResult struct {
	XMLName    xml.Name              `xml:"Response"`
	JobsDetail []ImageAuditingResult `xml:",omitempty"`
	RequestId  string                `xml:",omitempty"`
}

BatchImageAuditingJobResult is the result of BatchImageAuditing

type BatchImageAuditingOptions added in v0.7.33

type BatchImageAuditingOptions struct {
	XMLName xml.Name                    `xml:"Request"`
	Input   []ImageAuditingInputOptions `xml:"Input,omitempty"`
	Conf    *ImageAuditingJobConf       `xml:"Conf"`
}

BatchImageAuditingOptions is the option of BatchImageAuditing

type BatchInitiateRestoreObject

type BatchInitiateRestoreObject struct {
	ExpirationInDays int    `xml:"ExpirationInDays"`
	JobTier          string `xml:"JobTier"`
}

BatchInitiateRestoreObject

type BatchJobFailureReasons

type BatchJobFailureReasons struct {
	FailureCode   string `xml:"FailureCode" header:"-" url:"-"`
	FailureReason string `xml:"FailureReason" header:"-" url:"-"`
}

type BatchJobManifest

type BatchJobManifest struct {
	Location *BatchJobManifestLocation `xml:"Location" header:"-" url:"-"`
	Spec     *BatchJobManifestSpec     `xml:"Spec" header:"-" url:"-"`
}

type BatchJobManifestLocation

type BatchJobManifestLocation struct {
	ETag            string `xml:"ETag" header:"-" url:"-"`
	ObjectArn       string `xml:"ObjectArn" header:"-" url:"-"`
	ObjectVersionId string `xml:"ObjectVersionId,omitempty" header:"-" url:"-"`
}

BatchJobManifest

type BatchJobManifestSpec

type BatchJobManifestSpec struct {
	Fields []string `xml:"Fields>member,omitempty" header:"-" url:"-"`
	Format string   `xml:"Format" header:"-" url:"-"`
}

type BatchJobOperation

type BatchJobOperation struct {
	PutObjectCopy *BatchJobOperationCopy      `xml:"COSPutObjectCopy,omitempty" header:"-" url:"-"`
	RestoreObject *BatchInitiateRestoreObject `xml:"COSInitiateRestoreObject,omitempty" header:"-" url:"-"`
}

BatchJobOperation

type BatchJobOperationCopy

type BatchJobOperationCopy struct {
	AccessControlGrants       *BatchAccessControlGrants `xml:"AccessControlGrants,omitempty" header:"-" url:"-"`
	CannedAccessControlList   string                    `xml:"CannedAccessControlList,omitempty" header:"-" url:"-"`
	MetadataDirective         string                    `xml:"MetadataDirective,omitempty" header:"-" url:"-"`
	ModifiedSinceConstraint   int64                     `xml:"ModifiedSinceConstraint,omitempty" header:"-" url:"-"`
	UnModifiedSinceConstraint int64                     `xml:"UnModifiedSinceConstraint,omitempty" header:"-" url:"-"`
	NewObjectMetadata         *BatchNewObjectMetadata   `xml:"NewObjectMetadata,omitempty" header:"-" url:"-"`
	StorageClass              string                    `xml:"StorageClass,omitempty" header:"-" url:"-"`
	TargetResource            string                    `xml:"TargetResource" header:"-" url:"-"`
}

type BatchJobReport

type BatchJobReport struct {
	Bucket      string `xml:"Bucket" header:"-" url:"-"`
	Enabled     string `xml:"Enabled" header:"-" url:"-"`
	Format      string `xml:"Format" header:"-" url:"-"`
	Prefix      string `xml:"Prefix,omitempty" header:"-" url:"-"`
	ReportScope string `xml:"ReportScope" header:"-" url:"-"`
}

BatchJobReport

type BatchListJobs

type BatchListJobs struct {
	Members []BatchListJobsMember `xml:"member,omitempty" header:"-" url:"-"`
}

type BatchListJobsMember

type BatchListJobsMember struct {
	CreationTime    string                `xml:"CreationTime,omitempty" header:"-" url:"-"`
	Description     string                `xml:"Description,omitempty" header:"-" url:"-"`
	JobId           string                `xml:"JobId,omitempty" header:"-" url:"-"`
	Operation       string                `xml:"Operation,omitempty" header:"-" url:"-"`
	Priority        int                   `xml:"Priority,omitempty" header:"-" url:"-"`
	ProgressSummary *BatchProgressSummary `xml:"ProgressSummary,omitempty" header:"-" url:"-"`
	Status          string                `xml:"Status,omitempty" header:"-" url:"-"`
	TerminationDate string                `xml:"TerminationDate,omitempty" header:"-" url:"-"`
}

type BatchListJobsOptions

type BatchListJobsOptions struct {
	JobStatuses string `url:"jobStatuses,omitempty" header:"-" xml:"-"`
	MaxResults  int    `url:"maxResults,omitempty" header:"-" xml:"-"`
	NextToken   string `url:"nextToken,omitempty" header:"-" xml:"-"`
}

type BatchListJobsResult

type BatchListJobsResult struct {
	XMLName   xml.Name       `xml:"ListJobsResult"`
	Jobs      *BatchListJobs `xml:"Jobs,omitempty"`
	NextToken string         `xml:"NextToken,omitempty"`
}

type BatchMetadata

type BatchMetadata struct {
	Key   string `xml:"Key" header:"-" url:"-"`
	Value string `xml:"Value" header:"-" url:"-"`
}

BatchJobOperationCopy

type BatchNewObjectMetadata

type BatchNewObjectMetadata struct {
	CacheControl       string          `xml:"CacheControl,omitempty" header:"-" url:"-"`
	ContentDisposition string          `xml:"ContentDisposition,omitempty" header:"-" url:"-"`
	ContentEncoding    string          `xml:"ContentEncoding,omitempty" header:"-" url:"-"`
	ContentType        string          `xml:"ContentType,omitempty" header:"-" url:"-"`
	HttpExpiresDate    string          `xml:"HttpExpiresDate,omitempty" header:"-" url:"-"`
	SSEAlgorithm       string          `xml:"SSEAlgorithm,omitempty" header:"-" url:"-"`
	UserMetadata       []BatchMetadata `xml:"UserMetadata>member,omitempty" header:"-" url:"-"`
}

type BatchProgressSummary

type BatchProgressSummary struct {
	NumberOfTasksFailed    int `xml:"NumberOfTasksFailed" header:"-" url:"-"`
	NumberOfTasksSucceeded int `xml:"NumberOfTasksSucceeded" header:"-" url:"-"`
	TotalNumberOfTasks     int `xml:"TotalNumberOfTasks" header:"-" url:"-"`
}

BatchProgressSummary

type BatchRequestHeaders

type BatchRequestHeaders struct {
	XCosAppid     int          `header:"x-cos-appid" xml:"-" url:"-"`
	ContentLength string       `header:"Content-Length,omitempty" xml:"-" url:"-"`
	ContentType   string       `header:"Content-Type,omitempty" xml:"-" url:"-"`
	Headers       *http.Header `header:"-" xml:"-" url:"-"`
}

type BatchService

type BatchService service

func (*BatchService) CreateJob

func (*BatchService) DescribeJob

func (*BatchService) ListJobs

func (*BatchService) UpdateJobPriority

func (*BatchService) UpdateJobStatus

type BatchUpdatePriorityOptions

type BatchUpdatePriorityOptions struct {
	JobId    string `url:"-" header:"-" xml:"-"`
	Priority int    `url:"priority" header:"-" xml:"-"`
}

type BatchUpdatePriorityResult

type BatchUpdatePriorityResult struct {
	XMLName  xml.Name `xml:"UpdateJobPriorityResult"`
	JobId    string   `xml:"JobId,omitempty"`
	Priority int      `xml:"Priority,omitempty"`
}

type BatchUpdateStatusOptions

type BatchUpdateStatusOptions struct {
	JobId              string `header:"-" url:"-" xml:"-"`
	RequestedJobStatus string `url:"requestedJobStatus" header:"-" xml:"-"`
	StatusUpdateReason string `url:"statusUpdateReason,omitempty" header:"-" xml:"-"`
}

type BatchUpdateStatusResult

type BatchUpdateStatusResult struct {
	XMLName            xml.Name `xml:"UpdateJobStatusResult"`
	JobId              string   `xml:"JobId,omitempty"`
	Status             string   `xml:"Status,omitempty"`
	StatusUpdateReason string   `xml:"StatusUpdateReason,omitempty"`
}

type Bucket

type Bucket struct {
	Name         string
	Region       string `xml:"Location,omitempty"`
	CreationDate string `xml:",omitempty"`
}

Bucket is the meta info of Bucket

type BucketCORSRule

type BucketCORSRule struct {
	ID             string   `xml:"ID,omitempty"`
	AllowedMethods []string `xml:"AllowedMethod"`
	AllowedOrigins []string `xml:"AllowedOrigin"`
	AllowedHeaders []string `xml:"AllowedHeader,omitempty"`
	MaxAgeSeconds  int      `xml:"MaxAgeSeconds,omitempty"`
	ExposeHeaders  []string `xml:"ExposeHeader,omitempty"`
}

BucketCORSRule is the rule of BucketCORS

type BucketDeleteDomainCertificateOptions added in v0.7.37

type BucketDeleteDomainCertificateOptions BucketGetDomainCertificateOptions

type BucketDeleteLifecycleOptions added in v0.7.36

type BucketDeleteLifecycleOptions struct {
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

type BucketDomainCertificateInfo added in v0.7.37

type BucketDomainCertificateInfo struct {
	CertType   string                  `xml:"CertType,omitempty"`
	CustomCert *BucketDomainCustomCert `xml:"CustomCert,omitempty"`
}

type BucketDomainCustomCert added in v0.7.37

type BucketDomainCustomCert struct {
	Cert       string `xml:"Cert,omitempty"`
	PrivateKey string `xml:"PrivateKey,omitempty"`
}

type BucketDomainRule added in v0.7.31

type BucketDomainRule struct {
	Status            string `xml:"Status,omitempty"`
	Name              string `xml:"Name,omitempty"`
	Type              string `xml:"Type,omitempty"`
	ForcedReplacement string `xml:"ForcedReplacement,omitempty"`
}

type BucketEncryptionConfiguration added in v0.7.4

type BucketEncryptionConfiguration struct {
	SSEAlgorithm string `xml:"SSEAlgorithm"`
}

type BucketGetACLResult

type BucketGetACLResult = ACLXml

BucketGetACLResult is same to the ACLXml

type BucketGetAccelerateResult added in v0.7.16

type BucketGetAccelerateResult BucketPutAccelerateOptions

type BucketGetCORSResult

type BucketGetCORSResult struct {
	XMLName xml.Name         `xml:"CORSConfiguration"`
	Rules   []BucketCORSRule `xml:"CORSRule,omitempty"`
}

BucketGetCORSResult is the result of GetBucketCORS

type BucketGetDomainCertificateOptions added in v0.7.37

type BucketGetDomainCertificateOptions struct {
	DomainName string `url:"domainname"`
}

type BucketGetDomainCertificateResult added in v0.7.37

type BucketGetDomainCertificateResult struct {
	XMLName xml.Name `xml:"DomainCertificate"`
	Status  string   `xml:"Status,omitempty"`
}

type BucketGetDomainResult

type BucketGetDomainResult BucketPutDomainOptions

type BucketGetEncryptionResult added in v0.7.4

type BucketGetEncryptionResult BucketPutEncryptionOptions

type BucketGetIntelligentTieringResult added in v0.7.9

type BucketGetIntelligentTieringResult BucketPutIntelligentTieringOptions

type BucketGetInventoryResult

type BucketGetInventoryResult BucketPutInventoryOptions

BucketGetInventoryResult same struct to options

type BucketGetLifecycleOptions added in v0.7.36

type BucketGetLifecycleOptions struct {
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

type BucketGetLifecycleResult

type BucketGetLifecycleResult struct {
	XMLName xml.Name              `xml:"LifecycleConfiguration" header:"-"`
	Rules   []BucketLifecycleRule `xml:"Rule,omitempty" header:"-"`
}

BucketGetLifecycleResult is the result of BucketGetLifecycle

type BucketGetLocationResult

type BucketGetLocationResult struct {
	XMLName  xml.Name `xml:"LocationConstraint"`
	Location string   `xml:",chardata"`
}

BucketGetLocationResult is the result of BucketGetLocation

type BucketGetLoggingResult

type BucketGetLoggingResult BucketPutLoggingOptions

BucketGetLoggingResult is the result of GetBucketLogging

type BucketGetObjectVersionsOptions added in v0.7.6

type BucketGetObjectVersionsOptions struct {
	Prefix          string       `url:"prefix,omitempty" header:"-"`
	Delimiter       string       `url:"delimiter,omitempty" header:"-"`
	EncodingType    string       `url:"encoding-type,omitempty" header:"-"`
	KeyMarker       string       `url:"key-marker,omitempty" header:"-"`
	VersionIdMarker string       `url:"version-id-marker,omitempty" header:"-"`
	MaxKeys         int          `url:"max-keys,omitempty" header:"-"`
	XOptionHeader   *http.Header `url:"-" header:"-,omitempty" xml:"-"`
}

type BucketGetObjectVersionsResult added in v0.7.6

type BucketGetObjectVersionsResult struct {
	XMLName             xml.Name                         `xml:"ListVersionsResult"`
	Name                string                           `xml:"Name,omitempty"`
	EncodingType        string                           `xml:"EncodingType,omitempty"`
	Prefix              string                           `xml:"Prefix,omitempty"`
	KeyMarker           string                           `xml:"KeyMarker,omitempty"`
	VersionIdMarker     string                           `xml:"VersionIdMarker,omitempty"`
	MaxKeys             int                              `xml:"MaxKeys,omitempty"`
	Delimiter           string                           `xml:"Delimiter,omitempty"`
	IsTruncated         bool                             `xml:"IsTruncated,omitempty"`
	NextKeyMarker       string                           `xml:"NextKeyMarker,omitempty"`
	NextVersionIdMarker string                           `xml:"NextVersionIdMarker,omitempty"`
	CommonPrefixes      []string                         `xml:"CommonPrefixes>Prefix,omitempty"`
	Version             []ListVersionsResultVersion      `xml:"Version,omitempty"`
	DeleteMarker        []ListVersionsResultDeleteMarker `xml:"DeleteMarker,omitempty"`
}

type BucketGetOptions

type BucketGetOptions struct {
	Prefix        string       `url:"prefix,omitempty" header:"-" xml:"-"`
	Delimiter     string       `url:"delimiter,omitempty" header:"-" xml:"-"`
	EncodingType  string       `url:"encoding-type,omitempty" header:"-" xml:"-"`
	Marker        string       `url:"marker,omitempty" header:"-" xml:"-"`
	MaxKeys       int          `url:"max-keys,omitempty" header:"-" xml:"-"`
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

BucketGetOptions is the option of GetBucket

type BucketGetOriginResult added in v0.7.7

type BucketGetOriginResult BucketPutOriginOptions

type BucketGetPolicyResult

type BucketGetPolicyResult BucketPutPolicyOptions

type BucketGetRefererResult added in v0.7.4

type BucketGetRefererResult BucketPutRefererOptions

type BucketGetResult

type BucketGetResult struct {
	XMLName        xml.Name `xml:"ListBucketResult"`
	Name           string
	Prefix         string `xml:"Prefix,omitempty"`
	Marker         string `xml:"Marker,omitempty"`
	NextMarker     string `xml:"NextMarker,omitempty"`
	Delimiter      string `xml:"Delimiter,omitempty"`
	MaxKeys        int
	IsTruncated    bool
	Contents       []Object `xml:"Contents,omitempty"`
	CommonPrefixes []string `xml:"CommonPrefixes>Prefix,omitempty"`
	EncodingType   string   `xml:"EncodingType,omitempty"`
}

BucketGetResult is the result of GetBucket

type BucketGetTaggingResult

type BucketGetTaggingResult struct {
	XMLName xml.Name           `xml:"Tagging"`
	TagSet  []BucketTaggingTag `xml:"TagSet>Tag,omitempty"`
}

BucketGetTaggingResult is the result of BucketGetTagging

type BucketGetVersionResult

type BucketGetVersionResult BucketPutVersionOptions

BucketGetVersionResult is the result of GetBucketVersioning

type BucketGetWebsiteResult

type BucketGetWebsiteResult BucketPutWebsiteOptions

type BucketHeadOptions added in v0.7.34

type BucketHeadOptions struct {
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

type BucketIntelligentTieringTransition added in v0.7.9

type BucketIntelligentTieringTransition struct {
	Days            int `xml:"Days,omitempty"`
	RequestFrequent int `xml:"RequestFrequent,omitempty"`
}

type BucketInventoryDestination

type BucketInventoryDestination struct {
	Bucket     string                     `xml:"Bucket"`
	AccountId  string                     `xml:"AccountId,omitempty"`
	Prefix     string                     `xml:"Prefix,omitempty"`
	Format     string                     `xml:"Format"`
	Encryption *BucketInventoryEncryption `xml:"Encryption,omitempty"`
}

BucketInventoryDestination ...

type BucketInventoryEncryption

type BucketInventoryEncryption struct {
	SSECOS string `xml:"SSE-COS"`
}

BucketInventoryEncryption ...

type BucketInventoryFilter

type BucketInventoryFilter struct {
	Prefix string                       `xml:"Prefix,omitempty"`
	Period *BucketInventoryFilterPeriod `xml:"Period,omitempty"`
}

BucketInventoryFilter ...

type BucketInventoryFilterPeriod added in v0.7.34

type BucketInventoryFilterPeriod struct {
	StartTime int64 `xml:"StartTime,omitempty"`
	EndTime   int64 `xml:"EndTime,omitempty"`
}

type BucketInventoryOptionalFields

type BucketInventoryOptionalFields struct {
	BucketInventoryFields []string `xml:"Field,omitempty"`
}

BucketInventoryOptionalFields ...

type BucketInventorySchedule

type BucketInventorySchedule struct {
	Frequency string `xml:"Frequency"`
}

BucketInventorySchedule ...

type BucketLifecycleAbortIncompleteMultipartUpload

type BucketLifecycleAbortIncompleteMultipartUpload struct {
	DaysAfterInitiation int `xml:"DaysAfterInitiation,omitempty" header:"-"`
}

BucketLifecycleAbortIncompleteMultipartUpload is the param of BucketLifecycleRule

type BucketLifecycleAndOperator added in v0.7.25

type BucketLifecycleAndOperator struct {
	Prefix string             `xml:"Prefix,omitempty" header:"-"`
	Tag    []BucketTaggingTag `xml:"Tag,omitempty" header:"-"`
}

type BucketLifecycleExpiration

type BucketLifecycleExpiration struct {
	Date                      string `xml:"Date,omitempty" header:"-"`
	Days                      int    `xml:"Days,omitempty" header:"-"`
	ExpiredObjectDeleteMarker bool   `xml:"ExpiredObjectDeleteMarker,omitempty" header:"-"`
}

BucketLifecycleExpiration is the param of BucketLifecycleRule

type BucketLifecycleFilter

type BucketLifecycleFilter struct {
	Prefix string                      `xml:"Prefix,omitempty" header:"-"`
	Tag    *BucketTaggingTag           `xml:"Tag,omitempty" header:"-"`
	And    *BucketLifecycleAndOperator `xml:"And,omitempty" header:"-"`
}

BucketLifecycleFilter is the param of BucketLifecycleRule

type BucketLifecycleNoncurrentVersion added in v0.7.26

type BucketLifecycleNoncurrentVersion struct {
	NoncurrentDays int    `xml:"NoncurrentDays,omitempty" header:"-"`
	StorageClass   string `xml:"StorageClass,omitempty" header:"-"`
}

type BucketLifecycleRule

type BucketLifecycleRule struct {
	ID                             string                                         `xml:"ID,omitempty" header:"-"`
	Status                         string                                         `xml:"Status,omitempty" header:"-"`
	Filter                         *BucketLifecycleFilter                         `xml:"Filter,omitempty" header:"-"`
	Transition                     []BucketLifecycleTransition                    `xml:"Transition,omitempty" header:"-"`
	Expiration                     *BucketLifecycleExpiration                     `xml:"Expiration,omitempty" header:"-"`
	AbortIncompleteMultipartUpload *BucketLifecycleAbortIncompleteMultipartUpload `xml:"AbortIncompleteMultipartUpload,omitempty" header:"-"`
	NoncurrentVersionTransition    []BucketLifecycleNoncurrentVersion             `xml:"NoncurrentVersionTransition,omitempty" header:"-"`
	NoncurrentVersionExpiration    *BucketLifecycleNoncurrentVersion              `xml:"NoncurrentVersionExpiration,omitempty" header:"-"`
}

BucketLifecycleRule is the rule of BucketLifecycle

type BucketLifecycleTransition

type BucketLifecycleTransition struct {
	Date         string `xml:"Date,omitempty" header:"-"`
	Days         int    `xml:"Days,omitempty" header:"-"`
	StorageClass string `xml:"StorageClass,omitempty" header:"-"`
}

BucketLifecycleTransition is the param of BucketLifecycleRule

type BucketListInventoryConfiguartion

type BucketListInventoryConfiguartion BucketPutInventoryOptions

BucketListInventoryConfiguartion same struct to options

type BucketLoggingEnabled

type BucketLoggingEnabled struct {
	TargetBucket string `xml:"TargetBucket"`
	TargetPrefix string `xml:"TargetPrefix"`
}

BucketLoggingEnabled main struct of logging

type BucketOriginCondition added in v0.7.7

type BucketOriginCondition struct {
	HTTPStatusCode string `xml:"HTTPStatusCode,omitempty"`
	Prefix         string `xml:"Prefix,omitempty"`
}

type BucketOriginFileInfo added in v0.7.7

type BucketOriginFileInfo struct {
	PrefixDirective bool   `xml:"PrefixDirective,omitempty"`
	Prefix          string `xml:"Prefix,omitempty"`
	Suffix          string `xml:"Suffix,omitempty"`
}

type BucketOriginHttpHeader added in v0.7.7

type BucketOriginHttpHeader struct {
	// 目前还不支持 FollowAllHeaders
	// FollowAllHeaders  bool              `xml:"FollowAllHeaders,omitempty"`
	NewHttpHeaders    []OriginHttpHeader `xml:"NewHttpHeaders>Header,omitempty"`
	FollowHttpHeaders []OriginHttpHeader `xml:"FollowHttpHeaders>Header,omitempty"`
}

type BucketOriginInfo added in v0.7.7

type BucketOriginInfo struct {
	HostInfo string                `xml:"HostInfo>HostName,omitempty"`
	FileInfo *BucketOriginFileInfo `xml:"FileInfo,omitempty"`
}

type BucketOriginParameter added in v0.7.7

type BucketOriginParameter struct {
	Protocol          string                  `xml:"Protocol,omitempty"`
	FollowQueryString bool                    `xml:"FollowQueryString,omitempty"`
	HttpHeader        *BucketOriginHttpHeader `xml:"HttpHeader,omitempty"`
	FollowRedirection bool                    `xml:"FollowRedirection,omitempty"`
	HttpRedirectCode  string                  `xml:"HttpRedirectCode,omitempty"`
	CopyOriginData    bool                    `xml:"CopyOriginData,omitempty"`
}

type BucketOriginRule added in v0.7.7

type BucketOriginRule struct {
	RulePriority    int                    `xml:"RulePriority,omitempty"`
	OriginType      string                 `xml:"OriginType,omitempty"`
	OriginCondition *BucketOriginCondition `xml:"OriginCondition,omitempty"`
	OriginParameter *BucketOriginParameter `xml:"OriginParameter,omitempty"`
	OriginInfo      *BucketOriginInfo      `xml:"OriginInfo,omitempty"`
}

type BucketPutACLOptions

type BucketPutACLOptions struct {
	Header *ACLHeaderOptions `url:"-" xml:"-"`
	Body   *ACLXml           `url:"-" header:"-"`
}

BucketPutACLOptions is the option of PutBucketACL

type BucketPutAccelerateOptions added in v0.7.16

type BucketPutAccelerateOptions struct {
	XMLName xml.Name `xml:"AccelerateConfiguration"`
	Status  string   `xml:"Status,omitempty"`
	Type    string   `xml:"Type,omitempty"`
}

type BucketPutCORSOptions

type BucketPutCORSOptions struct {
	XMLName xml.Name         `xml:"CORSConfiguration"`
	Rules   []BucketCORSRule `xml:"CORSRule,omitempty"`
}

BucketPutCORSOptions is the option of PutBucketCORS

type BucketPutDomainCertificateOptions added in v0.7.37

type BucketPutDomainCertificateOptions struct {
	XMLName         xml.Name                     `xml:"DomainCertificate"`
	CertificateInfo *BucketDomainCertificateInfo `xml:"CertificateInfo"`
	DomainList      []string                     `xml:"DomainList>DomainName"`
}

type BucketPutDomainOptions

type BucketPutDomainOptions struct {
	XMLName xml.Name           `xml:"DomainConfiguration"`
	Rules   []BucketDomainRule `xml:"DomainRule,omitempty"`
}

type BucketPutEncryptionOptions added in v0.7.4

type BucketPutEncryptionOptions struct {
	XMLName xml.Name                       `xml:"ServerSideEncryptionConfiguration"`
	Rule    *BucketEncryptionConfiguration `xml:"Rule>ApplyServerSideEncryptionByDefault"`
}

type BucketPutIntelligentTieringOptions added in v0.7.9

type BucketPutIntelligentTieringOptions struct {
	XMLName    xml.Name                            `xml:"IntelligentTieringConfiguration"`
	Status     string                              `xml:"Status,omitempty"`
	Transition *BucketIntelligentTieringTransition `xml:"Transition,omitempty"`
}

type BucketPutInventoryOptions

type BucketPutInventoryOptions struct {
	XMLName                xml.Name                       `xml:"InventoryConfiguration"`
	ID                     string                         `xml:"Id"`
	IsEnabled              string                         `xml:"IsEnabled"`
	IncludedObjectVersions string                         `xml:"IncludedObjectVersions"`
	Filter                 *BucketInventoryFilter         `xml:"Filter,omitempty"`
	OptionalFields         *BucketInventoryOptionalFields `xml:"OptionalFields,omitempty"`
	Schedule               *BucketInventorySchedule       `xml:"Schedule"`
	Destination            *BucketInventoryDestination    `xml:"Destination>COSBucketDestination"`
}

BucketPutInventoryOptions ...

type BucketPutLifecycleOptions

type BucketPutLifecycleOptions struct {
	XMLName       xml.Name              `xml:"LifecycleConfiguration" header:"-"`
	Rules         []BucketLifecycleRule `xml:"Rule,omitempty" header:"-"`
	XOptionHeader *http.Header          `header:"-,omitempty" url:"-" xml:"-"`
}

BucketPutLifecycleOptions is the option of PutBucketLifecycle

type BucketPutLoggingOptions

type BucketPutLoggingOptions struct {
	XMLName        xml.Name              `xml:"BucketLoggingStatus"`
	LoggingEnabled *BucketLoggingEnabled `xml:"LoggingEnabled,omitempty"`
}

BucketPutLoggingOptions is the options of PutBucketLogging

type BucketPutOptions

type BucketPutOptions struct {
	XCosACL                   string                     `header:"x-cos-acl,omitempty" url:"-" xml:"-"`
	XCosGrantRead             string                     `header:"x-cos-grant-read,omitempty" url:"-" xml:"-"`
	XCosGrantWrite            string                     `header:"x-cos-grant-write,omitempty" url:"-" xml:"-"`
	XCosGrantFullControl      string                     `header:"x-cos-grant-full-control,omitempty" url:"-" xml:"-"`
	XCosGrantReadACP          string                     `header:"x-cos-grant-read-acp,omitempty" url:"-" xml:"-"`
	XCosGrantWriteACP         string                     `header:"x-cos-grant-write-acp,omitempty" url:"-" xml:"-"`
	CreateBucketConfiguration *CreateBucketConfiguration `header:"-" url:"-" xml:"-"`
}

BucketPutOptions is same to the ACLHeaderOptions

type BucketPutOriginOptions added in v0.7.7

type BucketPutOriginOptions struct {
	XMLName xml.Name           `xml:"OriginConfiguration"`
	Rule    []BucketOriginRule `xml:"OriginRule"`
}

type BucketPutPolicyOptions

type BucketPutPolicyOptions struct {
	Statement []BucketStatement   `json:"statement,omitempty"`
	Version   string              `json:"version,omitempty"`
	Principal map[string][]string `json:"principal,omitempty"`
}

type BucketPutRefererOptions added in v0.7.4

type BucketPutRefererOptions struct {
	XMLName                 xml.Name `xml:"RefererConfiguration"`
	Status                  string   `xml:"Status"`
	RefererType             string   `xml:"RefererType"`
	DomainList              []string `xml:"DomainList>Domain"`
	EmptyReferConfiguration string   `xml:"EmptyReferConfiguration,omitempty"`
}

type BucketPutTaggingOptions

type BucketPutTaggingOptions struct {
	XMLName xml.Name           `xml:"Tagging"`
	TagSet  []BucketTaggingTag `xml:"TagSet>Tag,omitempty"`
}

BucketPutTaggingOptions is the option of BucketPutTagging

type BucketPutVersionOptions

type BucketPutVersionOptions struct {
	XMLName xml.Name `xml:"VersioningConfiguration"`
	Status  string   `xml:"Status"`
}

BucketPutVersionOptions is the options of PutBucketVersioning

type BucketPutWebsiteOptions

type BucketPutWebsiteOptions struct {
	XMLName          xml.Name                  `xml:"WebsiteConfiguration"`
	Index            string                    `xml:"IndexDocument>Suffix"`
	RedirectProtocol *RedirectRequestsProtocol `xml:"RedirectAllRequestsTo,omitempty"`
	Error            *ErrorDocument            `xml:"ErrorDocument,omitempty"`
	RoutingRules     *WebsiteRoutingRules      `xml:"RoutingRules,omitempty"`
}

type BucketReplicationRule

type BucketReplicationRule struct {
	ID          string                  `xml:"ID,omitempty"`
	Status      string                  `xml:"Status"`
	Prefix      string                  `xml:"Prefix"`
	Destination *ReplicationDestination `xml:"Destination"`
}

BucketReplicationRule is the main param of replication

type BucketService

type BucketService service

BucketService 相关 API

func (*BucketService) Delete

func (s *BucketService) Delete(ctx context.Context) (*Response, error)

Delete Bucket请求可以在指定账号下删除Bucket,删除之前要求Bucket为空。

https://www.qcloud.com/document/product/436/7732

func (*BucketService) DeleteBucketReplication

func (s *BucketService) DeleteBucketReplication(ctx context.Context) (*Response, error)

DeleteBucketReplication https://cloud.tencent.com/document/product/436/19221

func (*BucketService) DeleteCORS

func (s *BucketService) DeleteCORS(ctx context.Context) (*Response, error)

DeleteCORS 实现 Bucket 跨域访问配置删除。

https://www.qcloud.com/document/product/436/8283

func (*BucketService) DeleteDomain added in v0.7.31

func (s *BucketService) DeleteDomain(ctx context.Context) (*Response, error)

func (*BucketService) DeleteDomainCertificate added in v0.7.37

func (s *BucketService) DeleteDomainCertificate(ctx context.Context, opt *BucketDeleteDomainCertificateOptions) (*Response, error)

func (*BucketService) DeleteEncryption added in v0.7.4

func (s *BucketService) DeleteEncryption(ctx context.Context) (*Response, error)

func (*BucketService) DeleteInventory

func (s *BucketService) DeleteInventory(ctx context.Context, id string) (*Response, error)

DeleteBucketInventory https://cloud.tencent.com/document/product/436/33704

func (*BucketService) DeleteLifecycle

func (s *BucketService) DeleteLifecycle(ctx context.Context, opt ...*BucketDeleteLifecycleOptions) (*Response, error)

DeleteLifecycle 请求实现删除生命周期管理。 https://www.qcloud.com/document/product/436/8284

func (*BucketService) DeleteOrigin added in v0.7.7

func (s *BucketService) DeleteOrigin(ctx context.Context) (*Response, error)

func (*BucketService) DeletePolicy

func (s *BucketService) DeletePolicy(ctx context.Context) (*Response, error)

func (*BucketService) DeleteTagging

func (s *BucketService) DeleteTagging(ctx context.Context) (*Response, error)

DeleteTagging 接口实现删除指定Bucket的标签。

https://www.qcloud.com/document/product/436/8286

func (*BucketService) DeleteWebsite

func (s *BucketService) DeleteWebsite(ctx context.Context) (*Response, error)

func (*BucketService) Get

Get Bucket请求等同于 List Object请求,可以列出该Bucket下部分或者所有Object,发起该请求需要拥有Read权限。

https://www.qcloud.com/document/product/436/7734

func (*BucketService) GetACL

GetACL 使用API读取Bucket的ACL表,只有所有者有权操作。

https://www.qcloud.com/document/product/436/7733

func (*BucketService) GetAccelerate added in v0.7.16

func (*BucketService) GetBucketReplication

func (s *BucketService) GetBucketReplication(ctx context.Context) (*GetBucketReplicationResult, *Response, error)

GetBucketReplication https://cloud.tencent.com/document/product/436/19222

func (*BucketService) GetCORS

GetCORS 实现 Bucket 跨域访问配置读取。

https://www.qcloud.com/document/product/436/8274

func (*BucketService) GetDomain

func (*BucketService) GetDomainCertificate added in v0.7.37

func (*BucketService) GetEncryption added in v0.7.4

func (*BucketService) GetIntelligentTiering added in v0.7.9

func (s *BucketService) GetIntelligentTiering(ctx context.Context) (*BucketGetIntelligentTieringResult, *Response, error)

func (*BucketService) GetLifecycle

GetLifecycle 请求实现读取生命周期管理的配置。当配置不存在时,返回404 Not Found。 https://www.qcloud.com/document/product/436/8278

func (*BucketService) GetLocation

GetLocation 接口获取Bucket所在地域信息,只有Bucket所有者有权限读取信息。

https://www.qcloud.com/document/product/436/8275

func (*BucketService) GetObjectVersions added in v0.7.6

func (*BucketService) GetOrigin added in v0.7.7

func (*BucketService) GetPolicy

func (*BucketService) GetReferer added in v0.7.4

func (*BucketService) GetTagging

GetTagging 接口实现获取指定Bucket的标签。

https://www.qcloud.com/document/product/436/8277

func (*BucketService) GetWebsite

func (*BucketService) Head

func (s *BucketService) Head(ctx context.Context, opt ...*BucketHeadOptions) (*Response, error)

Head Bucket请求可以确认是否存在该Bucket,是否有权限访问,Head的权限与Read一致。

当其存在时,返回 HTTP 状态码200;
当无权限时,返回 HTTP 状态码403;
当不存在时,返回 HTTP 状态码404。

https://www.qcloud.com/document/product/436/7735

func (*BucketService) IsExist added in v0.7.33

func (s *BucketService) IsExist(ctx context.Context) (bool, error)

func (*BucketService) ListInventoryConfigurations

func (s *BucketService) ListInventoryConfigurations(ctx context.Context, token string) (*ListBucketInventoryConfigResult, *Response, error)

ListBucketInventoryConfigurations https://cloud.tencent.com/document/product/436/33706

func (*BucketService) ListMultipartUploads

ListMultipartUploads 用来查询正在进行中的分块上传。单次最多列出1000个正在进行中的分块上传。

https://www.qcloud.com/document/product/436/7736

func (*BucketService) Put

Put Bucket请求可以在指定账号下创建一个Bucket。

https://www.qcloud.com/document/product/436/7738

func (*BucketService) PutACL

PutACL 使用API写入Bucket的ACL表,您可以通过Header:"x-cos-acl","x-cos-grant-read", "x-cos-grant-write","x-cos-grant-full-control"传入ACL信息,也可以通过body以XML格式传入ACL信息,

但是只能选择Header和Body其中一种,否则返回冲突。

Put Bucket ACL是一个覆盖操作,传入新的ACL将覆盖原有ACL。只有所有者有权操作。

"x-cos-acl":枚举值为public-read,private;public-read意味这个Bucket有公有读私有写的权限,
private意味这个Bucket有私有读写的权限。

"x-cos-grant-read":意味被赋予权限的用户拥有该Bucket的读权限
"x-cos-grant-write":意味被赋予权限的用户拥有该Bucket的写权限
"x-cos-grant-full-control":意味被赋予权限的用户拥有该Bucket的读写权限

https://www.qcloud.com/document/product/436/7737

func (*BucketService) PutAccelerate added in v0.7.16

func (s *BucketService) PutAccelerate(ctx context.Context, opt *BucketPutAccelerateOptions) (*Response, error)

func (*BucketService) PutBucketReplication

func (s *BucketService) PutBucketReplication(ctx context.Context, opt *PutBucketReplicationOptions) (*Response, error)

PutBucketReplication https://cloud.tencent.com/document/product/436/19223

func (*BucketService) PutCORS

func (s *BucketService) PutCORS(ctx context.Context, opt *BucketPutCORSOptions) (*Response, error)

PutCORS 实现 Bucket 跨域访问设置,您可以通过传入XML格式的配置文件实现配置,文件大小限制为64 KB。

https://www.qcloud.com/document/product/436/8279

func (*BucketService) PutDomain

func (s *BucketService) PutDomain(ctx context.Context, opt *BucketPutDomainOptions) (*Response, error)

func (*BucketService) PutDomainCertificate added in v0.7.37

func (s *BucketService) PutDomainCertificate(ctx context.Context, opt *BucketPutDomainCertificateOptions) (*Response, error)

func (*BucketService) PutEncryption added in v0.7.4

func (s *BucketService) PutEncryption(ctx context.Context, opt *BucketPutEncryptionOptions) (*Response, error)

func (*BucketService) PutIntelligentTiering added in v0.7.9

func (s *BucketService) PutIntelligentTiering(ctx context.Context, opt *BucketPutIntelligentTieringOptions) (*Response, error)

func (*BucketService) PutInventory

func (s *BucketService) PutInventory(ctx context.Context, id string, opt *BucketPutInventoryOptions) (*Response, error)

PutBucketInventory https://cloud.tencent.com/document/product/436/33707

func (*BucketService) PutLifecycle

func (s *BucketService) PutLifecycle(ctx context.Context, opt *BucketPutLifecycleOptions) (*Response, error)

PutLifecycle 请求实现设置生命周期管理的功能。您可以通过该请求实现数据的生命周期管理配置和定期删除。 此请求为覆盖操作,上传新的配置文件将覆盖之前的配置文件。生命周期管理对文件和文件夹同时生效。 https://www.qcloud.com/document/product/436/8280

func (*BucketService) PutLogging

func (s *BucketService) PutLogging(ctx context.Context, opt *BucketPutLoggingOptions) (*Response, error)

PutBucketLogging https://cloud.tencent.com/document/product/436/17054

func (*BucketService) PutOrigin added in v0.7.7

func (s *BucketService) PutOrigin(ctx context.Context, opt *BucketPutOriginOptions) (*Response, error)

func (*BucketService) PutPolicy

func (s *BucketService) PutPolicy(ctx context.Context, opt *BucketPutPolicyOptions) (*Response, error)

func (*BucketService) PutReferer added in v0.7.4

func (s *BucketService) PutReferer(ctx context.Context, opt *BucketPutRefererOptions) (*Response, error)

func (*BucketService) PutTagging

func (s *BucketService) PutTagging(ctx context.Context, opt *BucketPutTaggingOptions) (*Response, error)

PutTagging 接口实现给用指定Bucket打标签。用来组织和管理相关Bucket。

当该请求设置相同Key名称,不同Value时,会返回400。请求成功,则返回204。

https://www.qcloud.com/document/product/436/8281

func (*BucketService) PutVersioning

func (s *BucketService) PutVersioning(ctx context.Context, opt *BucketPutVersionOptions) (*Response, error)

PutVersion https://cloud.tencent.com/document/product/436/19889 Status has Suspended\Enabled

func (*BucketService) PutWebsite

func (s *BucketService) PutWebsite(ctx context.Context, opt *BucketPutWebsiteOptions) (*Response, error)

type BucketStatement

type BucketStatement struct {
	Principal map[string][]string               `json:"principal,omitempty"`
	Action    []string                          `json:"action,omitempty"`
	Effect    string                            `json:"effect,omitempty"`
	Resource  []string                          `json:"resource,omitempty"`
	Condition map[string]map[string]interface{} `json:"condition,omitempty"`
}

type BucketTaggingTag

type BucketTaggingTag struct {
	Key   string
	Value string
}

BucketTaggingTag is the tag of BucketTagging

type CASJobParameters

type CASJobParameters struct {
	Tier string `xml:"Tier" header:"-" url:"-"`
}

CASJobParameters support three way: Standard(in 35 hours), Expedited(quick way, in 15 mins), Bulk(in 5-12 hours_

type CIService added in v0.7.11

type CIService service

func (*CIService) AddStyle added in v0.7.36

func (s *CIService) AddStyle(ctx context.Context, opt *AddStyleOptions) (*Response, error)

func (*CIService) BatchImageAuditing added in v0.7.33

图片批量审核接口

func (*CIService) CancelInventoryTriggerJob added in v0.7.35

func (s *CIService) CancelInventoryTriggerJob(ctx context.Context, jobId string) (*Response, error)

CancelInventoryTriggerJob TODO

func (*CIService) CloseCIService added in v0.7.36

func (s *CIService) CloseCIService(ctx context.Context) (*Response, error)

func (*CIService) CloseOriginProtect added in v0.7.36

func (s *CIService) CloseOriginProtect(ctx context.Context) (*Response, error)

func (*CIService) CreateASRJobs added in v0.7.34

CreateASRJobs TODO

func (*CIService) CreateDocProcessJobs added in v0.7.13

创建文档预览任务 https://cloud.tencent.com/document/product/436/54056

func (*CIService) CreateInventoryTriggerJob added in v0.7.35

CreateInventoryTriggerJob TODO

func (*CIService) CreateMediaAnimationTemplate added in v0.7.35

func (s *CIService) CreateMediaAnimationTemplate(ctx context.Context, opt *CreateMediaAnimationTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaAnimationTemplate 创建动图模板

func (*CIService) CreateMediaConcatTemplate added in v0.7.35

CreateMediaConcatTemplate 创建拼接模板

func (*CIService) CreateMediaJobs added in v0.7.21

CreateMediaJobs TODO

func (*CIService) CreateMediaPicProcessTemplate added in v0.7.35

func (s *CIService) CreateMediaPicProcessTemplate(ctx context.Context, opt *CreateMediaPicProcessTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaPicProcessTemplate 创建图片处理模板

func (*CIService) CreateMediaSnapshotTemplate added in v0.7.35

CreateMediaSnapshotTemplate 创建截图模板

func (*CIService) CreateMediaSuperResolutionTemplate added in v0.7.35

func (s *CIService) CreateMediaSuperResolutionTemplate(ctx context.Context, opt *CreateMediaSuperResolutionTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaSuperResolutionTemplate 创建超级分辨率模板

func (*CIService) CreateMediaTranscodeTemplate added in v0.7.35

func (s *CIService) CreateMediaTranscodeTemplate(ctx context.Context, opt *CreateMediaTranscodeTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaTranscodeTemplate Options 创建转码模板

func (*CIService) CreateMediaVideoMontageTemplate added in v0.7.35

func (s *CIService) CreateMediaVideoMontageTemplate(ctx context.Context, opt *CreateMediaVideoMontageTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaVideoMontageTemplate 创建精彩集锦模板

func (*CIService) CreateMediaVideoProcessTemplate added in v0.7.35

func (s *CIService) CreateMediaVideoProcessTemplate(ctx context.Context, opt *CreateMediaVideoProcessTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaVideoProcessTemplate 创建视频增强模板

func (*CIService) CreateMediaVoiceSeparateTemplate added in v0.7.35

func (s *CIService) CreateMediaVoiceSeparateTemplate(ctx context.Context, opt *CreateMediaVoiceSeparateTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaVoiceSeparateTemplate 创建人声分离模板

func (*CIService) CreateMediaWatermarkTemplate added in v0.7.35

func (s *CIService) CreateMediaWatermarkTemplate(ctx context.Context, opt *CreateMediaWatermarkTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaWatermarkTemplate 创建水印模板

func (*CIService) CreateMediaWorkflow added in v0.7.35

CreateMediaWorkflow 创建工作流

func (*CIService) CreateMultiMediaJobs added in v0.7.32

CreateMultiMediaJobs TODO

func (*CIService) CreatePicProcessJobs added in v0.7.35

func (s *CIService) CreatePicProcessJobs(ctx context.Context, opt *CreatePicJobsOptions) (*CreatePicJobsResult, *Response, error)

CreatePicProcessJobs TODO

func (*CIService) DeleteGuetzli added in v0.7.25

func (s *CIService) DeleteGuetzli(ctx context.Context) (*Response, error)

关闭 Guetzli 压缩 https://cloud.tencent.com/document/product/460/30113

func (*CIService) DeleteMediaTemplate added in v0.7.35

func (s *CIService) DeleteMediaTemplate(ctx context.Context, tempalteId string) (*DeleteMediaTemplateResult, *Response, error)

DeleteMediaTemplate TODO

func (*CIService) DeleteMediaWorkflow added in v0.7.35

func (s *CIService) DeleteMediaWorkflow(ctx context.Context, workflowId string) (*DeleteMediaWorkflowResult, *Response, error)

DeleteMediaWorkflow 删除工作流

func (*CIService) DeleteStyle added in v0.7.36

func (s *CIService) DeleteStyle(ctx context.Context, opt *DeleteStyleOptions) (*Response, error)

func (*CIService) DescribeDocProcessBuckets added in v0.7.13

查询文档预览开通状态 https://cloud.tencent.com/document/product/436/54057

func (*CIService) DescribeDocProcessJob added in v0.7.13

func (s *CIService) DescribeDocProcessJob(ctx context.Context, jobid string) (*DescribeDocProcessJobResult, *Response, error)

查询文档预览任务 https://cloud.tencent.com/document/product/436/54095

func (*CIService) DescribeDocProcessJobs added in v0.7.13

拉取符合条件的文档预览任务 https://cloud.tencent.com/document/product/436/54096

func (*CIService) DescribeDocProcessQueues added in v0.7.13

查询文档预览队列 https://cloud.tencent.com/document/product/436/54055

func (*CIService) DescribeInventoryTriggerJob added in v0.7.35

func (s *CIService) DescribeInventoryTriggerJob(ctx context.Context, jobId string) (*DescribeInventoryTriggerJobResult, *Response, error)

DescribeInventoryTriggerJob 查询指定存量触发工作流的任务

func (*CIService) DescribeInventoryTriggerJobs added in v0.7.35

DescribeInventoryTriggerJobs 查询存量触发工作流的任务

func (*CIService) DescribeMediaJob added in v0.7.26

func (s *CIService) DescribeMediaJob(ctx context.Context, jobid string) (*DescribeMediaProcessJobResult, *Response, error)

DescribeMediaJob TODO

func (*CIService) DescribeMediaJobs added in v0.7.21

DescribeMediaJobs TODO https://cloud.tencent.com/document/product/460/48235

func (*CIService) DescribeMediaProcessBuckets added in v0.7.21

DescribeMediaProcessBuckets TODO 媒体bucket接口 https://cloud.tencent.com/document/product/436/48988

func (*CIService) DescribeMediaProcessQueues added in v0.7.21

DescribeMediaProcessQueues TODO

func (*CIService) DescribeMediaTemplate added in v0.7.35

DescribeMediaTemplate 搜索模板

func (*CIService) DescribeMediaWorkflow added in v0.7.35

DescribeMediaWorkflow 搜索工作流

func (*CIService) DescribeMultiASRJob added in v0.7.34

func (s *CIService) DescribeMultiASRJob(ctx context.Context, jobids []string) (*DescribeMutilASRJobResult, *Response, error)

DescribeMultiASRJob TODO

func (*CIService) DescribeMultiMediaJob added in v0.7.34

func (s *CIService) DescribeMultiMediaJob(ctx context.Context, jobids []string) (*DescribeMutilMediaProcessJobResult, *Response, error)

DescribeMultiMediaJob TODO

func (*CIService) DescribePicProcessJob added in v0.7.35

func (s *CIService) DescribePicProcessJob(ctx context.Context, jobid string) (*DescribePicProcessJobResult, *Response, error)

DescribePicProcessJob TODO

func (*CIService) DescribePicProcessQueues added in v0.7.35

DescribePicProcessQueues TODO

func (*CIService) DescribeWorkflowExecution added in v0.7.34

func (s *CIService) DescribeWorkflowExecution(ctx context.Context, runId string) (*DescribeWorkflowExecutionResult, *Response, error)

DescribeWorkflowExecution TODO 获取工作流实例详情 https://cloud.tencent.com/document/product/460/45949

func (*CIService) DescribeWorkflowExecutions added in v0.7.34

DescribeWorkflowExecutions TODO 获取工作流实例列表 https://cloud.tencent.com/document/product/460/45950

func (*CIService) DetectCar added in v0.7.36

func (s *CIService) DetectCar(ctx context.Context, obj string) (*DetectCarResult, *Response, error)

DetectCar 车辆车牌检测

func (*CIService) DetectFace added in v0.7.36

func (s *CIService) DetectFace(ctx context.Context, obj string, opt *DetectFaceOptions) (*DetectFaceResult, *Response, error)

func (*CIService) DocPreview added in v0.7.13

func (s *CIService) DocPreview(ctx context.Context, name string, opt *DocPreviewOptions) (*Response, error)

同步请求接口 https://cloud.tencent.com/document/product/436/54058

func (*CIService) DocPreviewHTML added in v0.7.37

func (s *CIService) DocPreviewHTML(ctx context.Context, name string, opt *DocPreviewHTMLOptions) (*Response, error)

文档转html https://cloud.tencent.com/document/product/460/52518

func (*CIService) FaceEffect added in v0.7.36

func (s *CIService) FaceEffect(ctx context.Context, obj string, opt *FaceEffectOptions) (*FaceEffectResult, *Response, error)

func (*CIService) GenerateMediaInfo added in v0.7.34

func (s *CIService) GenerateMediaInfo(ctx context.Context, opt *GenerateMediaInfoOptions) (*GetMediaInfoResult, *Response, error)

GenerateMediaInfo TODO 生成媒体信息接口,支持大文件,耗时较大请求

func (*CIService) GenerateQRcode added in v0.7.25

二维码生成 https://cloud.tencent.com/document/product/436/54071

func (*CIService) GenerateQRcodeToFile added in v0.7.25

func (s *CIService) GenerateQRcodeToFile(ctx context.Context, filePath string, opt *GenerateQRcodeOptions) (*GenerateQRcodeResult, *Response, error)

func (*CIService) Get added in v0.7.25

func (s *CIService) Get(ctx context.Context, name string, operation string, opt *ObjectGetOptions, id ...string) (*Response, error)

基本图片处理 https://cloud.tencent.com/document/product/460/36540 盲水印-下载时添加 https://cloud.tencent.com/document/product/460/19017

func (*CIService) GetActionSequence added in v0.7.36

func (s *CIService) GetActionSequence(ctx context.Context) (*GetActionSequenceResult, *Response, error)

func (*CIService) GetAudioAuditingJob added in v0.7.25

func (s *CIService) GetAudioAuditingJob(ctx context.Context, jobid string) (*GetAudioAuditingJobResult, *Response, error)

音频审核-查询任务 https://cloud.tencent.com/document/product/460/53396

func (*CIService) GetCIService added in v0.7.36

func (s *CIService) GetCIService(ctx context.Context) (*CIServiceResult, *Response, error)

func (*CIService) GetDocumentAuditingJob added in v0.7.31

func (s *CIService) GetDocumentAuditingJob(ctx context.Context, jobid string) (*GetDocumentAuditingJobResult, *Response, error)

文档审核-查询任务 https://cloud.tencent.com/document/product/436/59382

func (*CIService) GetGuetzli added in v0.7.25

func (s *CIService) GetGuetzli(ctx context.Context) (*GetGuetzliResult, *Response, error)

查询 Guetzli 状态 https://cloud.tencent.com/document/product/460/30111

func (s *CIService) GetHotLink(ctx context.Context) (*HotLinkResult, *Response, error)

func (*CIService) GetImageAuditingJob added in v0.7.34

func (s *CIService) GetImageAuditingJob(ctx context.Context, jobid string) (*GetImageAuditingJobResult, *Response, error)

图片审核-查询任务

func (*CIService) GetLiveCode added in v0.7.36

func (s *CIService) GetLiveCode(ctx context.Context) (*GetLiveCodeResult, *Response, error)

func (*CIService) GetMediaInfo added in v0.7.32

func (s *CIService) GetMediaInfo(ctx context.Context, name string, opt *ObjectGetOptions, id ...string) (*GetMediaInfoResult, *Response, error)

GetMediaInfo TODO 媒体信息接口 https://cloud.tencent.com/document/product/436/55672

func (*CIService) GetOriginProtect added in v0.7.36

func (s *CIService) GetOriginProtect(ctx context.Context) (*OriginProtectResult, *Response, error)

func (*CIService) GetPrivateM3U8 added in v0.7.34

func (s *CIService) GetPrivateM3U8(ctx context.Context, name string, opt *GetPrivateM3U8Options, id ...string) (*Response, error)

GetPrivateM3U8 TODO 获取私有m3u8资源接口 https://cloud.tencent.com/document/product/460/63738

func (*CIService) GetQRcode added in v0.7.25

func (s *CIService) GetQRcode(ctx context.Context, name string, cover int, opt *ObjectGetOptions, id ...string) (*GetQRcodeResult, *Response, error)

二维码识别-下载时识别 https://cloud.tencent.com/document/product/436/54070

func (*CIService) GetSnapshot added in v0.7.32

func (s *CIService) GetSnapshot(ctx context.Context, name string, opt *GetSnapshotOptions, id ...string) (*Response, error)

GetSnapshot TODO 媒体截图接口 https://cloud.tencent.com/document/product/436/55671

func (*CIService) GetStyle added in v0.7.36

func (s *CIService) GetStyle(ctx context.Context, opt *GetStyleOptions) (*GetStyleResult, *Response, error)

func (*CIService) GetTextAuditingJob added in v0.7.31

func (s *CIService) GetTextAuditingJob(ctx context.Context, jobid string) (*GetTextAuditingJobResult, *Response, error)

文本审核-查询任务 https://cloud.tencent.com/document/product/436/56288

func (*CIService) GetToFile added in v0.7.25

func (s *CIService) GetToFile(ctx context.Context, name, localpath, operation string, opt *ObjectGetOptions, id ...string) (*Response, error)

func (*CIService) GetVideoAuditingJob added in v0.7.11

func (s *CIService) GetVideoAuditingJob(ctx context.Context, jobid string) (*GetVideoAuditingJobResult, *Response, error)

视频审核-查询任务 https://cloud.tencent.com/document/product/460/46926

func (*CIService) GetVirusDetectJob added in v0.7.34

func (s *CIService) GetVirusDetectJob(ctx context.Context, jobid string) (*GetVirusDetectJobResult, *Response, error)

云查毒接口-查询病毒检测任务结果 https://cloud.tencent.com/document/product/436/63962

func (*CIService) GetWebpageAuditingJob added in v0.7.33

func (s *CIService) GetWebpageAuditingJob(ctx context.Context, jobid string) (*GetWebpageAuditingJobResult, *Response, error)

网页审核-查询任务 https://cloud.tencent.com/document/product/436/63959

func (*CIService) GoodsMatting added in v0.7.37

func (s *CIService) GoodsMatting(ctx context.Context, key string) (*Response, error)

GoodsMatting 商品抠图

func (*CIService) IdCardOCRWhenCloud added in v0.7.36

func (s *CIService) IdCardOCRWhenCloud(ctx context.Context, obj string, query *IdCardOCROptions) (*IdCardOCRResult, *Response, error)

func (*CIService) IdCardOCRWhenUpload added in v0.7.36

func (s *CIService) IdCardOCRWhenUpload(ctx context.Context, obj, filePath string, query *IdCardOCROptions, header *ObjectPutOptions) (*IdCardOCRResult, *Response, error)

func (*CIService) ImageAuditing added in v0.7.31

图片审核 支持detect-url等全部参数

func (*CIService) ImageProcess added in v0.7.11

func (s *CIService) ImageProcess(ctx context.Context, name string, opt *ImageProcessOptions) (*ImageProcessResult, *Response, error)

云上数据处理 https://cloud.tencent.com/document/product/460/18147

func (*CIService) ImageQuality added in v0.7.36

func (s *CIService) ImageQuality(ctx context.Context, obj string) (*ImageQualityResult, *Response, error)

ImageQuality 图片质量评估

func (*CIService) ImageRecognition added in v0.7.11

func (s *CIService) ImageRecognition(ctx context.Context, name string, DetectType string) (*ImageRecognitionResult, *Response, error)

图片审核 https://cloud.tencent.com/document/product/460/37318

func (*CIService) LivenessRecognitionWhenCloud added in v0.7.36

func (s *CIService) LivenessRecognitionWhenCloud(ctx context.Context, obj string, query *LivenessRecognitionOptions) (*LivenessRecognitionResult, *Response, error)

func (*CIService) LivenessRecognitionWhenUpload added in v0.7.36

func (s *CIService) LivenessRecognitionWhenUpload(ctx context.Context, obj, filePath string, query *LivenessRecognitionOptions, header *ObjectPutOptions) (*LivenessRecognitionResult, *Response, error)

func (*CIService) OcrRecognition added in v0.7.36

func (s *CIService) OcrRecognition(ctx context.Context, obj string, opt *OcrRecognitionOptions) (*OcrRecognitionResult, *Response, error)

OcrRecognition OCR通用文字识别

func (*CIService) OpenCIService added in v0.7.36

func (s *CIService) OpenCIService(ctx context.Context) (*Response, error)

func (*CIService) OpenOriginProtect added in v0.7.36

func (s *CIService) OpenOriginProtect(ctx context.Context) (*Response, error)

func (*CIService) PicTag added in v0.7.36

func (s *CIService) PicTag(ctx context.Context, obj string) (*PicTagResult, *Response, error)

func (*CIService) PostVideoAuditingCancelJob added in v0.7.36

func (s *CIService) PostVideoAuditingCancelJob(ctx context.Context, jobid string) (*PutVideoAuditingJobResult, *Response, error)

视频审核-取消直播流审核任务

func (*CIService) Put added in v0.7.21

图片持久化处理-上传时处理 https://cloud.tencent.com/document/product/460/18147 盲水印-上传时添加 https://cloud.tencent.com/document/product/460/19017 二维码识别-上传时识别 https://cloud.tencent.com/document/product/460/37513

func (*CIService) PutAudioAuditingJob added in v0.7.25

音频审核-创建任务 https://cloud.tencent.com/document/product/460/53395

func (*CIService) PutDocumentAuditingJob added in v0.7.31

文档审核-创建任务 https://cloud.tencent.com/document/product/436/59381

func (*CIService) PutFromFile added in v0.7.21

func (s *CIService) PutFromFile(ctx context.Context, name string, filePath string, opt *ObjectPutOptions) (*ImageProcessResult, *Response, error)

ci put object from local file

func (*CIService) PutGuetzli added in v0.7.25

func (s *CIService) PutGuetzli(ctx context.Context) (*Response, error)

开通 Guetzli 压缩 https://cloud.tencent.com/document/product/460/30112

func (*CIService) PutTextAuditingJob added in v0.7.31

文本审核-创建任务 https://cloud.tencent.com/document/product/436/56289

func (*CIService) PutVideoAuditingJob added in v0.7.11

视频审核-创建任务 https://cloud.tencent.com/document/product/460/46427

func (*CIService) PutVirusDetectJob added in v0.7.34

云查毒接口-提交病毒检测任务 https://cloud.tencent.com/document/product/436/63961

func (*CIService) PutWebpageAuditingJob added in v0.7.33

网页审核-创建任务 https://cloud.tencent.com/document/product/436/63958

func (*CIService) ReportBadcase added in v0.7.36

提交Badcase

func (s *CIService) SetHotLink(ctx context.Context, opt *HotLinkOptions) (*Response, error)

func (*CIService) TriggerWorkflow added in v0.7.34

TriggerWorkflow TODO 单文件触发工作流 https://cloud.tencent.com/document/product/460/54640

func (*CIService) UpdateDocProcessQueue added in v0.7.13

更新文档预览队列 https://cloud.tencent.com/document/product/436/54094

func (*CIService) UpdateMediaAnimationTemplate added in v0.7.35

func (s *CIService) UpdateMediaAnimationTemplate(ctx context.Context, opt *CreateMediaAnimationTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaAnimationTemplate 更新动图模板

func (*CIService) UpdateMediaConcatTemplate added in v0.7.35

func (s *CIService) UpdateMediaConcatTemplate(ctx context.Context, opt *CreateMediaConcatTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaConcatTemplate 更新拼接模板

func (*CIService) UpdateMediaPicProcessTemplate added in v0.7.35

func (s *CIService) UpdateMediaPicProcessTemplate(ctx context.Context, opt *CreateMediaPicProcessTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaPicProcessTemplate 更新图片处理模板

func (*CIService) UpdateMediaProcessQueue added in v0.7.21

UpdateMediaProcessQueue TODO

func (*CIService) UpdateMediaSnapshotTemplate added in v0.7.35

func (s *CIService) UpdateMediaSnapshotTemplate(ctx context.Context, opt *CreateMediaSnapshotTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaSnapshotTemplate 更新截图模板

func (*CIService) UpdateMediaSuperResolutionTemplate added in v0.7.35

func (s *CIService) UpdateMediaSuperResolutionTemplate(ctx context.Context, opt *CreateMediaSuperResolutionTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaSuperResolutionTemplate 更新超级分辨率模板

func (*CIService) UpdateMediaTranscodeTemplate added in v0.7.35

func (s *CIService) UpdateMediaTranscodeTemplate(ctx context.Context, opt *CreateMediaTranscodeTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaTranscodeTemplate 更新转码模板

func (*CIService) UpdateMediaVideoMontageTemplate added in v0.7.35

func (s *CIService) UpdateMediaVideoMontageTemplate(ctx context.Context, opt *CreateMediaVideoMontageTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaVideoMontageTemplate 更新精彩集锦模板

func (*CIService) UpdateMediaVideoProcessTemplate added in v0.7.35

func (s *CIService) UpdateMediaVideoProcessTemplate(ctx context.Context, opt *CreateMediaVideoProcessTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaVideoProcessTemplate 更新视频增强模板

func (*CIService) UpdateMediaVoiceSeparateTemplate added in v0.7.35

func (s *CIService) UpdateMediaVoiceSeparateTemplate(ctx context.Context, opt *CreateMediaVoiceSeparateTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaVoiceSeparateTemplate 更新人声分离模板

func (*CIService) UpdateMediaWatermarkTemplate added in v0.7.35

func (s *CIService) UpdateMediaWatermarkTemplate(ctx context.Context, opt *CreateMediaWatermarkTemplateOptions, templateId string) (*CreateMediaTemplateResult, *Response, error)

UpdateMediaWatermarkTemplate 更新水印模板

func (*CIService) UpdateMediaWorkflow added in v0.7.35

func (s *CIService) UpdateMediaWorkflow(ctx context.Context, opt *CreateMediaWorkflowOptions, workflowId string) (*CreateMediaWorkflowResult, *Response, error)

UpdateMediaWorkflow TODO

type CIServiceResult added in v0.7.36

type CIServiceResult struct {
	XMLName  xml.Name `xml:"CIStatus"`
	CIStatus string   `xml:",chardata"`
}

type CSVInputSerialization added in v0.7.11

type CSVInputSerialization struct {
	RecordDelimiter            string `xml:"RecordDelimiter,omitempty"`
	FieldDelimiter             string `xml:"FieldDelimiter,omitempty"`
	QuoteCharacter             string `xml:"QuoteCharacter,omitempty"`
	QuoteEscapeCharacter       string `xml:"QuoteEscapeCharacter,omitempty"`
	AllowQuotedRecordDelimiter string `xml:"AllowQuotedRecordDelimiter,omitempty"`
	FileHeaderInfo             string `xml:"FileHeaderInfo,omitempty"`
	Comments                   string `xml:"Comments,omitempty"`
}

type CSVOutputSerialization added in v0.7.11

type CSVOutputSerialization struct {
	QuoteFields          string `xml:"QuoteFields,omitempty"`
	RecordDelimiter      string `xml:"RecordDelimiter,omitempty"`
	FieldDelimiter       string `xml:"FieldDelimiter,omitempty"`
	QuoteCharacter       string `xml:"QuoteCharacter,omitempty"`
	QuoteEscapeCharacter string `xml:"QuoteEscapeCharacter,omitempty"`
}

type CVMCredentialTransport added in v0.7.34

type CVMCredentialTransport struct {
	RoleName  string
	Transport http.RoundTripper
	// contains filtered or unexported fields
}

func (*CVMCredentialTransport) GetCredential added in v0.7.34

func (t *CVMCredentialTransport) GetCredential() (string, string, string, error)

func (*CVMCredentialTransport) GetRoles added in v0.7.34

func (t *CVMCredentialTransport) GetRoles() ([]string, error)

func (*CVMCredentialTransport) RoundTrip added in v0.7.34

func (t *CVMCredentialTransport) RoundTrip(req *http.Request) (*http.Response, error)

func (*CVMCredentialTransport) UpdateCredential added in v0.7.34

func (t *CVMCredentialTransport) UpdateCredential(now int64) (string, string, string, error)

https://cloud.tencent.com/document/product/213/4934

type CVMSecurityCredentials added in v0.7.32

type CVMSecurityCredentials struct {
	TmpSecretId  string `json:",omitempty"`
	TmpSecretKey string `json:",omitempty"`
	ExpiredTime  int64  `json:",omitempty"`
	Expiration   string `json:",omitempty"`
	Token        string `json:",omitempty"`
	Code         string `json:",omitempty"`
}

type CarLocation added in v0.7.36

type CarLocation struct {
	X int `xml:"X,omitempty"`
	Y int `xml:"Y,omitempty"`
}

type CarTags added in v0.7.36

type CarTags struct {
	Serial       string         `xml:"Serial,omitempty"`
	Brand        string         `xml:"Brand,omitempty"`
	Type         string         `xml:"Type,omitempty"`
	Color        string         `xml:"Color,omitempty"`
	Confidence   int            `xml:"Confidence,omitempty"`
	Year         int            `xml:"Year,omitempty"`
	CarLocation  []CarLocation  `xml:"CarLocation,omitempty"`
	PlateContent []PlateContent `xml:"PlateContent,omitempty"`
}

type Chunk

type Chunk struct {
	Number int
	OffSet int64
	Size   int64
	Done   bool
	ETag   string
}

func SplitFileIntoChunks

func SplitFileIntoChunks(filePath string, partSize int64) (int64, []Chunk, int, error)

func SplitSizeIntoChunks added in v0.7.25

func SplitSizeIntoChunks(totalBytes int64, partSize int64) ([]Chunk, int, error)

type Client

type Client struct {
	Host      string
	UserAgent string
	BaseURL   *BaseURL

	Service *ServiceService
	Bucket  *BucketService
	Object  *ObjectService
	Batch   *BatchService
	CI      *CIService

	Conf *Config
	// contains filtered or unexported fields
}

Client is a client manages communication with the COS API.

func NewClient

func NewClient(uri *BaseURL, httpClient *http.Client) *Client

NewClient returns a new COS API client.

func (*Client) GetCredential added in v0.7.26

func (c *Client) GetCredential() *Credential

type ClipConfig added in v0.7.35

type ClipConfig struct {
	Duration string `xml:"Duration"`
}

ClipConfig TODO

type CodeLocation added in v0.7.25

type CodeLocation struct {
	Point []string `xml:"Point,omitempty"`
}

type ColorEnhance added in v0.7.34

type ColorEnhance struct {
	Enable     string `xml:"Enable"`
	Contrast   string `xml:"Contrast"`
	Correction string `xml:"Correction"`
	Saturation string `xml:"Saturation"`
}

ColorEnhance TODO

type CompleteMultipartUploadOptions

type CompleteMultipartUploadOptions struct {
	XMLName       xml.Name     `xml:"CompleteMultipartUpload" header:"-" url:"-"`
	Parts         []Object     `xml:"Part" header:"-" url:"-"`
	XOptionHeader *http.Header `header:"-,omitempty" xml:"-" url:"-"`
}

CompleteMultipartUploadOptions is the option of CompleteMultipartUpload

func CloneCompleteMultipartUploadOptions added in v0.7.26

func CloneCompleteMultipartUploadOptions(opt *CompleteMultipartUploadOptions) *CompleteMultipartUploadOptions

type CompleteMultipartUploadResult

type CompleteMultipartUploadResult struct {
	XMLName  xml.Name `xml:"CompleteMultipartUploadResult"`
	Location string
	Bucket   string
	Key      string
	ETag     string
}

CompleteMultipartUploadResult is the result CompleteMultipartUpload

type ConcatFragment added in v0.7.31

type ConcatFragment struct {
	Url       string `xml:"Url,omitempty"`
	Mode      string `xml:"Mode,omitempty"`
	StartTime string `xml:"StartTime,omitempty"`
	EndTime   string `xml:"EndTime,omitempty"`
}

ConcatFragment TODO

type ConcatTemplate added in v0.7.31

type ConcatTemplate struct {
	ConcatFragment []ConcatFragment `xml:"ConcatFragment,omitempty"`
	Audio          *Audio           `xml:"Audio,omitempty"`
	Video          *Video           `xml:"Video,omitempty"`
	Container      *Container       `xml:"Container,omitempty"`
	Index          string           `xml:"Index,omitempty"`
	AudioMix       *AudioMix        `xml:"AudioMix,omitempty"`
}

ConcatTemplate TODO

type Config added in v0.7.22

type Config struct {
	EnableCRC        bool
	RequestBodyClose bool
	RetryOpt         RetryOptions
}

type Container added in v0.7.21

type Container struct {
	Format     string     `xml:"Format"`
	ClipConfig ClipConfig `xml:"ClipConfig"`
}

Container TODO

type CopyJobs added in v0.7.17

type CopyJobs struct {
	Name       string
	UploadId   string
	RetryTimes int
	Chunk      Chunk
	Opt        *ObjectCopyPartOptions
}

type CopyPartResult

type CopyPartResult struct {
	XMLName      xml.Name `xml:"CopyPartResult"`
	ETag         string
	LastModified string
}

CopyPartResult is the result CopyPart

type CopyResults added in v0.7.17

type CopyResults struct {
	PartNumber int
	Resp       *Response
	// contains filtered or unexported fields
}

type CreateASRJobsOptions added in v0.7.34

type CreateASRJobsOptions struct {
	XMLName   xml.Name         `xml:"Request"`
	Tag       string           `xml:"Tag,omitempty"`
	Input     *JobInput        `xml:"Input,omitempty"`
	Operation *ASRJobOperation `xml:"Operation,omitempty"`
	QueueId   string           `xml:"QueueId,omitempty"`
	CallBack  string           `xml:"CallBack,omitempty"`
}

CreateASRJobsOptions TODO

type CreateASRJobsResult added in v0.7.34

type CreateASRJobsResult struct {
	XMLName    xml.Name      `xml:"Response"`
	JobsDetail *ASRJobDetail `xml:"JobsDetail,omitempty"`
}

CreateASRJobsResult TODO

type CreateBucketConfiguration added in v0.7.25

type CreateBucketConfiguration struct {
	XMLName          xml.Name `xml:"CreateBucketConfiguration"`
	BucketAZConfig   string   `xml:"BucketAZConfig,omitempty"`
	BucketArchConfig string   `xml:"BucketArchConfig,omitempty"`
}

type CreateDocProcessJobsOptions added in v0.7.13

type CreateDocProcessJobsOptions struct {
	XMLName   xml.Name                `xml:"Request"`
	Tag       string                  `xml:"Tag,omitempty"`
	Input     *DocProcessJobInput     `xml:"Input,omitempty"`
	Operation *DocProcessJobOperation `xml:"Operation,omitempty"`
	QueueId   string                  `xml:"QueueId,omitempty"`
}

type CreateDocProcessJobsResult added in v0.7.13

type CreateDocProcessJobsResult struct {
	XMLName    xml.Name            `xml:"Response"`
	JobsDetail DocProcessJobDetail `xml:"JobsDetail,omitempty"`
}

type CreateInventoryTriggerJobOptions added in v0.7.35

type CreateInventoryTriggerJobOptions struct {
	XMLName   xml.Name                      `xml:"Request"`
	Name      string                        `xml:"Name,omitempty"`
	Input     *InventoryTriggerJobInput     `xml:"Input,omitempty"`
	Operation *InventoryTriggerJobOperation `xml:"Operation,omitempty"`
}

CreateInventoryTriggerJobOptions TODO

type CreateInventoryTriggerJobResult added in v0.7.35

type CreateInventoryTriggerJobResult struct {
	XMLName    xml.Name                   `xml:"Response"`
	RequestId  string                     `xml:"RequestId,omitempty"`
	JobsDetail *InventoryTriggerJobDetail `xml:"JobsDetail,omitempty"`
}

CreateInventoryTriggerJobResult TODO

type CreateMediaAnimationTemplateOptions added in v0.7.35

type CreateMediaAnimationTemplateOptions struct {
	XMLName      xml.Name        `xml:"Request"`
	Tag          string          `xml:"Tag,omitempty"`
	Name         string          `xml:"Name,omitempty"`
	Container    *Container      `xml:"Container,omitempty"`
	Video        *AnimationVideo `xml:"Video,omitempty"`
	TimeInterval *TimeInterval   `xml:"TimeInterval,omitempty"`
}

CreateMediaAnimationTemplateOptions TODO

type CreateMediaConcatTemplateOptions added in v0.7.35

type CreateMediaConcatTemplateOptions struct {
	XMLName        xml.Name        `xml:"Request"`
	Tag            string          `xml:"Tag,omitempty"`
	Name           string          `xml:"Name,omitempty"`
	ConcatTemplate *ConcatTemplate `xml:"ConcatTemplate,omitempty"`
}

CreateMediaConcatTemplateOptions TODO

type CreateMediaJobsOptions added in v0.7.21

type CreateMediaJobsOptions struct {
	XMLName   xml.Name                  `xml:"Request"`
	Tag       string                    `xml:"Tag,omitempty"`
	Input     *JobInput                 `xml:"Input,omitempty"`
	Operation *MediaProcessJobOperation `xml:"Operation,omitempty"`
	QueueId   string                    `xml:"QueueId,omitempty"`
	CallBack  string                    `xml:"CallBack,omitempty"`
}

CreateMediaJobsOptions TODO

type CreateMediaJobsResult added in v0.7.21

type CreateMediaJobsResult struct {
	XMLName    xml.Name               `xml:"Response"`
	JobsDetail *MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
}

CreateMediaJobsResult TODO

type CreateMediaPicProcessTemplateOptions added in v0.7.35

type CreateMediaPicProcessTemplateOptions struct {
	XMLName    xml.Name    `xml:"Request"`
	Tag        string      `xml:"Tag,omitempty"`
	Name       string      `xml:"Name,omitempty"`
	PicProcess *PicProcess `xml:"PicProcess,omitempty"`
}

CreateMediaPicProcessTemplateOptions TODO

type CreateMediaSnapshotTemplateOptions added in v0.7.35

type CreateMediaSnapshotTemplateOptions struct {
	XMLName  xml.Name  `xml:"Request"`
	Tag      string    `xml:"Tag,omitempty"`
	Name     string    `xml:"Name,omitempty"`
	Snapshot *Snapshot `xml:"Snapshot,omitempty"`
}

CreateMediaSnapshotTemplateOptions TODO

type CreateMediaSuperResolutionTemplateOptions added in v0.7.35

type CreateMediaSuperResolutionTemplateOptions struct {
	XMLName       xml.Name `xml:"Request"`
	Tag           string   `xml:"Tag,omitempty"`
	Name          string   `xml:"Name,omitempty"`
	Resolution    string   `xml:"Resolution,omitempty"` // sdtohd、hdto4k
	EnableScaleUp string   `xml:"EnableScaleUp,omitempty"`
	Version       string   `xml:"Version,omitempty"`
}

CreateMediaSuperResolutionTemplateOptions TODO

type CreateMediaTemplateResult added in v0.7.35

type CreateMediaTemplateResult struct {
	XMLName   xml.Name  `xml:"Response"`
	RequestId string    `xml:"RequestId,omitempty"`
	Template  *Template `xml:"Template,omitempty"`
}

CreateMediaTemplateResult TODO

type CreateMediaTranscodeTemplateOptions added in v0.7.35

type CreateMediaTranscodeTemplateOptions struct {
	XMLName      xml.Name      `xml:"Request"`
	Tag          string        `xml:"Tag,omitempty"`
	Name         string        `xml:"Name,omitempty"`
	Container    *Container    `xml:"Container,omitempty"`
	Video        *Video        `xml:"Video,omitempty"`
	Audio        *Audio        `xml:"Audio,omitempty"`
	TimeInterval *TimeInterval `xml:"TimeInterval,omitempty"`
	TransConfig  *TransConfig  `xml:"TransConfig,omitempty"`
}

CreateMediaTranscodeTemplateOptions TODO

type CreateMediaVideoMontageTemplateOptions added in v0.7.35

type CreateMediaVideoMontageTemplateOptions struct {
	XMLName   xml.Name   `xml:"Request"`
	Tag       string     `xml:"Tag,omitempty"`
	Name      string     `xml:"Name,omitempty"`
	Duration  string     `xml:"Duration,omitempty"`
	Container *Container `xml:"Container,omitempty"`
	Video     *Video     `xml:"Video,omitempty"`
	Audio     *Audio     `xml:"Audio,omitempty"`
	AudioMix  *AudioMix  `xml:"AudioMix,omitempty"`
}

CreateMediaVideoMontageTemplateOptions TODO

type CreateMediaVideoProcessTemplateOptions added in v0.7.35

type CreateMediaVideoProcessTemplateOptions struct {
	XMLName      xml.Name      `xml:"Request"`
	Tag          string        `xml:"Tag,omitempty"`
	Name         string        `xml:"Name,omitempty"`
	ColorEnhance *ColorEnhance `xml:"ColorEnhance,omitempty"`
	MsSharpen    *MsSharpen    `xml:"MsSharpen,omitempty"`
}

CreateMediaVideoProcessTemplateOptions TODO

type CreateMediaVoiceSeparateTemplateOptions added in v0.7.35

type CreateMediaVoiceSeparateTemplateOptions struct {
	XMLName     xml.Name     `xml:"Request"`
	Tag         string       `xml:"Tag,omitempty"`
	Name        string       `xml:"Name,omitempty"`
	AudioMode   string       `xml:"AudioMode,omitempty"`
	AudioConfig *AudioConfig `xml:"AudioConfig,omitempty"`
}

CreateMediaVoiceSeparateTemplateOptions TODO

type CreateMediaWatermarkTemplateOptions added in v0.7.35

type CreateMediaWatermarkTemplateOptions struct {
	XMLName   xml.Name   `xml:"Request"`
	Tag       string     `xml:"Tag,omitempty"`
	Name      string     `xml:"Name,omitempty"`
	Watermark *Watermark `xml:"Watermark,omitempty"`
}

CreateMediaWatermarkTemplateOptions TODO

type CreateMediaWorkflowOptions added in v0.7.35

type CreateMediaWorkflowOptions struct {
	XMLName       xml.Name       `xml:"Request"`
	MediaWorkflow *MediaWorkflow `xml:"MediaWorkflow,omitempty"`
}

CreateMediaWorkflowOptions TODO

func (*CreateMediaWorkflowOptions) MarshalXML added in v0.7.35

func (m *CreateMediaWorkflowOptions) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML TODO

func (*CreateMediaWorkflowOptions) UnmarshalXML added in v0.7.35

func (m *CreateMediaWorkflowOptions) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML TODO

type CreateMediaWorkflowResult added in v0.7.35

type CreateMediaWorkflowResult struct {
	XMLName       xml.Name       `xml:"Response"`
	RequestId     string         `xml:"RequestId,omitempty"`
	MediaWorkflow *MediaWorkflow `xml:"MediaWorkflow,omitempty"`
}

CreateMediaWorkflowResult TODO

type CreateMultiMediaJobsOptions added in v0.7.32

type CreateMultiMediaJobsOptions struct {
	XMLName   xml.Name                   `xml:"Request"`
	Tag       string                     `xml:"Tag,omitempty"`
	Input     *JobInput                  `xml:"Input,omitempty"`
	Operation []MediaProcessJobOperation `xml:"Operation,omitempty"`
	QueueId   string                     `xml:"QueueId,omitempty"`
	CallBack  string                     `xml:"CallBack,omitempty"`
}

CreateMultiMediaJobsOptions TODO

type CreateMultiMediaJobsResult added in v0.7.32

type CreateMultiMediaJobsResult struct {
	XMLName    xml.Name                `xml:"Response"`
	JobsDetail []MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
}

CreateMultiMediaJobsResult TODO

type CreatePicJobsOptions added in v0.7.35

type CreatePicJobsOptions struct {
	XMLName   xml.Name                `xml:"Request"`
	Tag       string                  `xml:"Tag,omitempty"`
	Input     *JobInput               `xml:"Input,omitempty"`
	Operation *PicProcessJobOperation `xml:"Operation,omitempty"`
	QueueId   string                  `xml:"QueueId,omitempty"`
	CallBack  string                  `xml:"CallBack,omitempty"`
}

CreatePicJobsOptions TODO

type CreatePicJobsResult added in v0.7.35

type CreatePicJobsResult CreateMediaJobsResult

CreatePicJobsResult TODO

type Credential added in v0.7.26

type Credential struct {
	SecretID     string
	SecretKey    string
	SessionToken string
}

func NewTokenCredential added in v0.7.34

func NewTokenCredential(secretId, secretKey, token string) *Credential

func (*Credential) GetSecretId added in v0.7.34

func (c *Credential) GetSecretId() string

func (*Credential) GetSecretKey added in v0.7.34

func (c *Credential) GetSecretKey() string

func (*Credential) GetToken added in v0.7.34

func (c *Credential) GetToken() string

type CredentialIface added in v0.7.34

type CredentialIface interface {
	GetSecretId() string
	GetToken() string
	GetSecretKey() string
}

type CredentialTransport added in v0.7.34

type CredentialTransport struct {
	Transport  http.RoundTripper
	Credential CredentialIface
}

func (*CredentialTransport) RoundTrip added in v0.7.34

func (t *CredentialTransport) RoundTrip(req *http.Request) (*http.Response, error)

type DataFrame added in v0.7.11

type DataFrame struct {
	ContentType         string
	ConsumedBytesLength int32
	LeftBytesLength     int32
}

type DefaultProgressListener added in v0.7.13

type DefaultProgressListener struct {
}

func (*DefaultProgressListener) ProgressChangedCallback added in v0.7.13

func (l *DefaultProgressListener) ProgressChangedCallback(event *ProgressEvent)

type DeleteMediaTemplateResult added in v0.7.35

type DeleteMediaTemplateResult struct {
	RequestId  string `xml:"RequestId,omitempty"`
	TemplateId string `xml:"TemplateId,omitempty"`
}

DeleteMediaTemplateResult TODO

type DeleteMediaWorkflowResult added in v0.7.35

type DeleteMediaWorkflowResult struct {
	RequestId  string `xml:"RequestId,omitempty"`
	WorkflowId string `xml:"WorkflowId,omitempty"`
}

DeleteMediaWorkflowResult TODO

type DeleteStyleOptions added in v0.7.36

type DeleteStyleOptions struct {
	XMLName   xml.Name `xml:"DeleteStyle"`
	StyleName string   `xml:"StyleName,omitempty"`
}

type DelogoParam added in v0.7.35

type DelogoParam struct {
	Switch string `xml:"Switch,omitempty"`
	Dx     string `xml:"Dx,omitempty"`
	Dy     string `xml:"Dy,omitempty"`
	Width  string `xml:"Width,omitempty"`
	Height string `xml:"Height,omitempty"`
}

DelogoParam TODO

type DescribeDocProcessBucketsOptions added in v0.7.13

type DescribeDocProcessBucketsOptions struct {
	Regions     string `url:"regions,omitempty"`
	BucketNames string `url:"bucketNames,omitempty"`
	BucketName  string `url:"bucketName,omitempty"`
	PageNumber  int    `url:"pageNumber,omitempty"`
	PageSize    int    `url:"pageSize,omitempty"`
}

type DescribeDocProcessBucketsResult added in v0.7.13

type DescribeDocProcessBucketsResult struct {
	XMLName       xml.Name           `xml:"Response"`
	RequestId     string             `xml:"RequestId,omitempty"`
	TotalCount    int                `xml:"TotalCount,omitempty"`
	PageNumber    int                `xml:"PageNumber,omitempty"`
	PageSize      int                `xml:"PageSize,omitempty"`
	DocBucketList []DocProcessBucket `xml:"DocBucketList,omitempty"`
}

type DescribeDocProcessJobResult added in v0.7.13

type DescribeDocProcessJobResult struct {
	XMLName        xml.Name             `xml:"Response"`
	JobsDetail     *DocProcessJobDetail `xml:"JobsDetail,omitempty"`
	NonExistJobIds string               `xml:"NonExistJobIds,omitempty"`
}

type DescribeDocProcessJobsOptions added in v0.7.13

type DescribeDocProcessJobsOptions struct {
	QueueId           string `url:"queueId,omitempty"`
	Tag               string `url:"tag,omitempty"`
	OrderByTime       string `url:"orderByTime,omitempty"`
	NextToken         string `url:"nextToken,omitempty"`
	Size              int    `url:"size,omitempty"`
	States            string `url:"states,omitempty"`
	StartCreationTime string `url:"startCreationTime,omitempty"`
	EndCreationTime   string `url:"endCreationTime,omitempty"`
}

type DescribeDocProcessJobsResult added in v0.7.13

type DescribeDocProcessJobsResult struct {
	XMLName    xml.Name              `xml:"Response"`
	JobsDetail []DocProcessJobDetail `xml:"JobsDetail,omitempty"`
	NextToken  string                `xml:"NextToken,omitempty"`
}

type DescribeDocProcessQueuesOptions added in v0.7.13

type DescribeDocProcessQueuesOptions struct {
	QueueIds   string `url:"queueIds,omitempty"`
	State      string `url:"state,omitempty"`
	PageNumber int    `url:"pageNumber,omitempty"`
	PageSize   int    `url:"pageSize,omitempty"`
}

type DescribeDocProcessQueuesResult added in v0.7.13

type DescribeDocProcessQueuesResult struct {
	XMLName      xml.Name          `xml:"Response"`
	RequestId    string            `xml:"RequestId,omitempty"`
	TotalCount   int               `xml:"TotalCount,omitempty"`
	PageNumber   int               `xml:"PageNumber,omitempty"`
	PageSize     int               `xml:"PageSize,omitempty"`
	QueueList    []DocProcessQueue `xml:"QueueList,omitempty"`
	NonExistPIDs []string          `xml:"NonExistPIDs,omitempty"`
}

type DescribeInventoryTriggerJobResult added in v0.7.35

type DescribeInventoryTriggerJobResult struct {
	XMLName       xml.Name                   `xml:"Response"`
	RequestId     string                     `xml:"RequestId,omitempty"`
	JobsDetail    *InventoryTriggerJobDetail `xml:"JobsDetail,omitempty"`
	NonExistJobId string                     `xml:"NonExistJobId,omitempty"`
}

DescribeInventoryTriggerJobResult TODO

type DescribeInventoryTriggerJobsOptions added in v0.7.35

type DescribeInventoryTriggerJobsOptions struct {
	NextToken         string `url:"nextToken,omitempty"`
	Size              string `url:"size,omitempty"`
	OrderByTime       string `url:"orderByTime,omitempty"`
	States            string `url:"states,omitempty"`
	StartCreationTime string `url:"states,omitempty"`
	EndCreationTime   string `url:"endCreationTime,omitempty"`
	WorkflowId        string `url:"workflowId,omitempty"`
	JobId             string `url:"jobId,omitempty"`
	Name              string `url:"name,omitempty"`
}

DescribeInventoryTriggerJobsOptions TODO

type DescribeInventoryTriggerJobsResult added in v0.7.35

type DescribeInventoryTriggerJobsResult struct {
	XMLName    xml.Name                   `xml:"Response"`
	RequestId  string                     `xml:"RequestId,omitempty"`
	JobsDetail *InventoryTriggerJobDetail `xml:"JobsDetail,omitempty"`
	NextToken  string                     `xml:"NextToken,omitempty"`
}

DescribeInventoryTriggerJobsResult TODO

type DescribeMediaJobsOptions added in v0.7.26

type DescribeMediaJobsOptions struct {
	QueueId           string `url:"queueId,omitempty"`
	Tag               string `url:"tag,omitempty"`
	OrderByTime       string `url:"orderByTime,omitempty"`
	NextToken         string `url:"nextToken,omitempty"`
	Size              int    `url:"size,omitempty"`
	States            string `url:"states,omitempty"`
	StartCreationTime string `url:"startCreationTime,omitempty"`
	EndCreationTime   string `url:"endCreationTime,omitempty"`
}

DescribeMediaJobsOptions TODO

type DescribeMediaJobsResult added in v0.7.26

type DescribeMediaJobsResult struct {
	XMLName    xml.Name                `xml:"Response"`
	JobsDetail []MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
	NextToken  string                  `xml:"NextToken,omitempty"`
}

DescribeMediaJobsResult TODO

type DescribeMediaProcessBucketsOptions added in v0.7.21

type DescribeMediaProcessBucketsOptions struct {
	Regions     string `url:"regions,omitempty"`
	BucketNames string `url:"bucketNames,omitempty"`
	BucketName  string `url:"bucketName,omitempty"`
	PageNumber  int    `url:"pageNumber,omitempty"`
	PageSize    int    `url:"pageSize,omitempty"`
}

DescribeMediaProcessBucketsOptions TODO

type DescribeMediaProcessBucketsResult added in v0.7.21

type DescribeMediaProcessBucketsResult struct {
	XMLName         xml.Name             `xml:"Response"`
	RequestId       string               `xml:"RequestId,omitempty"`
	TotalCount      int                  `xml:"TotalCount,omitempty"`
	PageNumber      int                  `xml:"PageNumber,omitempty"`
	PageSize        int                  `xml:"PageSize,omitempty"`
	MediaBucketList []MediaProcessBucket `xml:"MediaBucketList,omitempty"`
}

DescribeMediaProcessBucketsResult TODO

type DescribeMediaProcessJobResult added in v0.7.21

type DescribeMediaProcessJobResult struct {
	XMLName        xml.Name               `xml:"Response"`
	JobsDetail     *MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
	NonExistJobIds string                 `xml:"NonExistJobIds,omitempty"`
}

DescribeMediaProcessJobResult TODO

type DescribeMediaProcessQueuesOptions added in v0.7.21

type DescribeMediaProcessQueuesOptions struct {
	QueueIds   string `url:"queueIds,omitempty"`
	State      string `url:"state,omitempty"`
	PageNumber int    `url:"pageNumber,omitempty"`
	PageSize   int    `url:"pageSize,omitempty"`
}

DescribeMediaProcessQueuesOptions TODO

type DescribeMediaProcessQueuesResult added in v0.7.21

type DescribeMediaProcessQueuesResult struct {
	XMLName      xml.Name            `xml:"Response"`
	RequestId    string              `xml:"RequestId,omitempty"`
	TotalCount   int                 `xml:"TotalCount,omitempty"`
	PageNumber   int                 `xml:"PageNumber,omitempty"`
	PageSize     int                 `xml:"PageSize,omitempty"`
	QueueList    []MediaProcessQueue `xml:"QueueList,omitempty"`
	NonExistPIDs []string            `xml:"NonExistPIDs,omitempty"`
}

DescribeMediaProcessQueuesResult TODO

type DescribeMediaTemplateOptions added in v0.7.35

type DescribeMediaTemplateOptions struct {
	Tag        string `url:"tag,omitempty"`
	Category   string `url:"category,omitempty"`
	Ids        string `url:"ids,omitempty"`
	Name       string `url:"name,omitempty"`
	PageNumber int    `url:"pageNumber,omitempty"`
	PageSize   int    `url:"pageSize,omitempty"`
}

DescribeMediaTemplateOptions TODO

type DescribeMediaTemplateResult added in v0.7.35

type DescribeMediaTemplateResult struct {
	XMLName      xml.Name   `xml:"Response"`
	TemplateList []Template `xml:"TemplateList,omitempty"`
	RequestId    string     `xml:"RequestId,omitempty"`
	TotalCount   int        `xml:"TotalCount,omitempty"`
	PageNumber   int        `xml:"PageNumber,omitempty"`
	PageSize     int        `xml:"PageSize,omitempty"`
}

DescribeMediaTemplateResult TODO

type DescribeMediaWorkflowOptions added in v0.7.35

type DescribeMediaWorkflowOptions struct {
	Ids        string `url:"ids,omitempty"`
	Name       string `url:"name,omitempty"`
	PageNumber int    `url:"pageNumber,omitempty"`
	PageSize   int    `url:"pageSize,omitempty"`
}

DescribeMediaWorkflowOptions TODO

type DescribeMediaWorkflowResult added in v0.7.35

type DescribeMediaWorkflowResult struct {
	XMLName           xml.Name        `xml:"Response"`
	MediaWorkflowList []MediaWorkflow `xml:"MediaWorkflowList,omitempty"`
	RequestId         string          `xml:"RequestId,omitempty"`
	TotalCount        int             `xml:"TotalCount,omitempty"`
	PageNumber        int             `xml:"PageNumber,omitempty"`
	PageSize          int             `xml:"PageSize,omitempty"`
	NonExistIDs       []string        `xml:"NonExistIDs,omitempty"`
}

DescribeMediaWorkflowResult TODO

type DescribeMutilASRJobResult added in v0.7.34

type DescribeMutilASRJobResult struct {
	XMLName        xml.Name       `xml:"Response"`
	JobsDetail     []ASRJobDetail `xml:"JobsDetail,omitempty"`
	NonExistJobIds []string       `xml:"NonExistJobIds,omitempty"`
}

DescribeMutilASRJobResult TODO

type DescribeMutilMediaProcessJobResult added in v0.7.34

type DescribeMutilMediaProcessJobResult struct {
	XMLName        xml.Name                `xml:"Response"`
	JobsDetail     []MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
	NonExistJobIds []string                `xml:"NonExistJobIds,omitempty"`
}

DescribeMutilMediaProcessJobResult TODO

type DescribePicProcessJobResult added in v0.7.35

type DescribePicProcessJobResult DescribeMediaProcessJobResult

DescribePicProcessJobResult TODO

type DescribePicProcessQueuesOptions added in v0.7.35

type DescribePicProcessQueuesOptions DescribeMediaProcessQueuesOptions

DescribePicProcessQueuesOptions TODO

type DescribePicProcessQueuesResult added in v0.7.35

type DescribePicProcessQueuesResult DescribeMediaProcessQueuesResult

DescribePicProcessQueuesResult TODO

type DescribeWorkflowExecutionResult added in v0.7.34

type DescribeWorkflowExecutionResult struct {
	XMLName           xml.Name            `xml:"Response"`
	WorkflowExecution []WorkflowExecution `xml:"WorkflowExecution,omitempty" json:"WorkflowExecution,omitempty"`
	NextToken         string              `xml:"NextToken,omitempty" json:"NextToken,omitempty"`
}

DescribeWorkflowExecutionResult TODO

type DescribeWorkflowExecutionsOptions added in v0.7.34

type DescribeWorkflowExecutionsOptions struct {
	WorkflowId        string `url:"workflowId,omitempty"`
	Name              string `url:"Name,omitempty"`
	OrderByTime       string `url:"orderByTime,omitempty"`
	NextToken         string `url:"nextToken,omitempty"`
	Size              int    `url:"size,omitempty"`
	States            string `url:"states,omitempty"`
	StartCreationTime string `url:"startCreationTime,omitempty"`
	EndCreationTime   string `url:"endCreationTime,omitempty"`
}

DescribeWorkflowExecutionsOptions TODO

type DescribeWorkflowExecutionsResult added in v0.7.34

type DescribeWorkflowExecutionsResult struct {
	XMLName               xml.Name                `xml:"Response"`
	WorkflowExecutionList []WorkflowExecutionList `xml:"WorkflowExecutionList,omitempty"`
	NextToken             string                  `xml:"NextToken,omitempty"`
}

DescribeWorkflowExecutionsResult TODO

type DetectCarResult added in v0.7.36

type DetectCarResult struct {
	XMLName   xml.Name  `xml:"Response"`
	RequestId string    `xml:"RequestId,omitempty"`
	CarTags   []CarTags `xml:"CarTags,omitempty"`
}

type DetectFaceOptions added in v0.7.36

type DetectFaceOptions struct {
	MaxFaceNum int `url:"max-face-num,omitempty"`
}

type DetectFaceResult added in v0.7.36

type DetectFaceResult struct {
	XMLName          xml.Name    `xml:"Response"`
	ImageWidth       int         `xml:"ImageWidth,omitempty"`
	ImageHeight      int         `xml:"ImageHeight,omitempty"`
	FaceModelVersion string      `xml:"FaceModelVersion,omitempty"`
	RequestId        string      `xml:"RequestId,omitempty"`
	FaceInfos        []FaceInfos `xml:"FaceInfos,omitempty"`
}

type DigitalWatermark added in v0.7.35

type DigitalWatermark struct {
	Message string `xml:"Message"`
	Type    string `xml:"Type"`
	Version string `xml:"Version"`
}

DigitalWatermark TODO

type DiscardReadCloser added in v0.7.26

type DiscardReadCloser struct {
	RC      io.ReadCloser
	Discard int
}

func (*DiscardReadCloser) Close added in v0.7.26

func (drc *DiscardReadCloser) Close() error

func (*DiscardReadCloser) Read added in v0.7.26

func (drc *DiscardReadCloser) Read(data []byte) (int, error)

type DocPreviewHTMLOptions added in v0.7.37

type DocPreviewHTMLOptions struct {
	DstType        string      `url:"dstType,omitempty"`
	SrcType        string      `url:"srcType,omitempty"`
	Sign           string      `url:"sign,omitempty"`
	Copyable       string      `url:"copyable,omitempty"`
	HtmlParams     *HtmlParams `url:"htmlParams,omitempty"`
	Htmlwaterword  string      `url:"htmlwaterword,omitempty"`
	Htmlfillstyle  string      `url:"htmlfillstyle,omitempty"`
	Htmlfront      string      `url:"htmlfront,omitempty"`
	Htmlrotate     string      `url:"htmlrotate,omitempty"`
	Htmlhorizontal string      `url:"htmlhorizontal,omitempty"`
	Htmlvertical   string      `url:"htmlvertical,omitempty"`
}

type DocPreviewOptions added in v0.7.13

type DocPreviewOptions struct {
	SrcType             string `url:"srcType,omitempty"`
	Page                int    `url:"page,omitempty"`
	ImageParams         string `url:"ImageParams,omitempty"`
	Sheet               int    `url:"sheet,omitempty"`
	DstType             string `url:"dstType,omitempty"`
	Password            string `url:"password,omitempty"`
	Comment             int    `url:"comment,omitempty"`
	ExcelPaperDirection int    `url:"excelPaperDirection,omitempty"`
	Quality             int    `url:"quality,omitempty"`
	Zoom                int    `url:"zoom,omitempty"`
}

type DocProcessBucket added in v0.7.13

type DocProcessBucket struct {
	BucketId      string `xml:"BucketId,omitempty"`
	Name          string `xml:"Name,omitempty"`
	Region        string `xml:"Region,omitempty"`
	CreateTime    string `xml:"CreateTime,omitempty"`
	AliasBucketId string `xml:"AliasBucketId,omitempty"`
}

type DocProcessJobDetail added in v0.7.13

type DocProcessJobDetail struct {
	Code         string                  `xml:"Code,omitempty"`
	Message      string                  `xml:"Message,omitempty"`
	JobId        string                  `xml:"JobId,omitempty"`
	Tag          string                  `xml:"Tag,omitempty"`
	State        string                  `xml:"State,omitempty"`
	CreationTime string                  `xml:"CreationTime,omitempty"`
	QueueId      string                  `xml:"QueueId,omitempty"`
	Input        *DocProcessJobInput     `xml:"Input,omitempty"`
	Operation    *DocProcessJobOperation `xml:"Operation,omitempty"`
}

type DocProcessJobDocProcess added in v0.7.13

type DocProcessJobDocProcess struct {
	SrcType        string `xml:"SrcType,omitempty"`
	TgtType        string `xml:"TgtType,omitempty"`
	SheetId        int    `xml:"SheetId,omitempty"`
	StartPage      int    `xml:"StartPage,omitempty"`
	EndPage        int    `xml:"EndPage,omitempty"`
	ImageParams    string `xml:"ImageParams,omitempty"`
	DocPassword    string `xml:"DocPassword,omitempty"`
	Comments       int    `xml:"Comments,omitempty"`
	PaperDirection int    `xml:"PaperDirection,omitempty"`
	Quality        int    `xml:"Quality,omitempty"`
	Zoom           int    `xml:"Zoom,omitempty"`
}

type DocProcessJobDocProcessResult added in v0.7.13

type DocProcessJobDocProcessResult struct {
	FailPageCount   int    `xml:",omitempty"`
	SuccPageCount   int    `xml:"SuccPageCount,omitempty"`
	TaskId          string `xml:"TaskId,omitempty"`
	TgtType         string `xml:"TgtType,omitempty"`
	TotalPageCount  int    `xml:"TotalPageCount,omitempty"`
	TotalSheetCount int    `xml:"TotalSheetCount,omitempty"`
	PageInfo        []struct {
		PageNo     int    `xml:"PageNo,omitempty"`
		TgtUri     string `xml:"TgtUri,omitempty"`
		XSheetPics int    `xml:"X-SheetPics,omitempty"`
		PicIndex   int    `xml:"PicIndex,omitempty"`
		PicNum     int    `xml:"PicNum,omitempty"`
	} `xml:"PageInfo,omitempty"`
}

type DocProcessJobInput added in v0.7.13

type DocProcessJobInput struct {
	Object string `xml:"Object,omitempty"`
}

type DocProcessJobOperation added in v0.7.13

type DocProcessJobOperation struct {
	Output           *DocProcessJobOutput           `xml:"Output,omitempty"`
	DocProcess       *DocProcessJobDocProcess       `xml:"DocProcess,omitempty"`
	DocProcessResult *DocProcessJobDocProcessResult `xml:"DocProcessResult,omitempty"`
}

type DocProcessJobOutput added in v0.7.13

type DocProcessJobOutput struct {
	Region string `xml:"Region,omitempty"`
	Bucket string `xml:"Bucket,omitempty"`
	Object string `xml:"Object,omitempty"`
}

type DocProcessQueue added in v0.7.13

type DocProcessQueue struct {
	QueueId       string                       `xml:"QueueId,omitempty"`
	Name          string                       `xml:"Name,omitempty"`
	State         string                       `xml:"State,omitempty"`
	MaxSize       int                          `xml:"MaxSize,omitempty"`
	MaxConcurrent int                          `xml:"MaxConcurrent,omitempty"`
	UpdateTime    string                       `xml:"UpdateTime,omitempty"`
	CreateTime    string                       `xml:"CreateTime,omitempty"`
	NotifyConfig  *DocProcessQueueNotifyConfig `xml:"NotifyConfig,omitempty"`
}

type DocProcessQueueNotifyConfig added in v0.7.13

type DocProcessQueueNotifyConfig struct {
	Url   string `xml:"Url,omitempty"`
	State string `xml:"State,omitempty"`
	Type  string `xml:"Type,omitempty"`
	Event string `xml:"Event,omitempty"`
}

type DocumentAuditingJobConf added in v0.7.31

type DocumentAuditingJobConf struct {
	DetectType string `xml:",omitempty"`
	Callback   string `xml:",omitempty"`
	BizType    string `xml:",omitempty"`
}

DocumentAuditingJobConf is the config of PutDocumentAuditingJobOptions

type DocumentAuditingJobDetail added in v0.7.31

type DocumentAuditingJobDetail struct {
	Code         string                   `xml:",omitempty"`
	Message      string                   `xml:",omitempty"`
	JobId        string                   `xml:",omitempty"`
	State        string                   `xml:",omitempty"`
	CreationTime string                   `xml:",omitempty"`
	Object       string                   `xml:",omitempty"`
	Url          string                   `xml:",omitempty"`
	DataId       string                   `xml:",omitempty"`
	PageCount    int                      `xml:",omitempty"`
	Label        string                   `xml:",omitempty"`
	Suggestion   int                      `xml:",omitempty"`
	Labels       *DocumentResultInfo      `xml:",omitempty"`
	PageSegment  *DocumentPageSegmentInfo `xml:",omitempty"`
	UserInfo     *UserExtraInfo           `xml:",omitempty"`
}

DocumentAuditingJobDetail is the detail of GetDocumentAuditingJobResult

type DocumentPageSegmentInfo added in v0.7.31

type DocumentPageSegmentInfo struct {
	Results []DocumentPageSegmentResultResult `xml:",omitempty"`
}

DocumentPageSegmentInfo

type DocumentPageSegmentResultResult added in v0.7.31

type DocumentPageSegmentResultResult struct {
	Url           string           `xml:",omitempty"`
	Text          string           `xml:",omitempty"`
	PageNumber    int              `xml:",omitempty"`
	SheetNumber   int              `xml:",omitempty"`
	Label         string           `xml:",omitempty"`
	Suggestion    int              `xml:",omitempty"`
	PornInfo      *RecognitionInfo `xml:",omitempty"`
	TerrorismInfo *RecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *RecognitionInfo `xml:",omitempty"`
	AdsInfo       *RecognitionInfo `xml:",omitempty"`
}

DocumentPageSegmentResultResult

type DocumentResultInfo added in v0.7.31

type DocumentResultInfo struct {
	PornInfo      *RecognitionInfo `xml:",omitempty"`
	TerrorismInfo *RecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *RecognitionInfo `xml:",omitempty"`
	AdsInfo       *RecognitionInfo `xml:",omitempty"`
}

DocumentResultInfo

type DownloadedBlock added in v0.7.25

type DownloadedBlock struct {
	From int64 `json:"from,omitempty"`
	To   int64 `json:"to,omitempty"`
}

type EffectConfig added in v0.7.35

type EffectConfig struct {
	EnableStartFadein string `xml:"EnableStartFadein,omitempty"`
	StartFadeinTime   string `xml:"StartFadeinTime,omitempty"`
	EnableEndFadeout  string `xml:"EnableEndFadeout,omitempty"`
	EndFadeoutTime    string `xml:"EndFadeoutTime,omitempty"`
	EnableBgmFade     string `xml:"EnableBgmFade,omitempty"`
	BgmFadeTime       string `xml:"BgmFadeTime,omitempty"`
}

EffectConfig TODO

type ErrorDocument

type ErrorDocument struct {
	Key string `xml:"Key,omitempty"`
}

type ErrorFrame added in v0.7.11

type ErrorFrame struct {
	Code    string
	Message string
}

func (*ErrorFrame) Error added in v0.7.11

func (e *ErrorFrame) Error() string

type ErrorResponse

type ErrorResponse struct {
	XMLName   xml.Name       `xml:"Error"`
	Response  *http.Response `xml:"-"`
	Code      string
	Message   string
	Resource  string
	RequestID string `header:"x-cos-request-id,omitempty" url:"-" xml:"RequestId,omitempty"`
	TraceID   string `xml:"TraceId,omitempty"`
}

ErrorResponse 包含 API 返回的错误信息

https://www.qcloud.com/document/product/436/7730

func IsCOSError

func IsCOSError(e error) (*ErrorResponse, bool)

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

Error returns the error msg

type ExtFilter added in v0.7.34

type ExtFilter struct {
	State      string `xml:"State,omitempty"`
	Audio      string `xml:"Audio,omitempty"`
	Custom     string `xml:"Custom,omitempty"`
	CustomExts string `xml:"CustomExts,omitempty"`
	AllFile    string `xml:"AllFile,omitempty"`
}

ExtFilter TODO

type ExtractDigitalWatermark added in v0.7.35

type ExtractDigitalWatermark struct {
	Type    string `xml:"Type"`
	Version string `xml:"Version"`
}

ExtractDigitalWatermark TODO

type FaceEffectOptions added in v0.7.36

type FaceEffectOptions struct {
	Type         string `url:"type,omitempty"`
	Whitening    int    `url:"whitening,omitempty"`
	Smoothing    int    `url:"smoothing,omitempty"`
	FaceLifting  int    `url:"faceLifting,omitempty"`
	EyeEnlarging int    `url:"eyeEnlarging,omitempty"`
	Gender       int    `url:"gender,omitempty"`
	Age          int    `url:"age,omitempty"`
}

type FaceEffectResult added in v0.7.36

type FaceEffectResult struct {
	XMLName     xml.Name `xml:"Response"`
	ResultImage string   `xml:"ResultImage,omitempty"`
	ResultMask  string   `xml:"ResultMask,omitempty"`
}

type FaceInfos added in v0.7.36

type FaceInfos struct {
	X      int `xml:"X,omitempty"`
	Y      int `xml:"Y,omitempty"`
	Width  int `xml:"Width,omitempty"`
	Height int `xml:"Height,omitempty"`
}

type FixedLengthReader added in v0.7.13

type FixedLengthReader interface {
	io.Reader
	Size() int64
}

type GenerateMediaInfoOptions added in v0.7.34

type GenerateMediaInfoOptions struct {
	XMLName xml.Name  `xml:"Request"`
	Input   *JobInput `xml:"Input,omitempty"`
}

GenerateMediaInfoOptions TODO

type GenerateQRcodeOptions added in v0.7.25

type GenerateQRcodeOptions struct {
	QRcodeContent string `url:"qrcode-content,omitempty"`
	Mode          int    `url:"mode,omitempty"`
	Width         int    `url:"width,omitempty"`
}

type GenerateQRcodeResult added in v0.7.25

type GenerateQRcodeResult struct {
	XMLName     xml.Name `xml:"Response"`
	ResultImage string   `xml:"ResultImage,omitempty"`
}

type GetActionSequenceResult added in v0.7.36

type GetActionSequenceResult struct {
	XMLName        xml.Name `xml:"Response"`
	ActionSequence string   `xml:"ActionSequence,omitempty"`
}

type GetAudioAuditingJobResult added in v0.7.25

type GetAudioAuditingJobResult struct {
	XMLName    xml.Name                `xml:"Response"`
	JobsDetail *AudioAuditingJobDetail `xml:",omitempty"`
	RequestId  string                  `xml:",omitempty"`
}

GetAudioAuditingJobResult is the result of GetAudioAuditingJob

type GetBucketReplicationResult

type GetBucketReplicationResult PutBucketReplicationOptions

GetBucketReplicationResult is the result of GetBucketReplication

type GetDocumentAuditingJobResult added in v0.7.31

type GetDocumentAuditingJobResult struct {
	XMLName    xml.Name                   `xml:"Response"`
	JobsDetail *DocumentAuditingJobDetail `xml:",omitempty"`
	RequestId  string                     `xml:",omitempty"`
}

GetDocumentAuditingJobResult is the result of GetDocumentAuditingJob

type GetFetchTaskResult added in v0.7.32

type GetFetchTaskResult struct {
	Code      int    `json:"code,omitempty"`
	Message   string `json:"message,omitempty"`
	RequestId string `json:"request_id,omitempty"`
	Data      struct {
		Code    string `json:"code,omitempty"`
		Message string `json:"msg,omitempty"`
		Percent int    `json:"percent,omitempty"`
		Status  string `json:"status,omitempty"`
	} `json:"data,omitempty"`
}

type GetGuetzliResult added in v0.7.25

type GetGuetzliResult struct {
	XMLName       xml.Name `xml:"GuetzliStatus"`
	GuetzliStatus string   `xml:",chardata"`
}

type GetImageAuditingJobResult added in v0.7.34

type GetImageAuditingJobResult struct {
	XMLName    xml.Name             `xml:"Response"`
	JobsDetail *ImageAuditingResult `xml:",omitempty"`
	RequestId  string               `xml:",omitempty"`
}

GetImageAuditingJobResult is the result of GetImageAuditingJob

type GetLiveCodeResult added in v0.7.36

type GetLiveCodeResult struct {
	XMLName  xml.Name `xml:"Response"`
	LiveCode string   `xml:"LiveCode,omitempty"`
}

type GetMediaInfoResult added in v0.7.32

type GetMediaInfoResult struct {
	XMLName   xml.Name   `xml:"Response"`
	MediaInfo *MediaInfo `xml:"MediaInfo"`
}

GetMediaInfoResult TODO

type GetPrivateM3U8Options added in v0.7.34

type GetPrivateM3U8Options struct {
	Expires int `url:"expires"`
}

GetPrivateM3U8Options TODO

type GetQRcodeResult added in v0.7.25

type GetQRcodeResult struct {
	XMLName     xml.Name    `xml:"Response"`
	CodeStatus  int         `xml:"CodeStatus,omitempty"`
	QRcodeInfo  *QRcodeInfo `xml:"QRcodeInfo,omitempty"`
	ResultImage string      `xml:"ResultImage,omitempty"`
}

type GetSnapshotOptions added in v0.7.32

type GetSnapshotOptions struct {
	Time   float32 `url:"time,omitempty"`
	Height int     `url:"height,omitempty"`
	Width  int     `url:"width,omitempty"`
	Format string  `url:"format,omitempty"`
	Rotate string  `url:"rotate,omitempty"`
	Mode   string  `url:"mode,omitempty"`
}

GetSnapshotOptions TODO

type GetStyleOptions added in v0.7.36

type GetStyleOptions struct {
	XMLName   xml.Name `xml:"GetStyle"`
	StyleName string   `xml:"StyleName,omitempty"`
}

type GetStyleResult added in v0.7.36

type GetStyleResult struct {
	XMLName   xml.Name    `xml:"StyleList"`
	StyleRule []StyleRule `xml:"StyleRule,omitempty"`
}

type GetTextAuditingJobResult added in v0.7.31

type GetTextAuditingJobResult struct {
	XMLName    xml.Name               `xml:"Response"`
	JobsDetail *TextAuditingJobDetail `xml:",omitempty"`
	RequestId  string                 `xml:",omitempty"`
}

GetTextAuditingJobResult is the result of GetTextAuditingJob

type GetVideoAuditingJobResult added in v0.7.11

type GetVideoAuditingJobResult struct {
	XMLName    xml.Name           `xml:"Response"`
	JobsDetail *AuditingJobDetail `xml:",omitempty"`
	RequestId  string             `xml:",omitempty"`
}

GetVideoAuditingJobResult is the result of GetVideoAuditingJob

type GetVideoAuditingJobSnapshot added in v0.7.11

type GetVideoAuditingJobSnapshot struct {
	Url           string           `xml:",omitempty"`
	Text          string           `xml:",omitempty"`
	SnapshotTime  int              `xml:",omitempty"`
	Label         string           `xml:",omitempty"`
	Result        int              `xml:",omitempty"`
	PornInfo      *RecognitionInfo `xml:",omitempty"`
	TerrorismInfo *RecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *RecognitionInfo `xml:",omitempty"`
	AdsInfo       *RecognitionInfo `xml:",omitempty"`
	TeenagerInfo  *RecognitionInfo `xml:",omitempty"`
}

GetVideoAuditingJobSnapshot is the snapshot result of AuditingJobDetail

type GetVirusDetectJobResult added in v0.7.34

type GetVirusDetectJobResult struct {
	XMLName    xml.Name              `xml:"Response"`
	JobsDetail *VirusDetectJobDetail `xml:",omitempty"`
	RequestId  string                `xml:",omitempty"`
}

GetVirusDetectJobResult is the result of GetVirusDetectJob

type GetWebpageAuditingJobResult added in v0.7.33

type GetWebpageAuditingJobResult struct {
	XMLName    xml.Name                  `xml:"Response"`
	JobsDetail *WebpageAuditingJobDetail `xml:",omitempty"`
}

GetWebpageAuditingJobResult is the result of GetWebpageAuditingJob

type HlsEncrypt added in v0.7.35

type HlsEncrypt struct {
	IsHlsEncrypt bool   `xml:"IsHlsEncrypt,omitempty"`
	UriKey       string `xml:"UriKey,omitempty"`
}

HlsEncrypt TODO

type HotLinkOptions added in v0.7.36

type HotLinkOptions struct {
	XMLName xml.Name `xml:"Hotlink"`
	Url     []string `xml:"Url,omitempty"`
	Type    string   `xml:"Type,omitempty"`
}

type HotLinkResult added in v0.7.36

type HotLinkResult struct {
	XMLName xml.Name `xml:"Hotlink"`
	Status  string   `xml:"Status,omitempty"`
	Type    string   `xml:"Type,omitempty"`
	Url     []string `xml:"Url,omitempty"`
}

type HtmlCommonParams added in v0.7.37

type HtmlCommonParams struct {
	IsShowTopArea           bool `json:"isShowTopArea"`
	IsShowHeader            bool `json:"isShowHeader"`
	IsBrowserViewFullscreen bool `json:"isBrowserViewFullscreen"`
	IsIframeViewFullscreen  bool `json:"isIframeViewFullscreen"`
}

type HtmlParams added in v0.7.37

type HtmlParams struct {
	CommonOptions *HtmlCommonParams `json:"commonOptions,omitempty"`
	WordOptions   *HtmlWordParams   `json:"wordOptions,omitempty"`
	PdfOptions    *HtmlPdfParams    `json:"pdfOptions,omitempty"`
	PptOptions    *HtmlPptParams    `json:"pptOptions,omitempty"`
}

func (*HtmlParams) EncodeValues added in v0.7.37

func (c *HtmlParams) EncodeValues(key string, v *url.Values) error

type HtmlPdfParams added in v0.7.37

type HtmlPdfParams struct {
	IsShowComment         bool `json:"isShowComment"`
	IsInSafeMode          bool `json:"isInSafeMode"`
	IsShowBottomStatusBar bool `json:"isShowBottomStatusBar"`
}

type HtmlPptParams added in v0.7.37

type HtmlPptParams struct {
	IsShowBottomStatusBar bool `json:"isShowBottomStatusBar"`
}

type HtmlWordParams added in v0.7.37

type HtmlWordParams struct {
	IsShowDocMap          bool `json:"isShowDocMap"`
	IsBestScale           bool `json:"isBestScale"`
	IsShowBottomStatusBar bool `json:"isShowBottomStatusBar"`
}

type IdCardAdvancedInfo added in v0.7.36

type IdCardAdvancedInfo struct {
	IdCard          string   `xml:"IdCard,omitempty"`
	Portrait        string   `xml:"Portrait,omitempty"`
	Quality         string   `xml:"Quality,omitempty"`
	BorderCodeValue string   `xml:"BorderCodeValue,omitempty"`
	WarnInfos       []string `xml:"WarnInfos,omitempty"`
}

type IdCardInfo added in v0.7.36

type IdCardInfo struct {
	Name      string `xml:"Name,omitempty"`
	Sex       string `xml:"Sex,omitempty"`
	Nation    string `xml:"Nation,omitempty"`
	Birth     string `xml:"Birth,omitempty"`
	Address   string `xml:"Address,omitempty"`
	IdNum     string `xml:"IdNum,omitempty"`
	Authority string `xml:"Authority,omitempty"`
	ValidDate string `xml:"ValidDate,omitempty"`
}

type IdCardOCROptions added in v0.7.36

type IdCardOCROptions struct {
	CardSide string                  `url:"CardSide,omitempty"`
	Config   *IdCardOCROptionsConfig `url:"Config,omitempty"`
}

type IdCardOCROptionsConfig added in v0.7.36

type IdCardOCROptionsConfig struct {
	CropIdCard      bool `json:"CropIdCard,omitempty"`
	CropPortrait    bool `json:"CropPortrait,omitempty"`
	CopyWarn        bool `json:"CopyWarn,omitempty"`
	BorderCheckWarn bool `json:"BorderCheckWarn,omitempty"`
	ReshootWarn     bool `json:"ReshootWarn,omitempty"`
	DetectPsWarn    bool `json:"DetectPsWarn,omitempty"`
	TempIdWarn      bool `json:"TempIdWarn,omitempty"`
	InvalidDateWarn bool `json:"InvalidDateWarn,omitempty"`
	Quality         bool `json:"Quality,omitempty"`
	MultiCardDetect bool `json:"MultiCardDetect,omitempty"`
}

func (*IdCardOCROptionsConfig) EncodeValues added in v0.7.36

func (c *IdCardOCROptionsConfig) EncodeValues(key string, v *url.Values) error

type IdCardOCRResult added in v0.7.36

type IdCardOCRResult struct {
	XMLName      xml.Name            `xml:"Response"`
	IdInfo       *IdCardInfo         `xml:"IdInfo,omitempty"`
	AdvancedInfo *IdCardAdvancedInfo `xml:"AdvancedInfo,omitempty"`
}

type Image added in v0.7.21

type Image struct {
	Url          string `xml:"Url,omitempty"`
	Mode         string `xml:"Mode,omitempty"`
	Width        string `xml:"Width,omitempty"`
	Height       string `xml:"Height,omitempty"`
	Transparency string `xml:"Transparency,omitempty"`
	Background   string `xml:"Background,omitempty"`
}

Image TODO

type ImageAuditingInputOptions added in v0.7.33

type ImageAuditingInputOptions struct {
	DataId           string         `xml:",omitempty"`
	Object           string         `xml:",omitempty"`
	Url              string         `xml:",omitempty"`
	Interval         int            `xml:",omitempty"`
	MaxFrames        int            `xml:",omitempty"`
	LargeImageDetect int            `xml:",omitempty"`
	UserInfo         *UserExtraInfo `xml:",omitempty"`
}

ImageAuditingInputOptions is the option of BatchImageAuditingOptions

type ImageAuditingJobConf added in v0.7.33

type ImageAuditingJobConf struct {
	DetectType string `xml:",omitempty"`
	BizType    string `xml:",omitempty"`
	Async      int    `xml:",omitempty"`
	Callback   string `xml:",omitempty"`
}

ImageAuditingJobConf is the config of BatchImageAuditingOptions

type ImageAuditingResult added in v0.7.33

type ImageAuditingResult struct {
	Code              string           `xml:",omitempty"`
	Message           string           `xml:",omitempty"`
	JobId             string           `xml:",omitempty"`
	DataId            string           `xml:",omitempty"`
	Object            string           `xml:",omitempty"`
	Url               string           `xml:",omitempty"`
	Text              string           `xml:",omitempty"`
	Label             string           `xml:",omitempty"`
	Result            int              `xml:",omitempty"`
	Score             int              `xml:",omitempty"`
	Category          string           `xml:",omitempty"`
	SubLabel          string           `xml:",omitempty"`
	PornInfo          *RecognitionInfo `xml:",omitempty"`
	TerrorismInfo     *RecognitionInfo `xml:",omitempty"`
	PoliticsInfo      *RecognitionInfo `xml:",omitempty"`
	AdsInfo           *RecognitionInfo `xml:",omitempty"`
	TeenagerInfo      *RecognitionInfo `xml:",omitempty"`
	CompressionResult int              `xml:",omitempty"`
	UserInfo          *UserExtraInfo   `xml:",omitempty"`
}

ImageAuditingResult is the result of BatchImageAuditingJobResult

type ImageProcessOptions added in v0.7.11

type ImageProcessOptions = PicOperations

type ImageProcessResult added in v0.7.11

type ImageProcessResult struct {
	XMLName        xml.Name           `xml:"UploadResult"`
	OriginalInfo   *PicOriginalInfo   `xml:"OriginalInfo,omitempty"`
	ProcessResults []PicProcessObject `xml:"ProcessResults>Object,omitempty"`
}

type ImageQualityResult added in v0.7.36

type ImageQualityResult struct {
	XMLName        xml.Name `xml:"Response"`
	LongImage      bool     `xml:"LongImage,omitempty"`
	BlackAndWhite  bool     `xml:"BlackAndWhite,omitempty"`
	SmallImage     bool     `xml:"SmallImage,omitempty"`
	BigImage       bool     `xml:"BigImage,omitempty"`
	PureImage      bool     `xml:"PureImage,omitempty"`
	ClarityScore   int      `xml:"ClarityScore,omitempty"`
	AestheticScore int      `xml:"AestheticScore,omitempty"`
	RequestId      string   `xml:"RequestId,omitempty"`
}

type ImageRecognitionOptions added in v0.7.11

type ImageRecognitionOptions struct {
	CIProcess        string `url:"ci-process,omitempty"`
	DetectType       string `url:"detect-type,omitempty"`
	DetectUrl        string `url:"detect-url,omitempty"`
	Interval         int    `url:"interval,omitempty"`
	MaxFrames        int    `url:"max-frames,omitempty"`
	BizType          string `url:"biz-type,omitempty"`
	LargeImageDetect int    `url:"large-image-detect,omitempty"`
	DataId           string `url:"dataid,omitempty"`
	Async            int    `url:"async,omitempty"`
	Callback         string `url:"callback,omitempty"`
}

ImageRecognitionOptions is the option of ImageAuditing

type ImageRecognitionResult added in v0.7.11

type ImageRecognitionResult struct {
	XMLName           xml.Name         `xml:"RecognitionResult"`
	JobId             string           `xml:"JobId,omitempty"`
	Text              string           `xml:"Text,omitempty"`
	Label             string           `xml:"Label,omitempty"`
	Result            int              `xml:"Result,omitempty"`
	Score             int              `xml:"Score,omitempty"`
	Category          string           `xml:"Category,omitempty"`
	SubLabel          string           `xml:"SubLabel,omitempty"`
	PornInfo          *RecognitionInfo `xml:"PornInfo,omitempty"`
	TerroristInfo     *RecognitionInfo `xml:"TerroristInfo,omitempty"`
	PoliticsInfo      *RecognitionInfo `xml:"PoliticsInfo,omitempty"`
	AdsInfo           *RecognitionInfo `xml:"AdsInfo,omitempty"`
	TeenagerInfo      *RecognitionInfo `xml:"TeenagerInfo,omitempty"`
	TerrorismInfo     *RecognitionInfo `xml:"TerrorismInfo,omitempty"`
	CompressionResult int              `xml:"CompressionResult,omitempty"`
	DataId            string           `xml:"DataId,omitempty"`
}

ImageRecognitionResult is the result of ImageRecognition/ImageAuditing

type InitiateMultipartUploadOptions

type InitiateMultipartUploadOptions struct {
	*ACLHeaderOptions
	*ObjectPutHeaderOptions
}

InitiateMultipartUploadOptions is the option of InitateMultipartUpload

func CloneInitiateMultipartUploadOptions added in v0.7.26

func CloneInitiateMultipartUploadOptions(opt *InitiateMultipartUploadOptions) *InitiateMultipartUploadOptions

func CopyOptionsToMulti added in v0.7.17

func CopyOptionsToMulti(opt *ObjectCopyOptions) *InitiateMultipartUploadOptions

type InitiateMultipartUploadResult

type InitiateMultipartUploadResult struct {
	XMLName  xml.Name `xml:"InitiateMultipartUploadResult"`
	Bucket   string
	Key      string
	UploadID string `xml:"UploadId"`
}

InitiateMultipartUploadResult is the result of InitateMultipartUpload

type Initiator

type Initiator Owner

Initiator same to the Owner struct

type InventoryTriggerJob added in v0.7.35

type InventoryTriggerJob struct {
	Name      string                        `xml:"Name,omitempty"`
	Input     *InventoryTriggerJobInput     `xml:"Input,omitempty"`
	Operation *InventoryTriggerJobOperation `xml:"Operation,omitempty"`
}

InventoryTriggerJob TODO

type InventoryTriggerJobDetail added in v0.7.35

type InventoryTriggerJobDetail struct {
	Code         string                        `xml:"Code,omitempty"`
	Message      string                        `xml:"Message,omitempty"`
	JobId        string                        `xml:"JobId,omitempty"`
	Tag          string                        `xml:"Tag,omitempty"`
	Progress     string                        `xml:"Progress,omitempty"`
	State        string                        `xml:"State,omitempty"`
	CreationTime string                        `xml:"CreationTime,omitempty"`
	StartTime    string                        `xml:"StartTime,omitempty"`
	EndTime      string                        `xml:"EndTime,omitempty"`
	QueueId      string                        `xml:"QueueId,omitempty"`
	Input        *InventoryTriggerJobInput     `xml:"Input,omitempty"`
	Operation    *InventoryTriggerJobOperation `xml:"Operation,omitempty"`
}

InventoryTriggerJobDetail TODO

type InventoryTriggerJobInput added in v0.7.35

type InventoryTriggerJobInput struct {
	Manifest string `xml:"Manifest,omitempty"`
	UrlFile  string `xml:"UrlFile,omitempty"`
	Prefix   string `xml:"Prefix,omitempty"`
	Object   string `xml:"Object,omitempty"`
}

InventoryTriggerJobInput TODO

type InventoryTriggerJobOperation added in v0.7.35

type InventoryTriggerJobOperation struct {
	WorkflowIds  string                                   `xml:"WorkflowIds,omitempty"`
	TimeInterval InventoryTriggerJobOperationTimeInterval `xml:"TimeInterval,omitempty"`
}

InventoryTriggerJobOperation TODO

type InventoryTriggerJobOperationTimeInterval added in v0.7.35

type InventoryTriggerJobOperationTimeInterval struct {
	Start string `xml:"Start,omitempty"`
	End   string `xml:"End,omitempty"`
}

InventoryTriggerJobOperationTimeInterval TODO

type ItemPolygon added in v0.7.36

type ItemPolygon struct {
	X      int `xml:"X,omitempty"`
	Y      int `xml:"Y,omitempty"`
	Width  int `xml:"Width,omitempty"`
	Height int `xml:"Height,omitempty"`
}

ItemPolygon TODO

type JSONInputSerialization added in v0.7.11

type JSONInputSerialization struct {
	Type string `xml:"Type,omitempty"`
}

type JSONOutputSerialization added in v0.7.11

type JSONOutputSerialization struct {
	RecordDelimiter string `xml:"RecordDelimiter,omitempty"`
}

type JobInput added in v0.7.21

type JobInput struct {
	Object string `xml:"Object,omitempty"`
}

JobInput TODO

type JobOutput added in v0.7.21

type JobOutput struct {
	Region        string          `xml:"Region,omitempty"`
	Bucket        string          `xml:"Bucket,omitempty"`
	Object        string          `xml:"Object,omitempty"`
	SpriteObject  string          `xml:"SpriteObject,omitempty"`
	AuObject      string          `xml:"AuObject,omitempty"`
	StreamExtract []StreamExtract `xml:"StreamExtract,omitempty"`
}

JobOutput TODO

type Jobs

type Jobs struct {
	Name       string
	UploadId   string
	FilePath   string
	RetryTimes int
	VersionId  []string
	Chunk      Chunk
	Data       io.Reader
	Opt        *ObjectUploadPartOptions
	DownOpt    *ObjectGetOptions
}

jobs

type LibResult added in v0.7.31

type LibResult struct {
	ImageId string `xml:"ImageId,omitempty"`
	Score   uint32 `xml:"Score,omitempty"`
	TextLibResult
}

LibResult

type LimitedReadCloser added in v0.7.23

type LimitedReadCloser struct {
	io.LimitedReader
}

func (*LimitedReadCloser) Close added in v0.7.23

func (lc *LimitedReadCloser) Close() error

type ListBucketInventoryConfigResult

type ListBucketInventoryConfigResult struct {
	XMLName                 xml.Name                           `xml:"ListInventoryConfigurationResult"`
	InventoryConfigurations []BucketListInventoryConfiguartion `xml:"InventoryConfiguration,omitempty"`
	IsTruncated             bool                               `xml:"IsTruncated,omitempty"`
	ContinuationToken       string                             `xml:"ContinuationToken,omitempty"`
	NextContinuationToken   string                             `xml:"NextContinuationToken,omitempty"`
}

ListBucketInventoryConfigResult result of ListBucketInventoryConfiguration

type ListMultipartUploadsOptions

type ListMultipartUploadsOptions struct {
	Delimiter      string `url:"delimiter,omitempty"`
	EncodingType   string `url:"encoding-type,omitempty"`
	Prefix         string `url:"prefix,omitempty"`
	MaxUploads     int    `url:"max-uploads,omitempty"`
	KeyMarker      string `url:"key-marker,omitempty"`
	UploadIDMarker string `url:"upload-id-marker,omitempty"`
}

ListMultipartUploadsOptions is the option of ListMultipartUploads

type ListMultipartUploadsResult

type ListMultipartUploadsResult struct {
	XMLName            xml.Name `xml:"ListMultipartUploadsResult"`
	Bucket             string   `xml:"Bucket"`
	EncodingType       string   `xml:"Encoding-Type"`
	KeyMarker          string
	UploadIDMarker     string `xml:"UploadIdMarker"`
	NextKeyMarker      string
	NextUploadIDMarker string `xml:"NextUploadIdMarker"`
	MaxUploads         int
	IsTruncated        bool
	Uploads            []struct {
		Key          string
		UploadID     string `xml:"UploadId"`
		StorageClass string
		Initiator    *Initiator
		Owner        *Owner
		Initiated    string
	} `xml:"Upload,omitempty"`
	Prefix         string
	Delimiter      string   `xml:"delimiter,omitempty"`
	CommonPrefixes []string `xml:"CommonPrefixs>Prefix,omitempty"`
}

ListMultipartUploadsResult is the result of ListMultipartUploads

type ListUploadsResultUpload added in v0.7.11

type ListUploadsResultUpload struct {
	Key          string     `xml:"Key,omitempty"`
	UploadID     string     `xml:"UploadId,omitempty"`
	StorageClass string     `xml:"StorageClass,omitempty"`
	Initiator    *Initiator `xml:"Initiator,omitempty"`
	Owner        *Owner     `xml:"Owner,omitempty"`
	Initiated    string     `xml:"Initiated,omitempty"`
}

type ListVersionsResultDeleteMarker added in v0.7.6

type ListVersionsResultDeleteMarker struct {
	Key          string `xml:"Key,omitempty"`
	VersionId    string `xml:"VersionId,omitempty"`
	IsLatest     bool   `xml:"IsLatest,omitempty"`
	LastModified string `xml:"LastModified,omitempty"`
	Owner        *Owner `xml:"Owner,omitempty"`
}

type ListVersionsResultVersion added in v0.7.6

type ListVersionsResultVersion struct {
	Key          string `xml:"Key,omitempty"`
	VersionId    string `xml:"VersionId,omitempty"`
	IsLatest     bool   `xml:"IsLatest,omitempty"`
	LastModified string `xml:"LastModified,omitempty"`
	ETag         string `xml:"ETag,omitempty"`
	Size         int    `xml:"Size,omitempty"`
	StorageClass string `xml:"StorageClass,omitempty"`
	Owner        *Owner `xml:"Owner,omitempty"`
}

type LivenessRecognitionOptions added in v0.7.36

type LivenessRecognitionOptions struct {
	IdCard       string `url:"IdCard,omitempty"`
	Name         string `url:"Name,omitempty"`
	LivenessType string `url:"LivenessType,omitempty"`
	ValidateData string `url:"ValidateData,omitempty"`
	BestFrameNum int    `url:"BestFrameNum,omitempty"`
}

type LivenessRecognitionResult added in v0.7.36

type LivenessRecognitionResult struct {
	XMLName         xml.Name `xml:"Response"`
	BestFrameBase64 string   `xml:"BestFrameBase64,omitempty"`
	Sim             float64  `xml:"Sim,omitempty"`
	BestFrameList   []string `xml:"BestFrameList,omitempty"`
}

type Location added in v0.7.31

type Location struct {
	X      float64 `xml:"X,omitempty"`      // 左上角横坐标
	Y      float64 `xml:"Y,omitempty"`      // 左上角纵坐标
	Width  float64 `xml:"Width,omitempty"`  // 宽度
	Height float64 `xml:"Height,omitempty"` // 高度
	Rotate float64 `xml:"Rotate,omitempty"` // 检测框的旋转角度
}

Location

type MediaInfo added in v0.7.34

type MediaInfo struct {
	Format struct {
		Bitrate        string `xml:"Bitrate"`
		Duration       string `xml:"Duration"`
		FormatLongName string `xml:"FormatLongName"`
		FormatName     string `xml:"FormatName"`
		NumProgram     string `xml:"NumProgram"`
		NumStream      string `xml:"NumStream"`
		Size           string `xml:"Size"`
		StartTime      string `xml:"StartTime"`
	} `xml:"Format"`
	Stream struct {
		Audio []struct {
			Bitrate        string `xml:"Bitrate"`
			Channel        string `xml:"Channel"`
			ChannelLayout  string `xml:"ChannelLayout"`
			CodecLongName  string `xml:"CodecLongName"`
			CodecName      string `xml:"CodecName"`
			CodecTag       string `xml:"CodecTag"`
			CodecTagString string `xml:"CodecTagString"`
			CodecTimeBase  string `xml:"CodecTimeBase"`
			Duration       string `xml:"Duration"`
			Index          string `xml:"Index"`
			Language       string `xml:"Language"`
			SampleFmt      string `xml:"SampleFmt"`
			SampleRate     string `xml:"SampleRate"`
			StartTime      string `xml:"StartTime"`
			Timebase       string `xml:"Timebase"`
		} `xml:"Audio"`
		Subtitle string `xml:"Subtitle"`
		Video    []struct {
			AvgFps         string `xml:"AvgFps"`
			Bitrate        string `xml:"Bitrate"`
			CodecLongName  string `xml:"CodecLongName"`
			CodecName      string `xml:"CodecName"`
			CodecTag       string `xml:"CodecTag"`
			CodecTagString string `xml:"CodecTagString"`
			CodecTimeBase  string `xml:"CodecTimeBase"`
			Dar            string `xml:"Dar"`
			Duration       string `xml:"Duration"`
			Fps            string `xml:"Fps"`
			HasBFrame      string `xml:"HasBFrame"`
			Height         string `xml:"Height"`
			Index          string `xml:"Index"`
			Language       string `xml:"Language"`
			Level          string `xml:"Level"`
			NumFrames      string `xml:"NumFrames"`
			PixFormat      string `xml:"PixFormat"`
			Profile        string `xml:"Profile"`
			RefFrames      string `xml:"RefFrames"`
			Rotation       string `xml:"Rotation"`
			Sar            string `xml:"Sar"`
			StartTime      string `xml:"StartTime"`
			Timebase       string `xml:"Timebase"`
			Width          string `xml:"Width"`
			ColorRange     string `xml:"ColorRange"`
			ColorTransfer  string `xml:"ColorTransfer"`
			ColorPrimaries string `xml:"ColorPrimaries"`
		} `xml:"Video"`
	} `xml:"Stream"`
}

MediaInfo TODO

type MediaProcessBucket added in v0.7.21

type MediaProcessBucket struct {
	BucketId   string `xml:"BucketId,omitempty"`
	Region     string `xml:"Region,omitempty"`
	CreateTime string `xml:"CreateTime,omitempty"`
}

MediaProcessBucket TODO

type MediaProcessJobDetail added in v0.7.21

type MediaProcessJobDetail struct {
	Code         string                    `xml:"Code,omitempty"`
	Message      string                    `xml:"Message,omitempty"`
	JobId        string                    `xml:"JobId,omitempty"`
	Tag          string                    `xml:"Tag,omitempty"`
	Progress     string                    `xml:"Progress,omitempty"`
	State        string                    `xml:"State,omitempty"`
	CreationTime string                    `xml:"CreationTime,omitempty"`
	StartTime    string                    `xml:"StartTime,omitempty"`
	EndTime      string                    `xml:"EndTime,omitempty"`
	QueueId      string                    `xml:"QueueId,omitempty"`
	Input        *JobInput                 `xml:"Input,omitempty"`
	Operation    *MediaProcessJobOperation `xml:"Operation,omitempty"`
}

MediaProcessJobDetail TODO

type MediaProcessJobOperation added in v0.7.21

type MediaProcessJobOperation struct {
	Tag                     string                   `xml:"Tag,omitempty"`
	Output                  *JobOutput               `xml:"Output,omitempty"`
	MediaResult             *MediaResult             `xml:"MediaResult,omitempty"`
	MediaInfo               *MediaInfo               `xml:"MediaInfo,omitempty"`
	Transcode               *Transcode               `xml:"Transcode,omitempty"`
	Watermark               []Watermark              `xml:"Watermark,omitempty"`
	TemplateId              string                   `xml:"TemplateId,omitempty"`
	WatermarkTemplateId     []string                 `xml:"WatermarkTemplateId,omitempty"`
	ConcatTemplate          *ConcatTemplate          `xml:"ConcatTemplate,omitempty"`
	Snapshot                *Snapshot                `xml:"Snapshot,omitempty"`
	Animation               *Animation               `xml:"Animation,omitempty"`
	Segment                 *Segment                 `xml:"Segment,omitempty"`
	VideoMontage            *VideoMontage            `xml:"VideoMontage,omitempty"`
	VoiceSeparate           *VoiceSeparate           `xml:"VoiceSeparate,omitempty"`
	VideoProcess            *VideoProcess            `xml:"VideoProcess,omitempty"`
	TranscodeTemplateId     string                   `xml:"TranscodeTemplateId,omitempty"` // 视频增强、超分、SDRtoHDR任务类型,可以选择转码模板相关参数
	SDRtoHDR                *SDRtoHDR                `xml:"SDRtoHDR,omitempty"`
	SuperResolution         *SuperResolution         `xml:"SuperResolution,omitempty"`
	DigitalWatermark        *DigitalWatermark        `xml:"DigitalWatermark,omitempty"`
	ExtractDigitalWatermark *ExtractDigitalWatermark `xml:"ExtractDigitalWatermark,omitempty"`
	VideoTag                *VideoTag                `xml:"VideoTag,omitempty"`
	UserData                string                   `xml:"UserData,omitempty"`
}

MediaProcessJobOperation TODO

type MediaProcessJobsNotifyBody added in v0.7.32

type MediaProcessJobsNotifyBody struct {
	XMLName    xml.Name               `xml:"Response"`
	EventName  string                 `xml:"EventName"`
	JobsDetail *MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
}

MediaProcessJobsNotifyBody TODO

type MediaProcessQueue added in v0.7.21

type MediaProcessQueue struct {
	QueueId       string                         `xml:"QueueId,omitempty"`
	Name          string                         `xml:"Name,omitempty"`
	State         string                         `xml:"State,omitempty"`
	MaxSize       int                            `xml:"MaxSize,omitempty"`
	MaxConcurrent int                            `xml:"MaxConcurrent,omitempty"`
	UpdateTime    string                         `xml:"UpdateTime,omitempty"`
	CreateTime    string                         `xml:"CreateTime,omitempty"`
	NotifyConfig  *MediaProcessQueueNotifyConfig `xml:"NotifyConfig,omitempty"`
}

MediaProcessQueue TODO

type MediaProcessQueueNotifyConfig added in v0.7.21

type MediaProcessQueueNotifyConfig struct {
	Url   string `xml:"Url,omitempty"`
	State string `xml:"State,omitempty"`
	Type  string `xml:"Type,omitempty"`
	Event string `xml:"Event,omitempty"`
}

MediaProcessQueueNotifyConfig TODO

type MediaResult added in v0.7.34

type MediaResult struct {
	OutputFile struct {
		Bucket  string `xml:"Bucket,omitempty"`
		Md5Info []struct {
			Md5        string `xml:"Md5,omitempty"`
			ObjectName string `xml:"ObjectName,omitempty"`
		} `xml:"Md5Info,omitempty"`
		ObjectName       []string `xml:"ObjectName,omitempty"`
		ObjectPrefix     string   `xml:"ObjectPrefix,omitempty"`
		Region           string   `xml:"Region,omitempty"`
		SpriteOutputFile struct {
			Bucket  string `xml:"Bucket,omitempty"`
			Md5Info []struct {
				Md5        string `xml:"Md5,omitempty"`
				ObjectName string `xml:"ObjectName,omitempty"`
			} `xml:"Md5Info,omitempty"`
			ObjectName   []string `xml:"ObjectName,omitempty"`
			ObjectPrefix string   `xml:"ObjectPrefix,omitempty"`
			Region       string   `xml:"Region,omitempty"`
		} `xml:"SpriteOutputFile,omitempty"`
	} `xml:"OutputFile,omitempty"`
}

MediaResult TODO

type MediaWorkflow added in v0.7.35

type MediaWorkflow struct {
	Name       string    `xml:"Name,omitempty"`
	WorkflowId string    `xml:"WorkflowId,omitempty"`
	State      string    `xml:"State,omitempty"`
	Topology   *Topology `xml:"Topology,omitempty"`
	CreateTime string    `xml:"CreateTime,omitempty"`
	UpdateTime string    `xml:"UpdateTime,omitempty"`
	BucketId   string    `xml:"BucketId,omitempty"`
}

MediaWorkflow TODO

type MsSharpen added in v0.7.34

type MsSharpen struct {
	Enable       string `xml:"Enable"`
	SharpenLevel string `xml:"SharpenLevel"`
}

MsSharpen TODO

type MultiCopyOptions added in v0.7.17

type MultiCopyOptions struct {
	OptCopy        *ObjectCopyOptions
	PartSize       int64
	ThreadPoolSize int
	// contains filtered or unexported fields
}

type MultiDownloadCPInfo added in v0.7.25

type MultiDownloadCPInfo struct {
	Size             int64             `json:"contentLength,omitempty"`
	ETag             string            `json:"eTag,omitempty"`
	CRC64            string            `json:"crc64ecma,omitempty"`
	LastModified     string            `json:"lastModified,omitempty"`
	DownloadedBlocks []DownloadedBlock `json:"downloadedBlocks,omitempty"`
}

type MultiDownloadOptions added in v0.7.25

type MultiDownloadOptions struct {
	Opt             *ObjectGetOptions
	PartSize        int64
	ThreadPoolSize  int
	CheckPoint      bool
	CheckPointFile  string
	DisableChecksum bool
}

type MultiUploadOptions

type MultiUploadOptions struct {
	OptIni          *InitiateMultipartUploadOptions
	PartSize        int64
	ThreadPoolSize  int
	CheckPoint      bool
	DisableChecksum bool
}

MultiUploadOptions is the option of the multiupload, ThreadPoolSize default is one

type Node added in v0.7.34

type Node struct {
	Type      string         `xml:"Type"`
	Input     *NodeInput     `xml:"Input,omitempty" json:"Input,omitempty"`
	Operation *NodeOperation `xml:"Operation,omitempty" json:"Operation,omitempty"`
}

Node TODO

type NodeHlsPackInfo added in v0.7.35

type NodeHlsPackInfo struct {
	VideoStreamConfig []VideoStreamConfig `xml:"VideoStreamConfig,omitempty"`
}

NodeHlsPackInfo TODO

type NodeInput added in v0.7.34

type NodeInput struct {
	QueueId      string        `xml:"QueueId,omitempty"`
	ObjectPrefix string        `xml:"ObjectPrefix,omitempty"`
	NotifyConfig *NotifyConfig `xml:"NotifyConfig,omitempty" json:"NotifyConfig,omitempty"`
	ExtFilter    *ExtFilter    `xml:"ExtFilter,omitempty" json:"ExtFilter,omitempty"`
}

NodeInput TODO

type NodeOperation added in v0.7.34

type NodeOperation struct {
	TemplateId           string                    `xml:"TemplateId,omitempty" json:"TemplateId,omitempty"`
	Output               *NodeOutput               `xml:"Output,omitempty" json:"Output,omitempty"`
	WatermarkTemplateId  []string                  `xml:"WatermarkTemplateId,omitempty" json:"WatermarkTemplateId,omitempty"`
	DelogoParam          *DelogoParam              `xml:"DelogoParam,omitempty" json:"DelogoParam,omitempty"`
	SDRtoHDR             *NodeSDRtoHDR             `xml:"SDRtoHDR,omitempty" json:"SDRtoHDR,omitempty"`
	SCF                  *NodeSCF                  `xml:"SCF,omitempty" json:"SCF,omitempty"`
	HlsPackInfo          *NodeHlsPackInfo          `xml:"HlsPackInfo,omitempty" json:"HlsPackInfo,omitempty"`
	TranscodeTemplateId  string                    `xml:"TranscodeTemplateId,omitempty" json:"TranscodeTemplateId,omitempty"`
	SmartCover           *NodeSmartCover           `xml:"SmartCover,omitempty" json:"SmartCover,omitempty"`
	SegmentConfig        *NodeSegmentConfig        `xml:"SegmentConfig,omitempty" json:"SegmentConfig,omitempty"`
	DigitalWatermark     *DigitalWatermark         `xml:"DigitalWatermark,omitempty" json:"DigitalWatermark,omitempty"`
	StreamPackConfigInfo *NodeStreamPackConfigInfo `xml:"StreamPackConfigInfo,omitempty" json:"StreamPackConfigInfo,omitempty"`
	StreamPackInfo       *NodeHlsPackInfo          `xml:"StreamPackInfo,omitempty" json:"StreamPackInfo,omitempty"`
}

NodeOperation TODO

type NodeOutput added in v0.7.34

type NodeOutput struct {
	Region       string `xml:"Region,omitempty"`
	Bucket       string `xml:"Bucket,omitempty"`
	Object       string `xml:"Object,omitempty"`
	AuObject     string `xml:"AuObject,omitempty"`
	SpriteObject string `xml:"SpriteObject,omitempty"`
}

NodeOutput TODO

type NodeSCF added in v0.7.34

type NodeSCF struct {
	Region       string `xml:"Region,omitempty"`
	FunctionName string `xml:"FunctionName,omitempty"`
	Namespace    string `xml:"Namespace,omitempty"`
}

NodeSCF TODO

type NodeSDRtoHDR added in v0.7.34

type NodeSDRtoHDR struct {
	HdrMode string `xml:"HdrMode,omitempty"`
}

NodeSDRtoHDR TODO

type NodeSegmentConfig added in v0.7.35

type NodeSegmentConfig struct {
	Format   string `xml:"Format,omitempty"`
	Duration string `xml:"Duration,omitempty"`
}

NodeSegmentConfig TODO

type NodeSmartCover added in v0.7.34

type NodeSmartCover struct {
	Format           string `xml:"Format,omitempty"`
	Width            string `xml:"Width,omitempty"`
	Height           string `xml:"Height,omitempty"`
	Count            string `xml:"Count,omitempty"`
	DeleteDuplicates string `xml:"DeleteDuplicates,omitempty"`
}

NodeSmartCover TODO

type NodeStreamPackConfigInfo added in v0.7.35

type NodeStreamPackConfigInfo struct {
	PackType             string `xml:"PackType,omitempty"`
	IgnoreFailedStream   bool   `xml:"IgnoreFailedStream,omitempty"`
	ReserveAllStreamNode string `xml:"ReserveAllStreamNode,omitempty"`
}

NodeStreamPackConfigInfo TODO

type NotifyConfig added in v0.7.34

type NotifyConfig struct {
	URL          string `xml:"Url,omitempty"`
	Event        string `xml:"Event,omitempty"`
	Type         string `xml:"Type,omitempty"`
	ResultFormat string `xml:"ResultFormat,omitempty"`
}

NotifyConfig TODO

type Object

type Object struct {
	Key          string `xml:",omitempty"`
	ETag         string `xml:",omitempty"`
	Size         int64  `xml:",omitempty"`
	PartNumber   int    `xml:",omitempty"`
	LastModified string `xml:",omitempty"`
	StorageClass string `xml:",omitempty"`
	Owner        *Owner `xml:",omitempty"`
	VersionId    string `xml:",omitempty"`
}

Object is the meta info of the object

type ObjectCopyHeaderOptions

type ObjectCopyHeaderOptions struct {
	// When use replace directive to update meta infos
	CacheControl                    string `header:"Cache-Control,omitempty" url:"-"`
	ContentDisposition              string `header:"Content-Disposition,omitempty" url:"-"`
	ContentEncoding                 string `header:"Content-Encoding,omitempty" url:"-"`
	ContentLanguage                 string `header:"Content-Language,omitempty" url:"-"`
	ContentType                     string `header:"Content-Type,omitempty" url:"-"`
	Expires                         string `header:"Expires,omitempty" url:"-"`
	Expect                          string `header:"Expect,omitempty" url:"-"`
	XCosMetadataDirective           string `header:"x-cos-metadata-directive,omitempty" url:"-" xml:"-"`
	XCosCopySourceIfModifiedSince   string `header:"x-cos-copy-source-If-Modified-Since,omitempty" url:"-" xml:"-"`
	XCosCopySourceIfUnmodifiedSince string `header:"x-cos-copy-source-If-Unmodified-Since,omitempty" url:"-" xml:"-"`
	XCosCopySourceIfMatch           string `header:"x-cos-copy-source-If-Match,omitempty" url:"-" xml:"-"`
	XCosCopySourceIfNoneMatch       string `header:"x-cos-copy-source-If-None-Match,omitempty" url:"-" xml:"-"`
	XCosStorageClass                string `header:"x-cos-storage-class,omitempty" url:"-" xml:"-"`
	// 自定义的 x-cos-meta-* header
	XCosMetaXXX              *http.Header `header:"x-cos-meta-*,omitempty" url:"-"`
	XCosCopySource           string       `header:"x-cos-copy-source" url:"-" xml:"-"`
	XCosServerSideEncryption string       `header:"x-cos-server-side-encryption,omitempty" url:"-" xml:"-"`
	// SSE-C
	XCosSSECustomerAglo             string `header:"x-cos-server-side-encryption-customer-algorithm,omitempty" url:"-" xml:"-"`
	XCosSSECustomerKey              string `header:"x-cos-server-side-encryption-customer-key,omitempty" url:"-" xml:"-"`
	XCosSSECustomerKeyMD5           string `header:"x-cos-server-side-encryption-customer-key-MD5,omitempty" url:"-" xml:"-"`
	XCosCopySourceSSECustomerAglo   string `header:"x-cos-copy-source-server-side-encryption-customer-algorithm,omitempty" url:"-" xml:"-"`
	XCosCopySourceSSECustomerKey    string `header:"x-cos-copy-source-server-side-encryption-customer-key,omitempty" url:"-" xml:"-"`
	XCosCopySourceSSECustomerKeyMD5 string `header:"x-cos-copy-source-server-side-encryption-customer-key-MD5,omitempty" url:"-" xml:"-"`
	//兼容其他自定义头部
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

ObjectCopyHeaderOptions is the head option of the Copy

type ObjectCopyOptions

type ObjectCopyOptions struct {
	*ObjectCopyHeaderOptions `header:",omitempty" url:"-" xml:"-"`
	*ACLHeaderOptions        `header:",omitempty" url:"-" xml:"-"`
}

ObjectCopyOptions is the option of Copy, choose header or body

type ObjectCopyPartOptions

type ObjectCopyPartOptions struct {
	XCosCopySource                  string `header:"x-cos-copy-source" url:"-"`
	XCosCopySourceRange             string `header:"x-cos-copy-source-range,omitempty" url:"-"`
	XCosCopySourceIfModifiedSince   string `header:"x-cos-copy-source-If-Modified-Since,omitempty" url:"-"`
	XCosCopySourceIfUnmodifiedSince string `header:"x-cos-copy-source-If-Unmodified-Since,omitempty" url:"-"`
	XCosCopySourceIfMatch           string `header:"x-cos-copy-source-If-Match,omitempty" url:"-"`
	XCosCopySourceIfNoneMatch       string `header:"x-cos-copy-source-If-None-Match,omitempty" url:"-"`
}

ObjectCopyPartOptions is the options of copy-part

type ObjectCopyResult

type ObjectCopyResult struct {
	XMLName      xml.Name `xml:"CopyObjectResult"`
	ETag         string   `xml:"ETag,omitempty"`
	LastModified string   `xml:"LastModified,omitempty"`
	CRC64        string   `xml:"CRC64,omitempty"`
	VersionId    string   `xml:"VersionId,omitempty"`
}

ObjectCopyResult is the result of Copy

type ObjectDeleteMultiOptions

type ObjectDeleteMultiOptions struct {
	XMLName xml.Name `xml:"Delete" header:"-"`
	Quiet   bool     `xml:"Quiet" header:"-"`
	Objects []Object `xml:"Object" header:"-"`
}

ObjectDeleteMultiOptions is the option of DeleteMulti

type ObjectDeleteMultiResult

type ObjectDeleteMultiResult struct {
	XMLName        xml.Name `xml:"DeleteResult"`
	DeletedObjects []Object `xml:"Deleted,omitempty"`
	Errors         []struct {
		Key       string `xml:",omitempty"`
		Code      string `xml:",omitempty"`
		Message   string `xml:",omitempty"`
		VersionId string `xml:",omitempty"`
	} `xml:"Error,omitempty"`
}

ObjectDeleteMultiResult is the result of DeleteMulti

type ObjectDeleteOptions added in v0.7.5

type ObjectDeleteOptions struct {
	// SSE-C
	XCosSSECustomerAglo   string `header:"x-cos-server-side-encryption-customer-algorithm,omitempty" url:"-" xml:"-"`
	XCosSSECustomerKey    string `header:"x-cos-server-side-encryption-customer-key,omitempty" url:"-" xml:"-"`
	XCosSSECustomerKeyMD5 string `header:"x-cos-server-side-encryption-customer-key-MD5,omitempty" url:"-" xml:"-"`
	//兼容其他自定义头部
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
	VersionId     string       `header:"-" url:"VersionId,omitempty" xml:"-"`
}

type ObjectGetACLResult

type ObjectGetACLResult = ACLXml

ObjectGetACLResult is the result of GetObjectACL

type ObjectGetOptions

type ObjectGetOptions struct {
	ResponseContentType        string `url:"response-content-type,omitempty" header:"-"`
	ResponseContentLanguage    string `url:"response-content-language,omitempty" header:"-"`
	ResponseExpires            string `url:"response-expires,omitempty" header:"-"`
	ResponseCacheControl       string `url:"response-cache-control,omitempty" header:"-"`
	ResponseContentDisposition string `url:"response-content-disposition,omitempty" header:"-"`
	ResponseContentEncoding    string `url:"response-content-encoding,omitempty" header:"-"`
	Range                      string `url:"-" header:"Range,omitempty"`
	IfModifiedSince            string `url:"-" header:"If-Modified-Since,omitempty"`
	// SSE-C
	XCosSSECustomerAglo   string `header:"x-cos-server-side-encryption-customer-algorithm,omitempty" url:"-" xml:"-"`
	XCosSSECustomerKey    string `header:"x-cos-server-side-encryption-customer-key,omitempty" url:"-" xml:"-"`
	XCosSSECustomerKeyMD5 string `header:"x-cos-server-side-encryption-customer-key-MD5,omitempty" url:"-" xml:"-"`

	//兼容其他自定义头部
	XOptionHeader    *http.Header `header:"-,omitempty" url:"-" xml:"-"`
	XCosTrafficLimit int          `header:"x-cos-traffic-limit,omitempty" url:"-" xml:"-"`

	// 下载进度, ProgressCompleteEvent不能表示对应API调用成功,API是否调用成功的判断标准为返回err==nil
	Listener ProgressListener `header:"-" url:"-" xml:"-"`
}

ObjectGetOptions is the option of GetObject

func CloneObjectGetOptions added in v0.7.26

func CloneObjectGetOptions(opt *ObjectGetOptions) *ObjectGetOptions

type ObjectGetTaggingOptions added in v0.7.36

type ObjectGetTaggingOptions struct {
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

type ObjectGetTaggingResult added in v0.7.7