cos

package module
v0.7.55 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 35 Imported by: 509

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.55"
	UserAgent = "cos-go-sdk-v5/" + Version

	XOptionalKey = "cos-go-sdk-v5-XOptionalKey"
)

Variables

View Source
var ACL = &aclEnum{
	Private:                "private",
	PublicRead:             "public-read",
	PublicReadWrite:        "public-read-write",
	AuthenticatedRead:      "authenticated-read",
	Default:                "default",
	BucketOwnerRead:        "bucket-owner-read",
	BucketOwnerFullControl: "bucket-owner-full-control",
}
View Source
var DNSScatterDialContext = DNSScatterDialContextFunc
View Source
var DNSScatterTransport = &http.Transport{
	Proxy:                 http.ProxyFromEnvironment,
	DialContext:           DNSScatterDialContext,
	MaxIdleConns:          100,
	IdleConnTimeout:       60 * 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,
	"cache-control":                  true,
	"content-disposition":            true,
	"content-encoding":               true,
	"content-type":                   true,
	"content-length":                 true,
	"content-md5":                    true,
	"transfer-encoding":              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,
	"pic-operations":                 true,
}

需要校验的 Headers 列表

View Source
var (
	ObjectKeySimplifyCheckErr = fmt.Errorf("The Getobject Key is illegal")
)

Functions

func AddAuthorizationHeader

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

AddAuthorizationHeader 给 req 增加签名信息

func CheckObjectKeySimplify added in v0.7.48

func CheckObjectKeySimplify(key string) bool

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 GetBucketRegionFromUrl added in v0.7.55

func GetBucketRegionFromUrl(u *url.URL) (string, 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

func UnmarshalCompleteMultiUploadResult added in v0.7.47

func UnmarshalCompleteMultiUploadResult(data []byte, res *CompleteMultipartUploadResult) error

func UnmarshalInitMultiUploadResult added in v0.7.47

func UnmarshalInitMultiUploadResult(data []byte, res *InitiateMultipartUploadResult) error

Types

type ACLGrant

type ACLGrant struct {
	Grantee    *ACLGrantee
	Permission string
}

ACLGrant is the param of ACLXml

type ACLGrantee

type ACLGrantee struct {
	TypeAttr    xml.Attr `xml:",attr,omitempty"`
	Type        string   `xml:"type,attr,omitempty"`
	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 AIBodyRecognitionOptions added in v0.7.42

type AIBodyRecognitionOptions struct {
	CIProcess string `url:"ci-process,omitempty"`
	DetectUrl string `url:"detect-url,omitempty"`
}

AIBodyRecognitionOptions is the option of AIBodyRecognitionWithOpt

type AIBodyRecognitionResult added in v0.7.42

type AIBodyRecognitionResult struct {
	XMLName        xml.Name         `xml:"RecognitionResult"`
	Status         int              `xml:"Status,omitempty"`
	PedestrianInfo []PedestrianInfo `xml:"PedestrianInfo,omitempty"`
}

type AIEnhanceImageOptions added in v0.7.46

type AIEnhanceImageOptions struct {
	DetectUrl   string `url:"detect-url,omitempty"`
	Senoise     int    `url:"denoise,omitempty"`
	Sharpen     int    `url:"sharpen,omitempty"`
	IgnoreError int    `url:"ignore-error,omitempty"`
}

AIEnhanceImageOptions 图像增强选项

type AIGameRecOptions added in v0.7.46

type AIGameRecOptions struct {
	DetectUrl string `url:"detect-url,omitempty"`
}

type AIGameRecResult added in v0.7.46

type AIGameRecResult struct {
	XMLName    xml.Name `xml:"RecognitionResult"`
	GameLabels *struct {
		Confidence     int    `xml:"Confidence,omitempty"`
		FirstCategory  string `xml:"FirstCategory,omitempty"`
		SecondCategory string `xml:"SecondCategory,omitempty"`
		GameName       string `xml:"GameName,omitempty"`
	} `xml:"GameLabels,omitempty"`
}

type AIImageColoringOptions added in v0.7.46

type AIImageColoringOptions struct {
	DetectUrl string `url:"detect-url,omitempty"`
}

AIImageColoringOptions TODO

type AIImageCropOptions added in v0.7.42

type AIImageCropOptions struct {
	DetectUrl   string `url:"detect-url,omitempty"`
	Width       int    `url:"width,omitempty"`
	Height      int    `url:"height,omitempty"`
	Fixed       int    `url:"fixed,omitempty"`
	IgnoreError int    `url:"ignore-error,omitempty"`
}

AIImageCropOptions 图像智能裁剪选项

type AILicenseRecOptions added in v0.7.44

type AILicenseRecOptions struct {
	DetectUrl string `url:"detect-url,omitempty"`
	CardType  string `url:"CardType,omitempty"`
}

type AILicenseRecResult added in v0.7.44

type AILicenseRecResult struct {
	XMLName xml.Name `xml:"Response"`
	Status  int      `xml:"Status,omitempty"`
	IdInfo  []struct {
		Name         string `xml:"Name,omitempty"`
		DetectedText string `xml:"DetectedText,omitempty"`
		Score        int    `xml:"Score,omitempty"`
		Location     struct {
			Point []string `xml:"Point,omitempty"`
		} `xml:"Location,omitempty"`
	} `xml:"IdInfo,omitempty"`
}

type AIObjectDetectOptions added in v0.7.44

type AIObjectDetectOptions struct {
	DetectUrl string `url:"detect-url,omitempty"`
}

type AIObjectDetectResult added in v0.7.44

type AIObjectDetectResult struct {
	XMLName        xml.Name `xml:"RecognitionResult"`
	Status         int      `xml:"Status,omitempty"`
	DetectMultiObj []struct {
		Name       string `xml:"Name,omitempty"`
		Confidence int    `xml:"Confidence,omitempty"`
		Location   struct {
			X      int `xml:"X,omitempty"`
			Y      int `xml:"Y,omitempty"`
			Width  int `xml:"Width,omitempty"`
			Height int `xml:"Height,omitempty"`
		} `xml:"Location,omitempty"`
	} `xml:"DetectMultiObj,omitempty"`
}

type AIPicMattingOptions added in v0.7.53

type AIPicMattingOptions struct {
	DetectUrl     string      `url:"detect-url, omitempty" json:"-"`     // 您可以通过填写 detect-url 处理任意公网可访问的图片链接。不填写 detect-url 时,后台会默认处理 ObjectKey ,填写了 detect-url 时,后台会处理 detect-url 链接,无需再填写 ObjectKey detect-url 示例:http://www.example.com/abc.jpg ,需要进行 UrlEncode,处理后为http%25253A%25252F%25252Fwww.example.com%25252Fabc.jpg。
	CenterLayout  int         `url:"center-layout, omitempty" json:"-"`  // 抠图主体居中显示;值为1时居中显示,值为0不做处理,默认为0
	PaddingLayout string      `url:"padding-layout, omitempty" json:"-"` // 将处理后的图片四边进行留白,形式为 padding-layout=<dx>x<dy>,左右两边各进行 dx 像素的留白,上下两边各进行 dy 像素的留白,例如:padding-layout=20x10默认不进行留白操作,dx、dy 最大值为1000像素。
	OptHeaders    *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type AIPortraitMattingOptions added in v0.7.53

type AIPortraitMattingOptions struct {
	DetectUrl     string      `url:"detect-url, omitempty" json:"-"`     // 您可以通过填写 detect-url 处理任意公网可访问的图片链接。不填写 detect-url 时,后台会默认处理 ObjectKey ,填写了 detect-url 时,后台会处理 detect-url 链接,无需再填写 ObjectKey。 detect-url 示例:http://www.example.com/abc.jpg,需要进行 UrlEncode,处理后为http%25253A%25252F%25252Fwww.example.com%25252Fabc.jpg。
	CenterLayout  int         `url:"center-layout, omitempty" json:"-"`  // 抠图主体居中显示;值为1时居中显示,值为0不做处理,默认为0
	PaddingLayout string      `url:"padding-layout, omitempty" json:"-"` // 将处理后的图片四边进行留白,形式为 padding-layout=x,左右两边各进行 dx 像素的留白,上下两边各进行 dy 像素的留白,例如:padding-layout=20x10默认不进行留白操作,dx、dy最大值为1000像素。
	OptHeaders    *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type AIRecognitionOptions added in v0.7.55

type AIRecognitionOptions struct {
	DetectType string      `url:"detect-type, omitempty" json:"-"`
	OptHeaders *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type AIRecognitionResult added in v0.7.55

type AIRecognitionResult struct {
	XMLName xml.Name `xml:"Response" json:"response,omitempty"`
	// BodyJointsDetect struct {
	// 	BodyJointsResults []struct {
	// 		BodyJoints []struct {
	// 			KeyPointType string `xml:"KeyPointType"`
	// 			X            string `xml:"X"`
	// 			Y            string `xml:"Y"`
	// 		} `xml:"BodyJoints" json:"bodyjoints,omitempty"`
	// 		BoundBox struct {
	// 			Height string `xml:"Height"`
	// 			Width  string `xml:"Width"`
	// 			X      string `xml:"X"`
	// 			Y      string `xml:"Y"`
	// 		} `xml:"BoundBox" json:"boundbox,omitempty"`
	// 		Confidence string `xml:"Confidence"`
	// 	} `xml:"BodyJointsResults" json:"bodyjointsresults,omitempty"`
	// 	RequestId string `xml:"RequestId"`
	// } `xml:"BodyJointsDetect" json:"bodyjointsdetect,omitempty"`
	// DetectLabel struct {
	// 	Labels []struct {
	// 		Confidence string `xml:"Confidence"`
	// 		Name       string `xml:"Name"`
	// 	} `xml:"Labels" json:"labels,omitempty"`
	// } `xml:"DetectLabel" json:"detectlabel,omitempty"`
	// OCR struct {
	// 	Angel          string `xml:"Angel"`
	// 	Language       string `xml:"Language"`
	// 	PdfPageSize    string `xml:"PdfPageSize"`
	// 	RequestId      string `xml:"RequestId"`
	// 	TextDetections []struct {
	// 		Confidence   string `xml:"Confidence"`
	// 		DetectedText string `xml:"DetectedText"`
	// 		ItemPolygon  struct {
	// 			Height string `xml:"Height"`
	// 			Width  string `xml:"Width"`
	// 			X      string `xml:"X"`
	// 			Y      string `xml:"Y"`
	// 		} `xml:"ItemPolygon" json:"itempolygon,omitempty"`
	// 		Polygon []struct {
	// 			X string `xml:"X"`
	// 			Y string `xml:"Y"`
	// 		} `xml:"Polygon" json:"polygon,omitempty"`
	// 		Words string `xml:"Words"`
	// 	} `xml:"TextDetections" json:"textdetections,omitempty"`
	// } `xml:"OCR" json:"ocr,omitempty"`
	// EnhanceImage struct {
	// 	EnhancedImage string `xml:"EnhancedImage"`
	// } `xml:"EnhanceImage" json:"enhanceimage,omitempty"`
	DetectVehicle struct {
		Vehicles []struct {
			Location struct {
				Height int `xml:"Height"`
				Width  int `xml:"Width"`
				X      int `xml:"X"`
				Y      int `xml:"Y"`
			} `xml:"Location" json:"location,omitempty"`
			Name  string `xml:"Name"`
			Score int    `xml:"Score"`
		} `xml:"Vehicles" json:"vehicles,omitempty"`
	} `xml:"DetectVehicle" json:"detectvehicle,omitempty"`
	DetectPedestrian struct {
		Pedestrians []struct {
			Location struct {
				Height int `xml:"Height"`
				Width  int `xml:"Width"`
				X      int `xml:"X"`
				Y      int `xml:"Y"`
			} `xml:"Location" json:"location,omitempty"`
			Name  string `xml:"Name"`
			Score int    `xml:"Score"`
		} `xml:"Pedestrians" json:"pedestrians,omitempty"`
	} `xml:"DetectPedestrian" json:"detectpedestrian,omitempty"`
	DetectPet struct {
		Pets []struct {
			Location struct {
				Height int `xml:"Height"`
				Width  int `xml:"Width"`
				X      int `xml:"X"`
				Y      int `xml:"Y"`
			} `xml:"Location" json:"location,omitempty"`
			Name  string `xml:"Name"`
			Score int    `xml:"Score"`
		} `xml:"Pets" json:"pets,omitempty"`
	} `xml:"DetectPet" json:"detectpet,omitempty"`
}

type AISuperResolutionOptions added in v0.7.46

type AISuperResolutionOptions struct {
	DetectUrl string `url:"detect-url,omitempty"`
}

AIImageColoringOptions TODO

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"`
	SoundHoundResult        *SoundHoundResult        `xml:"SoundHoundResult,omitempty"`
	TemplateId              string                   `xml:"TemplateId,omitempty"`
	UserData                string                   `xml:"UserData,omitempty"`
	JobLevel                int                      `xml:"JobLevel,omitempty"`
}

ASRJobOperation TODO

type AbortMultipartUploadOptions added in v0.7.51

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

type AddImageOptions added in v0.7.42

type AddImageOptions struct {
	XMLName       xml.Name `xml:"Request"`
	EntityId      string   `xml:"EntityId,omitempty"`
	CustomContent string   `xml:"CustomContent,omitempty"`
	Tags          string   `xml:"Tags,omitempty"`
}

AddImageOptions 添加图库图片选项

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 Aggregations added in v0.7.47

type Aggregations struct {
	Operation  string      `json:"Operation, omitempty" url:"-" ` //  聚合字段的操作符。枚举值:min:最小值。max:最大值。average:平均数sum:求和。count:计数。distinct:去重计数。group:分组计数,按照分组计数结果从高到低排序。
	Field      string      `json:"Field, omitempty" url:"-" `     // 字段名称。关于支持的字段,请参考字段和操作符的支持列表。
	OptHeaders *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type AggregationsResult added in v0.7.51

type AggregationsResult struct {
	Operation string    `json:"Operation"` //  聚合字段的聚合操作符。
	Value     float64   `json:"Value"`     //  聚合的统计结果。
	Groups    []*Groups `json:"Groups"`    //  分组聚合的结果列表。仅在请求的Aggregations中存在group类型的Operation时才会返回。
	Field     string    `json:"Field"`     // 聚合字段名称。
}

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,omitempty"`
	Width                      string `xml:"Width,omitempty"`
	Height                     string `xml:"Height,omitempty"`
	Fps                        string `xml:"Fps,omitempty"`
	AnimateOnlyKeepKeyFrame    string `xml:"AnimateOnlyKeepKeyFrame,omitempty"`
	AnimateTimeIntervalOfFrame string `xml:"AnimateTimeIntervalOfFrame,omitempty"`
	AnimateFramesPerSecond     string `xml:"AnimateFramesPerSecond,omitempty"`
	Quality                    string `xml:"Quality,omitempty"`
}

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

type AssessQualityResults added in v0.7.42

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

AssessQualityResults Logo识别结果

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"`
	CallbackType    int         `xml:",omitempty"`
	BizType         string      `xml:",omitempty"`
	Freeze          *FreezeConf `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"`
	TeenagerInfo    *RecognitionInfo     `xml:",omitempty"`
	LanguageResults []LanguageResult     `xml:",omitempty"`
	Section         []AudioSectionResult `xml:",omitempty"`
	UserInfo        *UserExtraInfo       `xml:",omitempty"`
	ListInfo        *UserListInfo        `xml:",omitempty"`
	ForbidState     int                  `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"`
	SubLabel        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"`
	LanguageResults []LanguageResult `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"`
	SubLabel      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"`
	ListInfo      *UserListInfo                 `xml:",omitempty"`
	ForbidState   int                           `xml:",omitempty"`
	MaskInfo      *AuditingMaskInfo             `xml:",omitempty"`
}

AuditingJobDetail is the detail of GetVideoAuditingJobResult

type AuditingMask added in v0.7.42

type AuditingMask struct {
	Images     []AuditingMaskImages    `xml:",omitempty"`
	Audios     []AuditingMaskAudios    `xml:",omitempty"`
	CosOutput  *AuditingMaskCosOutput  `xml:",omitempty"`
	LiveOutput *AuditingMaskLiveOutput `xml:",omitempty"`
}

AuditingMask is auto Mask options

type AuditingMaskAudios added in v0.7.42

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

AuditingMaskAudios 审核马赛克相关参数

type AuditingMaskCosOutput added in v0.7.42

type AuditingMaskCosOutput struct {
	Region    string     `xml:"Region,omitempty"`
	Bucket    string     `xml:"Bucket,omitempty"`
	Object    string     `xml:"Object,omitempty"`
	Transcode *Transcode `xml:",omitempty"`
}

AuditingMaskCosOutput 审核马赛克相关参数

type AuditingMaskImages added in v0.7.42

type AuditingMaskImages struct {
	Label string `xml:",omitempty"`
	Type  string `xml:",omitempty"`
	Url   string `xml:",omitempty"`
}

AuditingMaskImages 审核马赛克相关参数

type AuditingMaskInfo added in v0.7.42

type AuditingMaskInfo struct {
	RecordInfo *AuditingMaskRecordInfo `xml:",omitempty"`
	LiveInfo   *AuditingMaskLiveInfo   `xml:",omitempty"`
}

AuditingMaskInfo 审核马赛克信息

type AuditingMaskLiveInfo added in v0.7.42

type AuditingMaskLiveInfo struct {
	StartTime string `xml:"StartTime,omitempty"`
	EndTime   string `xml:"EndTime,omitempty"`
	Output    string `xml:"Output,omitempty"`
}

AuditingMaskInfo 审核马赛克信息

type AuditingMaskLiveOutput added in v0.7.42

type AuditingMaskLiveOutput struct {
	Url       string     `xml:"Url,omitempty"`
	Transcode *Transcode `xml:",omitempty"`
}

AuditingMaskLiveOutput 审核马赛克相关参数

type AuditingMaskRecordInfo added in v0.7.42

type AuditingMaskRecordInfo struct {
	Code    string `xml:"Code,omitempty"`
	Message string `xml:"Message,omitempty"`
	Output  *struct {
		Region string `xml:"Region,omitempty"`
		Bucket string `xml:"Bucket,omitempty"`
		Object string `xml:"Object,omitempty"`
	} `xml:"Output,omitempty"`
}

AuditingMaskInfo 审核马赛克信息

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 AutoAddressing added in v0.7.43

type AutoAddressing struct {
	Status string `xml:"Status,omitempty"`
}

type AutoTranslationBlockOptions added in v0.7.42

type AutoTranslationBlockOptions struct {
	InputText  string `url:"InputText,omitempty"`
	SourceLang string `url:"SourceLang,omitempty"`
	TargetLang string `url:"TargetLang,omitempty"`
	TextDomain string `url:"TextDomain,omitempty"`
	TextStyle  string `url:"TextStyle,omitempty"`
}

AutoTranslationBlockOptions 实时文字翻译

type AutoTranslationBlockResults added in v0.7.42

type AutoTranslationBlockResults struct {
	XMLName           xml.Name `xml:"TranslationResult"`
	TranslationResult string   `xml:",chardata"`
}

AutoTranslationBlockResults 实时文字翻译选项

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
	// 访问 MetaInsight 的基础 URL
	MetaInsightURL *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 BatchCOSTag added in v0.7.42

type BatchCOSTag struct {
	Key   string `xml:"Key,omitempty" header:"-" url:"-"`
	Value string `xml:"Value,omitempty" header:"-" url:"-"`
}

BatchJobOperationCopy

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 {
	AccessControlDirective    string                    `xml:"AccessControlDirective,omitempty" header:"-" url:"-"`
	AccessControlGrants       *BatchAccessControlGrants `xml:"AccessControlGrants,omitempty" header:"-" url:"-"`
	CannedAccessControlList   string                    `xml:"CannedAccessControlList,omitempty" header:"-" url:"-"`
	PrefixReplace             bool                      `xml:"PrefixReplace,omitempty" header:"-" url:"-"`
	ResourcesPrefix           string                    `xml:"ResourcesPrefix,omitempty" header:"-" url:"-"`
	TargetKeyPrefix           string                    `xml:"TargetKeyPrefix,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:"-"`
	TaggingDirective          string                    `xml:"TaggingDirective,omitempty" header:"-" url:"-"`
	NewObjectTagging          *BatchNewObjectTagging    `xml:"NewObjectTagging,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:"-"`
}

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 BatchNewObjectTagging added in v0.7.42

type BatchNewObjectTagging struct {
	COSTag []BatchCOSTag `xml:"COSTag,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) DeleteJob added in v0.7.42

func (s *BatchService) DeleteJob(ctx context.Context, id string, headers *BatchRequestHeaders) (*Response, error)

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 Binding added in v0.7.47

type Binding struct {
	URI         string `json:"URI"`         //  资源标识字段,表示需要与数据集绑定的资源,当前仅支持COS存储桶,字段规则:cos://,其中BucketName表示COS存储桶名称,例如:cos://examplebucket-1250000000
	State       string `json:"State"`       //  数据集和 COS Bucket绑定关系的状态。取值范围如下:Running:绑定关系运行中。
	StockState  string `json:"StockState"`  //  当前绑定的存储桶对应的存量索引的状态:有效值:NoIndexing(未进行存量建立索引)、Indexing(存量索引建立中)、Success(存量索引已建立完成)。
	CreateTime  string `json:"CreateTime"`  //  数据集和 COS Bucket绑定关系创建时间的时间戳,格式为RFC3339Nano。
	UpdateTime  string `json:"UpdateTime"`  //  数据集和 COS Bucket的绑定关系修改时间的时间戳,格式为RFC3339Nano。创建绑定关系后,如果未暂停或者未重启过绑定关系,则绑定关系修改时间的时间戳和绑定关系创建时间的时间戳相同。
	DatasetName string `json:"DatasetName"` // 数据集名称。
	Detail      string `json:"Detail"`      // 详情
}

type BodyRecognition added in v0.7.42

type BodyRecognition struct {
	Time     string                `xml:"Time,omitempty"`
	Url      string                `xml:"Url,omitempty"`
	BodyInfo []*VideoTargetRecInfo `xml:"BodyInfo,omitempty"`
}

BodyRecognition TODO

type Bucket

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

Bucket is the meta info of Bucket

type BucketAccessFrequency added in v0.7.52

type BucketAccessFrequency struct {
	AccessCountLessThan int `xml:"AccessCountLessThan,omitempty" header:"-"`
	RecentDays          int `xml:"RecentDays,omitempty" header:"-"`
}

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 BucketDeleteDomainOptions added in v0.7.55

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

type BucketDeleteLifecycleOptions added in v0.7.36

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

type BucketDeleteOptions added in v0.7.39

type BucketDeleteOptions 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"`
	KMSMasterKeyID string `xml:"KMSMasterKeyID,omitempty"`
}

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"`
	ResponseVary string           `xml:"ResponseVary,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 BucketGetDomainOptions added in v0.7.55

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

type BucketGetDomainResult

type BucketGetDomainResult BucketPutDomainOptions

type BucketGetEncryptionResult added in v0.7.4

type BucketGetEncryptionResult BucketPutEncryptionOptions

type BucketGetIntelligentTieringOptions added in v0.7.40

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

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 BucketGetMetadataResult added in v0.7.55

type BucketGetMetadataResult struct {
	BucketUrl          string
	BucketName         string
	Location           string
	MAZ                bool
	OFS                bool
	Encryption         *BucketGetEncryptionResult
	ACL                *BucketGetACLResult
	Website            *BucketGetWebsiteResult
	Logging            *BucketGetLoggingResult
	CORS               *BucketGetCORSResult
	Versioning         *BucketGetVersionResult
	Lifecycle          *BucketGetLifecycleResult
	IntelligentTiering *ListIntelligentTieringConfigurations
	Tagging            *BucketGetTaggingResult
	ObjectLock         *BucketGetObjectLockResult
	Replication        *BucketGetReplicationResult
}

type BucketGetObjectLockResult added in v0.7.42

type BucketGetObjectLockResult BucketPutObjectLockOptions

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 BucketGetReplicationResult added in v0.7.55

type BucketGetReplicationResult = GetBucketReplicationResult

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 BucketIntelligentTieringFilter added in v0.7.55

type BucketIntelligentTieringFilter struct {
	And    *BucketIntelligentTieringFilterAnd `xml:"And,omitempty" header:"-"`
	Prefix string                             `xml:"Prefix,omitempty" header:"-"`
	Tag    []*BucketTaggingTag                `xml:"Tag,omitempty" header:"-"`
}

type BucketIntelligentTieringFilterAnd added in v0.7.55

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

type BucketIntelligentTieringTransition added in v0.7.9

type BucketIntelligentTieringTransition struct {
	AccessTier      string `xml:"AccessTier,omitempty" header:"-"`
	Days            int    `xml:"Days,omitempty" header:"-"`
	RequestFrequent int    `xml:"RequestFrequent,omitempty" header:"-"`
}

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:"And>Prefix,omitempty"`
	Tags         []ObjectTaggingTag           `xml:"And>Tag,omitempty"`
	StorageClass string                       `xml:"And>StorageClass,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:"-"`
	PrefixNotEquals       string             `xml:"PrefixNotEquals,omitempty" header:"-"`
	ObjectSizeGreaterThan int64              `xml:"ObjectSizeGreaterThan,omitempty" header:"-"`
	ObjectSizeLessThan    int64              `xml:"ObjectSizeLessThan,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:"-"`
	AccessFrequency *BucketAccessFrequency `xml:"AccessFrequency,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:"-"`
	AccessFrequency *BucketAccessFrequency `xml:"AccessFrequency,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 {
	PrefixConfiguration    *OriginPrefixConfiguration    `xml:"PrefixConfiguration,omitempty"`
	SuffixConfiguration    *OriginSuffixConfiguration    `xml:"SuffixConfiguration,omitempty"`
	FixedFileConfiguration *OriginFixedFileConfiguration `xml:"FixedFileConfiguration,omitempty"`
}

type BucketOriginHostInfo added in v0.7.45

type BucketOriginHostInfo struct {
	HostName          string
	Weight            int64
	StandbyHostName_N []string
}

func (*BucketOriginHostInfo) MarshalXML added in v0.7.45

func (this *BucketOriginHostInfo) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*BucketOriginHostInfo) UnmarshalXML added in v0.7.45

func (this *BucketOriginHostInfo) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

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"`
	ForbidFollowHeaders []OriginHttpHeader `xml:"ForbidFollowHeaders>Header,omitempty"`
}

type BucketOriginInfo added in v0.7.7

type BucketOriginInfo struct {
	HostInfo *BucketOriginHostInfo `xml:"HostInfo,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 BucketPostInventoryOptions added in v0.7.42

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

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"`
	ResponseVary string           `xml:"ResponseVary,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" header:"-"`
	Status     string                              `xml:"Status,omitempty" header:"-"`
	Transition *BucketIntelligentTieringTransition `xml:"Transition,omitempty" header:"-"`

	// V2
	Id      string                                `xml:"Id,omitempty" header:"-"`
	Tiering []*BucketIntelligentTieringTransition `xml:"Tiering,omitempty" header:"-"`
	Filter  *BucketIntelligentTieringFilter       `xml:"Filter,omitempty" header:"-"`

	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

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 BucketPutObjectLockOptions added in v0.7.42

type BucketPutObjectLockOptions struct {
	XMLName           xml.Name        `xml:"ObjectLockConfiguration"`
	ObjectLockEnabled string          `xml:"ObjectLockEnabled,omitempty"`
	Rule              *ObjectLockRule `xml:"Rule,omitempty"`
}

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:"-"`
	XCosTagging               string                     `header:"x-cos-tagging,omitempty" url:"-" xml:"-"`
	XOptionHeader             *http.Header               `header:"-,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"`
	VerifySignatureURL      string   `xml:"VerifySignatureURL,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"`
	AutoAddressing   *AutoAddressing           `xml:"AutoAddressing,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, opt ...*BucketDeleteOptions) (*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, opt ...*BucketDeleteDomainOptions) (*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) DeleteIntelligentTiering added in v0.7.55

func (s *BucketService) DeleteIntelligentTiering(ctx context.Context, id string) (*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) DeleteReferer added in v0.7.55

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

Put空

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 (*BucketService) GetIntelligentTieringV2 added in v0.7.55

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) GetMeta added in v0.7.55

func (s *BucketService) GetMeta(ctx context.Context, bucket ...string) (*BucketGetMetadataResult, *Response, error)

func (*BucketService) GetObjectLockConfiguration added in v0.7.42

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

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) ListIntelligentTiering added in v0.7.55

func (s *BucketService) ListIntelligentTiering(ctx context.Context) (*ListIntelligentTieringConfigurations, *Response, 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) PostInventory added in v0.7.42

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

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) PutIntelligentTieringV2 added in v0.7.55

func (s *BucketService) PutIntelligentTieringV2(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) PutObjectLockConfiguration added in v0.7.42

func (s *BucketService) PutObjectLockConfiguration(ctx context.Context, opt *BucketPutObjectLockOptions) (*Response, error)

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"`
	Sid       string                            `json:"sid,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 CIDocCompareOptions added in v0.7.46

type CIDocCompareOptions struct {
	Object      string `url:"object,omitempty"`
	ComparePath string `url:"comparePath,omitempty"`
	CompareUrl  string `url:"compareUrl,omitempty"`
	SrcType     string `url:"srcType,omitempty"`
	TgtUri      string `url:"tgtUri,omitempty"`
}

type CIDocCompareResult added in v0.7.46

type CIDocCompareResult struct {
	XMLName    xml.Name `xml:"Response"`
	Code       string   `xml:"Code,omitempty" json:"code,omitempty"`
	ETag       string   `xml:"ETag,omitempty" json:"eTag,omitempty"`
	Msg        string   `xml:"Msg,omitempty" json:"msg,omitempty"`
	ResultPath string   `xml:"ResultPath,omitempty" json:"resultPath,omitempty"`
}

func (*CIDocCompareResult) Write added in v0.7.46

func (w *CIDocCompareResult) Write(p []byte) (n int, err error)

优先 json

type CIService added in v0.7.11

type CIService service

func (*CIService) AIBodyRecognition added in v0.7.42

人体识别 https://cloud.tencent.com/document/product/436/83728

func (*CIService) AIGameRec added in v0.7.46

func (s *CIService) AIGameRec(ctx context.Context, obj string, opt *AIGameRecOptions) (*AIGameRecResult, *Response, error)

func (*CIService) AILicenseRec added in v0.7.44

func (s *CIService) AILicenseRec(ctx context.Context, obj string, opt *AILicenseRecOptions) (*AILicenseRecResult, *Response, error)

func (*CIService) AIObjectDetect added in v0.7.44

func (s *CIService) AIObjectDetect(ctx context.Context, obj string, opt *AIObjectDetectOptions) (*AIObjectDetectResult, *Response, error)

func (*CIService) AIPicMatting added in v0.7.53

func (s *CIService) AIPicMatting(ctx context.Context, ObjectKey string, opt *AIPicMattingOptions) (*Response, error)

通用抠图 https://cloud.tencent.com/document/product/460/106750

func (*CIService) AIPortraitMatting added in v0.7.53

func (s *CIService) AIPortraitMatting(ctx context.Context, ObjectKey string, opt *AIPortraitMattingOptions) (*Response, error)

人像抠图 https://cloud.tencent.com/document/product/460/106751

func (*CIService) AIRecognition added in v0.7.55

func (s *CIService) AIRecognition(ctx context.Context, ObjectKey string, opt *AIRecognitionOptions) (*AIRecognitionResult, *Response, error)

多AI接口合一

func (*CIService) ActiveMediaWorkflow added in v0.7.40

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

UpdateMediaWorkflow TODO

func (*CIService) AddImage added in v0.7.42

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

AddImage 添加图库图片

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) CIDocCompare added in v0.7.46

DocCompare TODO

func (*CIService) CancelInventoryTriggerJob added in v0.7.35

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

CancelInventoryTriggerJob TODO

func (*CIService) CancelJob added in v0.7.42

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

CreateJobsOptions 提交任务的公用方法

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) CosImageInspect added in v0.7.44

ImageInspect 黑产检查同步接口

func (*CIService) CreateAIJobs added in v0.7.39

CreateAIJobs TODO

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) CreateFileProcessJob added in v0.7.41

func (s *CIService) CreateFileProcessJob(ctx context.Context, opt *FileProcessJobOptions) (*FileProcessJobResult, *Response, error)

提交哈希值计算任务 https://cloud.tencent.com/document/product/436/83108 提交文件解压任务 https://cloud.tencent.com/document/product/436/83110 提交多文件打包压缩任务 https://cloud.tencent.com/document/product/436/83112

func (*CIService) CreateGeneratePlayListJob added in v0.7.48

func (s *CIService) CreateGeneratePlayListJob(ctx context.Context, opt *CreateGeneratePlayListJobOptions) (*CreateJobsResult, *Response, error)

func (*CIService) CreateImageSearchBucket added in v0.7.42

func (s *CIService) CreateImageSearchBucket(ctx context.Context, opt *CreateImageSearchBucketOptions) (*Response, error)

CreateImageSearchBucket 开通以图搜图

func (*CIService) CreateInventoryTriggerJob added in v0.7.35

CreateInventoryTriggerJob TODO

func (*CIService) CreateJob added in v0.7.42

CreateJobsOptions 提交任务的公用方法

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) CreateMediaPlayKey added in v0.7.48

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

func (*CIService) CreateMediaProcessBucket added in v0.7.48

func (*CIService) CreateMediaSmartCoverTemplate added in v0.7.39

func (s *CIService) CreateMediaSmartCoverTemplate(ctx context.Context, opt *CreateMediaSmartCoverTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaTtsTemplate 创建智能封面模板

func (*CIService) CreateMediaSnapshotTemplate added in v0.7.35

CreateMediaSnapshotTemplate 创建截图模板

func (*CIService) CreateMediaSpeechRecognitionTemplate added in v0.7.39

func (s *CIService) CreateMediaSpeechRecognitionTemplate(ctx context.Context, opt *CreateMediaSpeechRecognitionTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaTtsTemplate 创建语音识别模板

func (*CIService) CreateMediaSuperResolutionTemplate added in v0.7.35

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

CreateMediaSuperResolutionTemplate 创建超级分辨率模板

func (*CIService) CreateMediaTranscodeProTemplate added in v0.7.39

func (s *CIService) CreateMediaTranscodeProTemplate(ctx context.Context, opt *CreateMediaTranscodeProTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateMediaTranscodeProTemplate 创建广电转码模板

func (*CIService) CreateMediaTranscodeTemplate added in v0.7.35

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

CreateMediaTranscodeTemplate Options 创建转码模板

func (*CIService) CreateMediaTtsTemplate added in v0.7.39

CreateMediaTtsTemplate 创建语音合成模板

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) CreateNoiseReductionTemplate added in v0.7.42

func (s *CIService) CreateNoiseReductionTemplate(ctx context.Context, opt *CreateNoiseReductionTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateNoiseReductionTemplate 创建音频降噪模板

func (*CIService) CreateOCRTemplate added in v0.7.46

CreateOCRTemplate 创建OCR模板

func (*CIService) CreatePicProcessJobs added in v0.7.35

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

CreatePicProcessJobs TODO

func (*CIService) CreatePlayKey added in v0.7.46

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

func (*CIService) CreateVideoEnhanceTemplate added in v0.7.42

CreateVideoEnhanceTemplate 创建画质增强模板

func (*CIService) CreateVideoTargetRecTemplate added in v0.7.42

func (s *CIService) CreateVideoTargetRecTemplate(ctx context.Context, opt *CreateVideoTargetRecTemplateOptions) (*CreateMediaTemplateResult, *Response, error)

CreateVideoTargetRecTemplate 创建移动物体检测模板

func (*CIService) DelImage added in v0.7.42

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

DelImage 删除图库图片

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) DeleteImageSlim added in v0.7.55

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

关闭 极智压缩ImageSlim https://cloud.tencent.com/document/product/460/95044

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) DeleteTemplate added in v0.7.42

func (s *CIService) DeleteTemplate(ctx context.Context, tempalteId string) (*DeleteTemplateResult, *Response, error)

DeleteTemplate 删除模板的公用方法

func (*CIService) DescribeAIJob added in v0.7.39

func (s *CIService) DescribeAIJob(ctx context.Context, jobid string) (*DescribeAIJobResult, *Response, error)

DescribeAIJob TODO

func (*CIService) DescribeAIProcessBuckets added in v0.7.39

DescribeAIProcessBuckets TODO

func (*CIService) DescribeAIProcessQueues added in v0.7.39

DescribeAIProcessQueues TODO

func (*CIService) DescribeASRProcessBuckets added in v0.7.39

DescribeASRProcessBuckets TODO

func (*CIService) DescribeASRProcessQueues added in v0.7.39

DescribeASRQueues TODO

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) DescribeFileProcessBuckets added in v0.7.42

DescribeFileProcessBuckets TODO

func (*CIService) DescribeFileProcessJob added in v0.7.41

func (s *CIService) DescribeFileProcessJob(ctx context.Context, jobid string) (*FileProcessJobResult, *Response, error)

查询哈希值计算结果 https://cloud.tencent.com/document/product/436/83109 查询文件解压结果 https://cloud.tencent.com/document/product/436/83111 查询多文件打包压缩结果 https://cloud.tencent.com/document/product/436/83113

func (*CIService) DescribeFileProcessQueues added in v0.7.44

DescribeFileProcessQueues TODO

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) DescribeJob added in v0.7.42

func (s *CIService) DescribeJob(ctx context.Context, jobid string) (*DescribeJobsResult, *Response, error)

DescribeJobs 查询指定任务的公用方法

func (*CIService) DescribeJobs added in v0.7.42

DescribeJobs 查询任务列表的公用方法

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) DescribeMediaPlayKey added in v0.7.48

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

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) DescribePicProcessBuckets added in v0.7.39

DescribePicProcessBuckets 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) DescribeTemplate added in v0.7.42

DescribeTemplate 搜索模板的公用方法

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/80050

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) DetectPet added in v0.7.46

func (s *CIService) DetectPet(ctx context.Context, obj string, opt *PetDetectOption) (*PetDetectResult, *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) EffectPet added in v0.7.44

func (s *CIService) EffectPet(ctx context.Context, obj string) (*PetEffectResult, *Response, error)

func (*CIService) FaceEffect added in v0.7.36

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

func (*CIService) GenerateAVInfo added in v0.7.48

func (s *CIService) GenerateAVInfo(ctx context.Context, opt *GenerateAVInfoOptions) (*GetAVInfoResult, *Response, error)

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

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) GetAIEnhanceImage added in v0.7.42

func (s *CIService) GetAIEnhanceImage(ctx context.Context, name string) (*Response, error)

GetAIEnhanceImage https://cloud.tencent.com/document/product/460/83792

func (*CIService) GetAIEnhanceImageV2 added in v0.7.46

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

GetAIEnhanceImage https://cloud.tencent.com/document/product/460/83792

func (*CIService) GetAIImageColoring added in v0.7.42

func (s *CIService) GetAIImageColoring(ctx context.Context, name string) (*Response, error)

GetAIImageColoring https://https://cloud.tencent.com/document/product/460/83794

func (*CIService) GetAIImageColoringV2 added in v0.7.46

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

func (*CIService) GetAIImageCrop added in v0.7.42

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

GetAIImageCrop https://cloud.tencent.com/document/product/460/83791

func (*CIService) GetAISuperResolution added in v0.7.42

func (s *CIService) GetAISuperResolution(ctx context.Context, name string) (*Response, error)

GetAISuperResolution https://cloud.tencent.com/document/product/460/83793

func (*CIService) GetAISuperResolutionV2 added in v0.7.46

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

GetAISuperResolution https://cloud.tencent.com/document/product/460/83793

func (*CIService) GetActionSequence added in v0.7.36

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

func (*CIService) GetAssessQuality added in v0.7.42

func (s *CIService) GetAssessQuality(ctx context.Context, name string) (*AssessQualityResults, *Response, error)

GetAssessQuality https://cloud.tencent.com/document/product/460/63228

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) GetAutoTranslationBlock added in v0.7.42

GetAIImageCrop https://cloud.tencent.com/document/product/460/83547

func (*CIService) GetCIService added in v0.7.36

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

func (*CIService) GetDnaDb added in v0.7.43

func (s *CIService) GetDnaDb(ctx context.Context, opt *GetDnaDbOptions) (*GetDnaDbResult, *Response, error)

GetDnaDb 查询 DNA 库列表

func (*CIService) GetDnaDbFiles added in v0.7.43

GetDnaDb 查询 DNA 库列表

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) GetFileHash added in v0.7.41

func (s *CIService) GetFileHash(ctx context.Context, name string, opt *GetFileHashOptions) (*GetFileHashResult, *Response, error)

哈希值计算同步请求 https://cloud.tencent.com/document/product/436/83107

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) GetImageRepair added in v0.7.42

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

GetImageRepair https://cloud.tencent.com/document/product/460/79042

func (*CIService) GetImageSlim added in v0.7.55

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

查询 极智压缩ImageSlim https://cloud.tencent.com/document/product/460/95043

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) GetOriginImage added in v0.7.42

func (s *CIService) GetOriginImage(ctx context.Context, name string) (*Response, error)

GetOriginImage https://cloud.tencent.com/document/product/460/90744

func (*CIService) GetOriginProtect added in v0.7.36

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

func (*CIService) GetPlayKey added in v0.7.46

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

func (*CIService) GetPosterproductionTemplate added in v0.7.42

func (s *CIService) GetPosterproductionTemplate(ctx context.Context, tplId string) (*PosterproductionTemplateResult, *Response, error)

func (*CIService) GetPosterproductionTemplates added in v0.7.42

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) GetQRcodeV2 added in v0.7.46

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

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

func (s *CIService) GetRecognizeLogo(ctx context.Context, name string, opt *RecognizeLogoOptions) (*RecognizeLogoResults, *Response, error)

GetRecognizeLogo https://cloud.tencent.com/document/product/460/79736

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) GoodsMattingWithOpt added in v0.7.41

func (s *CIService) GoodsMattingWithOpt(ctx context.Context, key string, opt *GoodsMattingptions) (*Response, error)

GoodsMattingWithOpt 商品抠图

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) ImageQualityWithOpt added in v0.7.42

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

ImageQualityWithOpt 图片质量评估

func (*CIService) ImageRecognition added in v0.7.11

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

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

func (*CIService) ImageSearch added in v0.7.42

func (s *CIService) ImageSearch(ctx context.Context, name string, opt *ImageSearchOptions) (*ImageSearchResult, *Response, error)

ImageSearch 图片搜索接口

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) ModifyM3U8Token added in v0.7.42

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

ModifyM3U8Token TODO

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) PausedMediaWorkflow added in v0.7.40

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

UpdateMediaWorkflow TODO

func (*CIService) PicTag added in v0.7.36

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

func (*CIService) PostCISnapshot added in v0.7.48

func (s *CIService) PostCISnapshot(ctx context.Context, opt *PostSnapshotOptions) (*Response, error)

PostCISnapshot

func (*CIService) PostSnapshot added in v0.7.39

PostSnapshot https://cloud.tencent.com/document/product/460/73407 upload snapshot image to cos

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) PutImageSlim added in v0.7.55

func (s *CIService) PutImageSlim(ctx context.Context, opt *ImageSlimOptions) (*Response, error)

开通 极智压缩ImageSlim https://cloud.tencent.com/document/product/460/95042

func (*CIService) PutPosterproductionTemplate added in v0.7.42

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) TDCRefresh added in v0.7.42

func (s *CIService) TDCRefresh(ctx context.Context, name string) (*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) UpdateMediaPlayKey added in v0.7.48

func (s *CIService) UpdateMediaPlayKey(ctx context.Context, opt *UpdateMediaPlayKeyOptions) (*PlayKeyResult, *Response, error)

func (*CIService) UpdateMediaProcessQueue added in v0.7.21

UpdateMediaProcessQueue TODO

func (*CIService) UpdateMediaSmartCoverTemplate added in v0.7.39

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

UpdateMediaTtsTemplate 更新智能封面模板

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) UpdateMediaSpeechRecognitionTemplate added in v0.7.39

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

UpdateMediaTtsTemplate 更新语音识别模板

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) UpdateMediaTranscodeProTemplate added in v0.7.39

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

UpdateMediaTranscodeProTemplate 更新广电转码模板

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) UpdateMediaTtsTemplate added in v0.7.39

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

UpdateMediaTtsTemplate 更新语音合成模板

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

func (*CIService) UpdateNoiseReductionTemplate added in v0.7.42

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

UpdateNoiseReductionTemplate 更新音频降噪模板

func (*CIService) UpdateOCRTemplate added in v0.7.46

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

UpdateOCRTemplate 更新OCR模板

func (*CIService) UpdateVideoEnhanceTemplate added in v0.7.42

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

UpdateVideoEnhanceTemplate 更新画质增强模板

func (*CIService) UpdateVideoTargetRecTemplate added in v0.7.42

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

UpdateVideoTargetRecTemplate 更新移动物体检测模板

func (*CIService) ZipPreview added in v0.7.42

func (s *CIService) ZipPreview(ctx context.Context, name, uncompress_key string) (*ZipPreviewResult, *Response, error)

ZipPreview 压缩包预览

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 CarRecognition added in v0.7.42

type CarRecognition struct {
	Time    string                `xml:"Time,omitempty"`
	Url     string                `xml:"Url,omitempty"`
	CarInfo []*VideoTargetRecInfo `xml:"CarInfo,omitempty"`
}

CarRecognition TODO

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)

func SplitSizeIntoChunksToDownload added in v0.7.54

func SplitSizeIntoChunksToDownload(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
	MetaInsight *MetaInsightService

	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) CheckRetrieable added in v0.7.46

func (c *Client) CheckRetrieable(u *url.URL, resp *Response, err error, secondLast bool) (*url.URL, bool)

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,omitempty"`
	Contrast   string `xml:"Contrast,omitempty"`
	Correction string `xml:"Correction,omitempty"`
	Saturation string `xml:"Saturation,omitempty"`
}

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"`
	FragmentIndex string `xml:"FragmentIndex,omitempty"`
	Duration      string `xml:"Duration,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"`
	AudioMixArray   []AudioMix       `xml:"AudioMixArray,omitempty"`
	SceneChangeInfo *SceneChangeInfo `xml:"SceneChangeInfo,omitempty"`
	DirectConcat    string           `xml:"DirectConcat,omitempty"`
}

ConcatTemplate TODO

type Config added in v0.7.22

type Config struct {
	EnableCRC              bool
	RequestBodyClose       bool
	RetryOpt               RetryOptions
	ObjectKeySimplifyCheck bool
}

type Container added in v0.7.21

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

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 CosImageInspectOptions added in v0.7.44

type CosImageInspectOptions struct {
}

type CosImageInspectProcessResult added in v0.7.44

type CosImageInspectProcessResult struct {
	PicSize             int    `json:"picSize,omitempty"`
	PicType             string `json:"picType,omitempty"`
	Suspicious          bool   `json:"suspicious,omitempty"`
	SuspiciousBeginByte int    `json:"suspiciousBeginByte,omitempty"`
	SuspiciousEndByte   int    `json:"suspiciousEndByte,omitempty"`
	SuspiciousSize      int    `json:"suspiciousSize,omitempty"`
	SuspiciousType      string `json:"suspiciousType,omitempty"`
}

CosImageInspectProcessResult 黑产检测同步接口结果

func (*CosImageInspectProcessResult) Write added in v0.7.44

func (w *CosImageInspectProcessResult) Write(p []byte) (n int, err error)

Write 回包是json格式序列化

type CreateAIJobsOptions added in v0.7.39

type CreateAIJobsOptions CreateMediaJobsOptions

CreateAIJobsOptions TODO

type CreateAIJobsResult added in v0.7.39

type CreateAIJobsResult CreateMediaJobsResult

CreateAIJobsResult TODO

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"`
	QueueType           string                        `xml:"QueueType,omitempty"`
	CallBackFormat      string                        `xml:"CallBackFormat,omitempty"`
	CallBackType        string                        `xml:"CallBackType,omitempty"`
	CallBackMqConfig    *NotifyConfigCallBackMqConfig `xml:"CallBackMqConfig,omitempty"`
	CallBackKafkaConfig *KafkaConfig                  `xml:"CallBackKafkaConfig,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 CreateDatasetBindingOptions added in v0.7.47

type CreateDatasetBindingOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	URI         string      `json:"URI, omitempty" url:"-" `         // 资源标识字段,表示需要与数据集绑定的资源,当前仅支持COS存储桶的资源,字段规则:cos://<BucketName>/<Path>,其中BucketName表示COS存储桶名称,Path表示资源路径,例如:cos://examplebucket-1250000000/test/。
	Mode        int         `json:"Mode", omitempty" url:"-" `       // 建立绑定后,以何种方式进行文件索引特征的提取,有效值:0,表示仅对增量文件建立索引;1,表示在对增量文件建立索引的同时,也会对存储桶中存量文件建立索引,存量文件索引建立的时长与存量文件数有关;默认值为0。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type CreateDatasetBindingResult added in v0.7.47

type CreateDatasetBindingResult struct {
	RequestId string   `json:"RequestId"` // 请求ID
	Binding   *Binding `json:"Binding"`   // 绑定信息
}

type CreateDatasetOptions added in v0.7.51

type CreateDatasetOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。命名规则如下: 长度为1~32字符。 只能包含小写英文字母,数字,短划线(-)。 必须以英文字母和数字开头。
	Description string      `json:"Description, omitempty" url:"-" ` // 数据集描述信息。长度为1~256个英文或中文字符,默认值为空。
	TemplateId  string      `json:"TemplateId, omitempty" url:"-" `  // 指模板,在建立元数据索引时,后端将根据模板来决定收集哪些元数据。每个模板都包含一个或多个算子,不同的算子表示不同的元数据。目前支持的模板: Official:DefaultEmptyId:默认为空的模板,表示不进行元数据的采集。 Official:COSBasicMeta:基础信息模板,包含 COS 文件基础元信息算子,表示采集 COS 文件的名称、类型、ACL等基础元信息数据。 Official:FaceSearch:人脸检索模板,包含人脸检索、COS 文件基础元信息算子。Official:ImageSearch:图像检索模板,包含图像检索、COS 文件基础元信息算子。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type CreateDatasetResult added in v0.7.51

type CreateDatasetResult struct {
	RequestId string   `json:"RequestId"` // 请求ID
	Dataset   *Dataset `json:"Dataset"`   // 数据集信息
}

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 CreateFileMetaIndexOptions added in v0.7.47

type CreateFileMetaIndexOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	File        *File       `json:"File, omitempty" url:"-" `        // 用于建立索引的文件信息。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type CreateFileMetaIndexResult added in v0.7.47

type CreateFileMetaIndexResult struct {
	RequestId string `json:"RequestId"` // 请求ID
	EventId   string `json:"EventId"`   // 创建元数据索引的任务ID
}

type CreateGeneratePlayListJobOptions added in v0.7.48

type CreateGeneratePlayListJobOptions struct {
	XMLName             xml.Name                      `xml:"Request"`
	Tag                 string                        `xml:"Tag,omitempty"`
	Input               *JobInput                     `xml:"Input,omitempty"`
	Operation           *GeneratePlayListJobOperation `xml:"Operation,omitempty"`
	QueueId             string                        `xml:"QueueId,omitempty"`
	QueueType           string                        `xml:"QueueType,omitempty"`
	CallBackFormat      string                        `xml:"CallBackFormat,omitempty"`
	CallBackType        string                        `xml:"CallBackType,omitempty"`
	CallBack            string                        `xml:"CallBack,omitempty"`
	CallBackMqConfig    *NotifyConfigCallBackMqConfig `xml:"CallBackMqConfig,omitempty"`
	CallBackKafkaConfig *KafkaConfig                  `xml:"CallBackKafkaConfig,omitempty"`
}

type CreateImageSearchBucketOptions added in v0.7.42

type CreateImageSearchBucketOptions struct {
	XMLName     xml.Name `xml:"Request"`
	MaxCapacity string   `xml:"MaxCapacity,omitempty"`
	MaxQps      string   `xml:"MaxQps,omitempty"`
}

CreateImageSearchBucketOptions 开通以图搜图选项

type CreateInventoryTriggerJobOptions added in v0.7.35

type CreateInventoryTriggerJobOptions struct {
	XMLName   xml.Name                      `xml:"Request"`
	Name      string                        `xml:"Name,omitempty"`
	Type      string                        `xml:"Type,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 CreateJobsOptions added in v0.7.42

type CreateJobsOptions CreateMediaJobsOptions

CreateJobsOptions 提交任务的公用结构体

type CreateJobsResult added in v0.7.42

type CreateJobsResult CreateMediaJobsResult

CreateJobsOptions 任务结果的公用结构体

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"`
	QueueType           string                        `xml:"QueueType,omitempty"`
	CallBackFormat      string                        `xml:"CallBackFormat,omitempty"`
	CallBackType        string                        `xml:"CallBackType,omitempty"`
	CallBack            string                        `xml:"CallBack,omitempty"`
	CallBackMqConfig    *NotifyConfigCallBackMqConfig `xml:"CallBackMqConfig,omitempty"`
	CallBackKafkaConfig *KafkaConfig                  `xml:"CallBackKafkaConfig,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 CreateMediaProcessBucketOptions added in v0.7.48

type CreateMediaProcessBucketOptions struct {
}

type CreateMediaProcessBucketResult added in v0.7.48

type CreateMediaProcessBucketResult struct {
	XMLName     xml.Name           `xml:"Response"`
	RequestId   string             `xml:"RequestId,omitempty"`
	MediaBucket MediaProcessBucket `xml:"MediaBucket,omitempty"`
}

type CreateMediaSmartCoverTemplateOptions added in v0.7.39

type CreateMediaSmartCoverTemplateOptions struct {
	XMLName    xml.Name        `xml:"Request"`
	Tag        string          `xml:"Tag,omitempty"`
	Name       string          `xml:"Name,omitempty"`
	SmartCover *NodeSmartCover `xml:"SmartCover,omitempty" json:"SmartCover,omitempty"`
}

CreateMediaSmartcoverTemplateOptions 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 CreateMediaSpeechRecognitionTemplateOptions added in v0.7.39

type CreateMediaSpeechRecognitionTemplateOptions struct {
	XMLName           xml.Name           `xml:"Request"`
	Tag               string             `xml:"Tag,omitempty"`
	Name              string             `xml:"Name,omitempty"`
	SpeechRecognition *SpeechRecognition `xml:"SpeechRecognition,omitempty" json:"SpeechRecognition,omitempty"`
}

CreateMediaSpeechRecognitionTemplateOptions 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 CreateMediaTranscodeProTemplateOptions added in v0.7.39

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

CreateMediaTranscodeProTemplateOptions 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"`
	AudioMix      *AudioMix     `xml:"AudioMix,omitempty"`
	AudioMixArray []AudioMix    `xml:"AudioMixArray,omitempty"`
}

CreateMediaTranscodeTemplateOptions TODO

type CreateMediaTtsTemplateOptions added in v0.7.39

type CreateMediaTtsTemplateOptions struct {
	XMLName   xml.Name `xml:"Request"`
	Tag       string   `xml:"Tag,omitempty"`
	Name      string   `xml:"Name,omitempty"`
	Mode      string   `xml:"Mode,omitempty"`
	Codec     string   `xml:"Codec,omitempty"`
	VoiceType string   `xml:"VoiceType,omitempty"`
	Volume    string   `xml:"Volume,omitempty"`
	Speed     string   `xml:"Speed,omitempty"`
	Emotion   string   `xml:"Emotion,omitempty"`
}

CreateMediaTtsTemplateOptions 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"`
	Scene         string     `xml:"Scene,omitempty"`
	Container     *Container `xml:"Container,omitempty"`
	Video         *Video     `xml:"Video,omitempty"`
	Audio         *Audio     `xml:"Audio,omitempty"`
	AudioMix      *AudioMix  `xml:"AudioMix,omitempty"`
	AudioMixArray []AudioMix `xml:"AudioMixArray,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"`
	QueueType           string                        `xml:"QueueType,omitempty"`
	CallBackFormat      string                        `xml:"CallBackFormat,omitempty"`
	CallBackType        string                        `xml:"CallBackType,omitempty"`
	CallBack            string                        `xml:"CallBack,omitempty"`
	CallBackMqConfig    *NotifyConfigCallBackMqConfig `xml:"CallBackMqConfig,omitempty"`
	CallBackKafkaConfig *KafkaConfig                  `xml:"CallBackKafkaConfig,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 CreateNoiseReductionTemplateOptions added in v0.7.42

type CreateNoiseReductionTemplateOptions struct {
	XMLName        xml.Name        `xml:"Request"`
	Tag            string          `xml:"Tag,omitempty"`
	Name           string          `xml:"Name,omitempty"`
	NoiseReduction *NoiseReduction `xml:"NoiseReduction,omitempty" json:"NoiseReduction,omitempty"`
}

CreateNoiseReductionTemplateOptions TODO

type CreateOCRTemplateOptions added in v0.7.46

type CreateOCRTemplateOptions struct {
	XMLName  xml.Name          `xml:"Request"`
	Tag      string            `xml:"Tag,omitempty"`
	Name     string            `xml:"Name,omitempty"`
	ImageOCR *ImageOCRTemplate `xml:"ImageOCR,omitempty" json:"ImageOCR,omitempty"`
}

CreateOCRTemplateOptions 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"`
	QueueType           string                        `xml:"QueueType,omitempty"`
	CallBackFormat      string                        `xml:"CallBackFormat,omitempty"`
	CallBackType        string                        `xml:"CallBackType,omitempty"`
	CallBackMqConfig    *NotifyConfigCallBackMqConfig `xml:"CallBackMqConfig,omitempty"`
	CallBackKafkaConfig *KafkaConfig                  `xml:"CallBackKafkaConfig,omitempty"`
}

CreatePicJobsOptions TODO

type CreatePicJobsResult added in v0.7.35

type CreatePicJobsResult CreateMediaJobsResult

CreatePicJobsResult TODO

type CreateVideoEnhanceTemplateOptions added in v0.7.42

type CreateVideoEnhanceTemplateOptions struct {
	XMLName      xml.Name      `xml:"Request"`
	Tag          string        `xml:"Tag,omitempty"`
	Name         string        `xml:"Name,omitempty"`
	VideoEnhance *VideoEnhance `xml:"VideoEnhance,omitempty" json:"VideoEnhance,omitempty"`
}

CreateVideoEnhanceTemplateOptions TODO

type CreateVideoTargetRecTemplateOptions added in v0.7.42

type CreateVideoTargetRecTemplateOptions struct {
	XMLName        xml.Name        `xml:"Request"`
	Tag            string          `xml:"Tag,omitempty"`
	Name           string          `xml:"Name,omitempty"`
	VideoTargetRec *VideoTargetRec `xml:"VideoTargetRec,omitempty" json:"VideoTargetRec,omitempty"`
}

CreateVideoTargetRecTemplateOptions 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 CredentialCompleteResult added in v0.7.54

type CredentialCompleteResult struct {
	Response *CredentialResult `json:"Response"`
}

type CredentialError added in v0.7.54

type CredentialError struct {
	Code      string `json:"Code,omitempty"`
	Message   string `json:"Message,omitempty"`
	RequestId string `json:"RequestId,omitempty"`
}

func (*CredentialError) Error added in v0.7.54

func (e *CredentialError) Error() string

type CredentialIface added in v0.7.34

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

type CredentialPolicy added in v0.7.54

type CredentialPolicy struct {
	Version   string                      `json:"version,omitempty"`
	Statement []CredentialPolicyStatement `json:"statement,omitempty"`
}

type CredentialPolicyStatement added in v0.7.54

type CredentialPolicyStatement struct {
	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 CredentialResult added in v0.7.54

type CredentialResult struct {
	Credentials *Credentials     `json:"Credentials,omitempty"`
	ExpiredTime int64            `json:"ExpiredTime,omitempty"`
	RequestId   string           `json:"RequestId,omitempty"`
	Error       *CredentialError `json:"Error,omitempty"`
}

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 Credentials added in v0.7.54

type Credentials struct {
	TmpSecretID  string `json:"TmpSecretId,omitempty"`
	TmpSecretKey string `json:"TmpSecretKey,omitempty"`
	SessionToken string `json:"Token,omitempty"`
}

通过sts访问

type DNADbConfig added in v0.7.43

type DNADbConfig struct {
	BucketId    string `xml:"BucketId,omitempty"`
	Region      string `xml:"Region,omitempty"`
	DNADbId     string `xml:"DNADbId,omitempty"`
	DNADbName   string `xml:"DNADbName,omitempty"`
	Capacity    int    `xml:"Capacity,omitempty"`
	Description string `xml:"Description,omitempty"`
	UpdateTime  string `xml:"UpdateTime,omitempty"`
	CreateTime  string `xml:"CreateTime,omitempty"`
}

DNADbConfig DNA 库详情

type DNADbFiles added in v0.7.43

type DNADbFiles struct {
	BucketId   string `xml:"BucketId,omitempty"`
	Region     string `xml:"Region,omitempty"`
	DNADbId    string `xml:"DNADbId,omitempty"`
	VideoId    string `xml:"VideoId,omitempty"`
	Object     int    `xml:"Object,omitempty"`
	ETag       string `xml:"ETag,omitempty"`
	UpdateTime string `xml:"UpdateTime,omitempty"`
	CreateTime string `xml:"CreateTime,omitempty"`
}

DNADbFiles DNA 文件详情

type DataFrame added in v0.7.11

type DataFrame struct {
	ContentType         string
	ConsumedBytesLength int32
	LeftBytesLength     int32
}

type Dataset added in v0.7.47

type Dataset struct {
	TemplateId    string `json:"TemplateId"`    //    模板ID。
	Description   string `json:"Description"`   //    数据集描述信息
	CreateTime    string `json:"CreateTime"`    //  数据集创建时间的时间戳,格式为RFC3339Nano
	UpdateTime    string `json:"UpdateTime"`    //  数据集修改时间的时间戳,格式为RFC3339Nano创建数据集后,如果未更新过数据集,则数据集修改时间的时间戳和数据集创建时间的时间戳相同
	BindCount     int    `json:"BindCount"`     //  数据集当前绑定的COS Bucket数量
	FileCount     int    `json:"FileCount"`     //  数据集当前文件数量
	TotalFileSize int    `json:"TotalFileSize"` //  数据集中当前文件总大小,单位为字节
	DatasetName   string `json:"DatasetName"`   // 数据集名称
}

type DatasetFaceSearchOptions added in v0.7.51

type DatasetFaceSearchOptions struct {
	DatasetName    string      `json:"DatasetName, omitempty" url:"-" `    // 数据集名称,同一个账户下唯一。
	URI            string      `json:"URI, omitempty" url:"-" `            // 资源标识字段,表示需要建立索引的文件地址。
	MaxFaceNum     int         `json:"MaxFaceNum, omitempty" url:"-" `     // 输入图片中检索的人脸数量,默认值为1(传0或不传采用默认值),最大值为10。
	Limit          int         `json:"Limit, omitempty" url:"-" `          // 检索的每张人脸返回相关人脸数量,默认值为10,最大值为100。
	MatchThreshold int         `json:"MatchThreshold, omitempty" url:"-" ` // 出参 Score 中,只有超过 MatchThreshold 值的结果才会返回。范围:1-100,默认值为0,推荐值为80。
	OptHeaders     *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DatasetFaceSearchResult added in v0.7.51

type DatasetFaceSearchResult struct {
	FaceResult []*FaceResult `json:"FaceResult"` // 人脸检索识别结果信息列表。
	RequestId  string        `json:"RequestId"`  // 请求 ID。
}

type DatasetSimpleQueryOptions added in v0.7.47

type DatasetSimpleQueryOptions struct {
	DatasetName  string          `json:"DatasetName, omitempty" url:"-" `  // 数据集名称,同一个账户下唯一。
	Query        *Query          `json:"Query, omitempty" url:"-" `        // 简单查询参数条件,可自嵌套。
	MaxResults   int             `json:"MaxResults, omitempty" url:"-" `   // 返回文件元数据的最大个数,取值范围为0200。 使用聚合参数时,该值表示返回分组的最大个数,取值范围为02000。 不设置此参数或者设置为0时,则取默认值100。
	NextToken    string          `json:"NextToken, omitempty" url:"-" `    // 当绑定关系总数大于设置的MaxResults时,用于翻页的token。从NextToken开始按字典序返回绑定关系信息列表。第一次调用此接口时,设置为空。
	Sort         string          `json:"Sort, omitempty" url:"-" `         // 排序字段列表。请参考字段和操作符的支持列表。 多个排序字段可使用半角逗号(,)分隔,例如:Size,Filename。 最多可设置5个排序字段。 排序字段顺序即为排序优先级顺序。
	Order        string          `json:"Order, omitempty" url:"-" `        // 排序字段的排序方式。取值如下: asc:升序; desc(默认):降序。 多个排序方式可使用半角逗号(,)分隔,例如:asc,desc。 排序方式不可多于排序字段,即参数Order的元素数量需小于等于参数Sort的元素数量。例如Sort取值为Size,Filename时,Order可取值为asc,desc或asc。 排序方式少于排序字段时,未排序的字段默认取值asc。例如Sort取值为Size,Filename,Order取值为asc时,Filename默认排序方式为asc,即升序排列
	Aggregations []*Aggregations `json:"Aggregations, omitempty" url:"-" ` // 聚合字段信息列表。 当您使用聚合查询时,仅返回聚合结果,不再返回匹配到的元信息列表。
	WithFields   []string        `json:"WithFields, omitempty" url:"-" `   // 仅返回特定字段的值,而不是全部已有的元信息字段。可用于降低返回的结构体大小。不填或留空则返回所有字段。
	OptHeaders   *OptHeaders     `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DatasetSimpleQueryResult added in v0.7.47

type DatasetSimpleQueryResult struct {
	RequestId    string                `json:"RequestId"`    // 请求ID
	Files        []*FileResult         `json:"Files"`        // 文件信息列表。仅在请求的Aggregations为空时返回。
	Aggregations []*AggregationsResult `json:"Aggregations"` // 聚合字段信息列表。仅在请求的Aggregations不为空时返回。
	NextToken    string                `json:"NextToken"`    // 翻页标记。当文件总数大于设置的MaxResults时,用于翻页的Token。符合条件的文件信息未全部返回时,此参数才有值。下一次列出文件信息时将此值作为NextToken传入,将后续的文件信息返回。
}

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 DelImageOptions added in v0.7.42

type DelImageOptions struct {
	XMLName  xml.Name `xml:"Request"`
	EntityId string   `xml:"EntityId,omitempty"`
}

DelImageOptions 删除图库图片选项

type DeleteDatasetBindingOptions added in v0.7.47

type DeleteDatasetBindingOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	URI         string      `json:"URI, omitempty" url:"-" `         // 资源标识字段,表示需要与数据集绑定的资源,当前仅支持COS存储桶,字段规则:cos://<BucketName>,其中BucketName表示COS存储桶名称,例如:cos://examplebucket-1250000000
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DeleteDatasetBindingResult added in v0.7.47

type DeleteDatasetBindingResult struct {
	RequestId string `json:"RequestId"` // 请求ID
}

type DeleteDatasetOptions added in v0.7.47

type DeleteDatasetOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DeleteDatasetResult added in v0.7.47

type DeleteDatasetResult struct {
	RequestId string   `json:"RequestId"` // 请求ID
	Dataset   *Dataset `json:"Dataset"`   // 数据集信息
}

type DeleteFileMetaIndexOptions added in v0.7.47

type DeleteFileMetaIndexOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	URI         string      `json:"URI, omitempty" url:"-" `         // 资源标识字段,表示需要建立索引的文件地址。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DeleteFileMetaIndexResult added in v0.7.47

type DeleteFileMetaIndexResult struct {
	RequestId string `json:"RequestId"` // 请求ID
}

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 DeleteTemplateResult added in v0.7.42

type DeleteTemplateResult DeleteMediaTemplateResult

DescribeJobsResult 删除模板结果的公用结构体

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 DescribeAIJobResult added in v0.7.39

type DescribeAIJobResult DescribeMediaProcessJobResult

DescribeAIJobResult TODO

type DescribeAIProcessBucketsOptions added in v0.7.39

type DescribeAIProcessBucketsOptions DescribeMediaProcessBucketsOptions

DescribeAIProcessBucketsOptions TODO

type DescribeAIProcessBucketsResult added in v0.7.39

type DescribeAIProcessBucketsResult 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:"AiBucketList,omitempty"`
}

DescribeMediaProcessBucketsResult TODO

type DescribeASRProcessBucketsOptions added in v0.7.39

type DescribeASRProcessBucketsOptions DescribeMediaProcessBucketsOptions

DescribeASRProcessBucketsOptions TODO

type DescribeASRProcessBucketsResult added in v0.7.39

type DescribeASRProcessBucketsResult 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:"AsrBucketList,omitempty"`
}

DescribeMediaProcessBucketsResult TODO

type DescribeDatasetBindingOptions added in v0.7.47

type DescribeDatasetBindingOptions struct {
	Datasetname string      `url:"datasetname, omitempty" json:"-"` // 数据集名称,同一个账户下唯一。
	Uri         string      `url:"uri, omitempty" json:"-"`         // 资源标识字段,表示需要与数据集绑定的资源,当前仅支持COS存储桶,字段规则:cos://,其中BucketName表示COS存储桶名称,例如(需要进行urlencode):cos%3A%2F%2Fexample-125000
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DescribeDatasetBindingResult added in v0.7.47

type DescribeDatasetBindingResult struct {
	RequestId string   `json:"RequestId"` // 请求ID
	Binding   *Binding `json:"Binding"`   // 数据集和 COS Bucket 绑定关系信息的列表。
}

type DescribeDatasetBindingsOptions added in v0.7.47

type DescribeDatasetBindingsOptions struct {
	Datasetname string      `url:"datasetname, omitempty" json:"-"` // 数据集名称,同一个账户下唯一。
	Maxresults  int         `url:"maxresults, omitempty" json:"-"`  // 返回绑定关系的最大个数,取值范围为0~200。不设置此参数或者设置为0时,则默认值为100。
	Nexttoken   string      `url:"nexttoken, omitempty" json:"-"`   // 当绑定关系总数大于设置的MaxResults时,用于翻页的token。从NextToken开始按字典序返回绑定关系信息列表。第一次调用此接口时,设置为空。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DescribeDatasetBindingsResult added in v0.7.47

type DescribeDatasetBindingsResult struct {
	RequestId string     `json:"RequestId"` // 请求ID
	NextToken string     `json:"NextToken"` // 当绑定关系总数大于设置的MaxResults时,用于翻页的token。下一次列出绑定关系信息时以此值为NextToken,将未返回的结果返回。当绑定关系未全部返回时,此参数才有值。
	Bindings  []*Binding `json:"Bindings"`  // 数据集和 COS Bucket 绑定关系信息的列表。
}

type DescribeDatasetOptions added in v0.7.47

type DescribeDatasetOptions struct {
	Datasetname string      `url:"datasetname, omitempty" json:"-"` // 数据集名称,同一个账户下唯一。
	Statistics  bool        `url:"statistics, omitempty" json:"-"`  // 是否需要实时统计数据集中文件相关信息。有效值: false:不统计,返回的文件的总大小、数量信息可能不正确也可能都为0。 true:需要统计,返回数据集中当前的文件的总大小、数量信息。 默认值为false。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DescribeDatasetResult added in v0.7.47

type DescribeDatasetResult struct {
	RequestId string   `json:"RequestId"` // 请求ID
	Dataset   *Dataset `json:"Dataset"`   // 数据集信息
}

type DescribeDatasetsOptions added in v0.7.47

type DescribeDatasetsOptions struct {
	Maxresults int         `url:"maxresults, omitempty" json:"-"` // 本次返回数据集的最大个数,取值范围为0~200。不设置此参数或者设置为0时,则默认值为100。
	Nexttoken  string      `url:"nexttoken, omitempty" json:"-"`  // 翻页标记。当文件总数大于设置的MaxResults时,用于翻页的Token。从NextToken开始按字典序返回文件信息列表。填写上次查询返回的值,首次使用时填写为空。
	Prefix     string      `url:"prefix, omitempty" json:"-"`     // 数据集名称前缀。
	OptHeaders *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DescribeDatasetsResult added in v0.7.47

type DescribeDatasetsResult struct {
	RequestId string     `json:"RequestId"` // 请求ID
	Datasets  []*Dataset `json:"Datasets"`  // 数据集信息
	NextToken string     `json:"NextToken"` // 翻页标记。当任务列表总数大于设置的MaxResults时,用于翻页的Token。符合条件的任务列表未全部返回时,此参数才有值。下一次列出任务列表时将此值作为NextToken传入,将后续的任务列表返回。
}

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 DescribeFielProcessQueuesOptions added in v0.7.44

type DescribeFielProcessQueuesOptions DescribeMediaProcessQueuesOptions

type DescribeFileMetaIndexOptions added in v0.7.47

type DescribeFileMetaIndexOptions struct {
	Datasetname string      `url:"datasetname, omitempty" json:"-"` // 数据集名称,同一个账户下唯一。
	Uri         string      `url:"uri, omitempty" json:"-"`         // 资源标识字段,表示需要建立索引的文件地址,当前仅支持COS上的文件,字段规则:cos:///,其中BucketName表示COS存储桶名称,ObjectKey表示文件完整路径,例如:cos://examplebucket-1250000000/test1/img.jpg。 注意: 1、仅支持本账号内的COS文件 2、不支持HTTP开头的地址 3、需UrlEncode
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type DescribeFileMetaIndexResult added in v0.7.47

type DescribeFileMetaIndexResult struct {
	RequestId string         `json:"RequestId"` // 请求ID。
	Files     []*FilesDetail `json:"Files"`     // 文件元数据的结构体。实际返回的数据可能并不包含该结构体的所有属性,这和您索引该文件时选用的工作流模板配置以及文件本身的内容有关。
}

type DescribeFileProcessBucketsOptions added in v0.7.42

type DescribeFileProcessBucketsOptions DescribeMediaProcessBucketsOptions

DescribeFileProcessBucketsOptions TODO

type DescribeFileProcessBucketsResult added in v0.7.42

type DescribeFileProcessBucketsResult 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"`
	FileBucketList []MediaProcessBucket `xml:"FileBucketList,omitempty"`
}

DescribeFileProcessBucketsResult TODO

type DescribeFileProcessQueuesResult added in v0.7.44

type DescribeFileProcessQueuesResult DescribeMediaProcessQueuesResult

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"`
	Type              string `url:"type,omitempty"`
	OrderByTime       string `url:"orderByTime,omitempty"`
	States            string `url:"states,omitempty"`
	StartCreationTime string `url:"startCreationTime,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 DescribeJobsOptions added in v0.7.42

type DescribeJobsOptions DescribeMediaJobsOptions

DescribeJobsOptions 查询任务的公用选项

type DescribeJobsResult added in v0.7.42

type DescribeJobsResult DescribeMediaJobsResult

DescribeJobsResult 查询任务结果的公用结构体

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"`
	WorkflowId            string `url:"workflowId,omitempty"`
	InventoryTriggerJobId string `url:"inventoryTriggerJobId,omitempty"`
	InputObject           string `url:"inputObject,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"`
	Category   string `url:"category,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 DescribePicProcessBucketsOptions added in v0.7.39

type DescribePicProcessBucketsOptions DescribeMediaProcessBucketsOptions

DescribePicProcessBucketsOptions TODO

type DescribePicProcessBucketsResult added in v0.7.39

type DescribePicProcessBucketsResult 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:"PicBucketList,omitempty"`
}

DescribeMediaProcessBucketsResult 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 DescribePosterproductionTemplateOptions added in v0.7.42

type DescribePosterproductionTemplateOptions struct {
	PageNumber  int    `url:"pageNumber,omitempty"`
	PageSize    int    `url:"pageSize,omitempty"`
	CategoryIds string `url:"categoryIds,omitempty"`
	Type        string `url:"type,omitempty"`
}

DescribePosterproductionTemplateOptions TODO

type DescribeTemplateOptions added in v0.7.42

type DescribeTemplateOptions DescribeMediaTemplateOptions

DescribeJobsOptions 查询模板的公用选项

type DescribeTemplateResult added in v0.7.42

type DescribeTemplateResult DescribeMediaTemplateResult

DescribeJobsResult 查询模板结果的公用结构体

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"`
	JobId             string `url:"jobId,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 DnaConfig added in v0.7.43

type DnaConfig struct {
	RuleType string `xml:"RuleType,omitempty"`
	DnaDbId  string `xml:"DnaDbId,omitempty"`
	VideoId  string `xml:"VideoId,omitempty"`
}

DnaConfig DNA任务配置

type DnaResult added in v0.7.43

type DnaResult struct {
	VideoId   string              `xml:"VideoId,omitempty"`
	Duration  int                 `xml:"Duration,omitempty"`
	Detection *DnaResultDetection `xml:"Detection,omitempty"`
}

DnaResult DNA任务结果

type DnaResultAudio added in v0.7.43

type DnaResultAudio struct {
	Similar int `xml:"Similar,omitempty"`
}

DnaResultAudio DNA任务结果

type DnaResultDetection added in v0.7.43

type DnaResultDetection struct {
	VideoId         string                 `xml:"VideoId,omitempty"`
	Similar         int                    `xml:"Similar,omitempty"`
	SimilarDuration int                    `xml:"SimilarDuration,omitempty"`
	Duration        int                    `xml:"Duration,omitempty"`
	MatchDetail     []DnaResultMatchDetail `xml:"MatchDetail,omitempty"`
	Audio           DnaResultAudio         `xml:"Audio,omitempty"`
}

DnaResultDetection DNA任务结果

type DnaResultMatchDetail added in v0.7.43

type DnaResultMatchDetail struct {
	MatchStartTime int `xml:"MatchStartTime,omitempty"`
	MatchEndTime   int `xml:"MatchEndTime,omitempty"`
	SrcStartTime   int `xml:"SrcStartTime,omitempty"`
	SrcEndTime     int `xml:"SrcEndTime,omitempty"`
}

DnaResultDetection DNA任务结果

type DocPreviewHTMLOptions added in v0.7.37

type DocPreviewHTMLOptions struct {
	DstType        string      `url:"dstType,omitempty"`
	SrcType        string      `url:"srcType,omitempty"`
	WebofficeUrl   string      `url:"weboffice_url,omitempty"`
	TokenUid       string      `url:"tokenuid,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"`
	ExcelRow            int    `url:"excelRow,omitempty"`
	ExcelCol            int    `url:"excelCol,omitempty"`
	ExcelPaperSize      int    `url:"excelPaperSize,omitempty"`
	TxtPagination       bool   `url:"txtPagination,omitempty"`
	Scale               int    `url:"scale,omitempty"`
	ImageDpi            int    `url:"imageDpi,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"`
	PaperSize      int    `xml:"PaperSize,omitempty"`
	ImageDpi       int    `xml:"ImageDpi,omitempty"`
	PicPagination  int    `xml:"PicPagination,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"`
	CallbackType int         `xml:",omitempty"`
	Freeze       *FreezeConf `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"`
	ListInfo     *UserListInfo            `xml:",omitempty"`
	ForbidState  int                      `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 Encryption added in v0.7.42

type Encryption struct {
	Algorithm string `xml:",omitempty"`
	Key       string `xml:",omitempty"`
	IV        string `xml:",omitempty"`
	KeyId     string `xml:",omitempty"`
	KeyType   int    `xml:",omitempty"`
}

Encryption is user defined information

type ErrorDetail added in v0.7.53

type ErrorDetail struct {
	ErrorCount string   `xml:",omitempty"`
	ErrorFile  []string `xml:",omitempty"`
}

type ErrorDocument

type ErrorDocument struct {
	Key                string `xml:"Key,omitempty"`
	OriginalHttpStatus string `xml:"OriginalHttpStatus,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"`
	Video           string   `xml:"Video,omitempty"`
	Audio           string   `xml:"Audio,omitempty"`
	Image           string   `xml:"Image,omitempty"`
	ContentType     string   `xml:"ContentType,omitempty"`
	Custom          string   `xml:"Custom,omitempty"`
	CustomExts      string   `xml:"CustomExts,omitempty"`
	AllFile         string   `xml:"AllFile,omitempty"`
	AutoContentType []string `xml:"AutoContentType,omitempty"`
}

ExtFilter TODO

type ExtractDigitalWatermark added in v0.7.35

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

ExtractDigitalWatermark TODO

type FaceBoundary added in v0.7.51

type FaceBoundary struct {
	Height int `json:"Height"` // 人脸高度。
	Width  int `json:"Width"`  // 人脸宽度。
	Left   int `json:"Left"`   // 人脸框左上角横坐标。
	Top    int `json:"Top"`    // 人脸框左上角纵坐标。
}

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 FaceInfosInMeta added in v0.7.51

type FaceInfosInMeta struct {
	PersonId     string        `json:"PersonId"`     // 自定义人物ID。
	FaceBoundary *FaceBoundary `json:"FaceBoundary"` // 相关人脸框位置。
	FaceId       string        `json:"FaceId"`       // 人脸ID。
	Score        int           `json:"Score"`        // 相关人脸匹配得分。
	URI          string        `json:"URI"`          // 资源标识字段,表示需要建立索引的文件地址。
}

type FaceRecognition added in v0.7.55

type FaceRecognition struct {
	Time     string                `xml:"Time,omitempty"`
	Url      string                `xml:"Url,omitempty"`
	FaceInfo []*VideoTargetRecInfo `xml:"FaceInfo,omitempty"`
}

FaceRecognition TODO

type FaceResult added in v0.7.51

type FaceResult struct {
	FaceInfos         []*FaceInfosInMeta `json:"FaceInfos"`         // 相关人脸信息列表。
	InputFaceBoundary *FaceBoundary      `json:"InputFaceBoundary"` // 输入图片的人脸框位置。
}

type File added in v0.7.47

type File struct {
	CustomId     string             `json:"CustomId, omitempty" url:"-" `     // 自定义ID。该文件索引到数据集后,作为该行元数据的属性存储,用于和您的业务系统进行关联、对应。您可以根据业务需求传入该值,例如将某个URI关联到您系统内的某个ID。推荐传入全局唯一的值。在查询时,该字段支持前缀查询和排序,详情请见字段和操作符的支持列表。
	CustomLabels *map[string]string `json:"CustomLabels, omitempty" url:"-" ` // 自定义标签。您可以根据业务需要自定义添加标签键值对信息,用于在查询时可以据此为筛选项进行检索,详情请见字段和操作符的支持列表。
	Key          string             `json:"Key, omitempty" url:"-" `          // 自定义标签键
	Value        string             `json:"Value, omitempty" url:"-" `        // 自定义标签值
	MediaType    string             `json:"MediaType, omitempty" url:"-" `    // 可选项,文件媒体类型,枚举值: image:图片。  other:其他。 document:文档。 archive:压缩包。 video:视频。  audio:音频。
	ContentType  string             `json:"ContentType, omitempty" url:"-" `  // 可选项,文件内容类型(MIME Type),如image/jpeg。
	URI          string             `json:"URI, omitempty" url:"-" `          // 资源标识字段,表示需要建立索引的文件地址,当前仅支持COS上的文件,字段规则:cos:///,其中BucketName表示COS存储桶名称,ObjectKey表示文件完整路径,例如:cos://examplebucket-1250000000/test1/img.jpg。 注意: 1、仅支持本账号内的COS文件 2、不支持HTTP开头的地址
	MaxFaceNum   int                `json:"MaxFaceNum, omitempty" url:"-" `   // 输入图片中检索的人脸数量,默认值为20,最大值为20。(仅当数据集模板 ID 为 Official:FaceSearch 有效)。
	Persons      []*Persons         `json:"Persons, omitempty" url:"-" `      // 自定义人物属性(仅当数据集模板 ID 为 Official:FaceSearch 有效)。
	OptHeaders   *OptHeaders        `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type FileCompressConfig added in v0.7.41

type FileCompressConfig struct {
	Flatten     string      `xml:",omitempty"`
	Format      string      `xml:",omitempty"`
	UrlList     string      `xml:",omitempty"`
	Prefix      string      `xml:",omitempty"`
	Key         []string    `xml:",omitempty"`
	Type        string      `xml:",omitempty"`
	CompressKey string      `xml:",omitempty"`
	IgnoreError string      `xml:",omitempty"`
	KeyConfig   []KeyConfig `xml:",omitempty"`
}

type FileCompressResult added in v0.7.41

type FileCompressResult struct {
	Region            string       `xml:",omitempty"`
	Bucket            string       `xml:",omitempty"`
	Object            string       `xml:",omitempty"`
	CompressFileCount int          `xml:",omitempty"`
	ErrorCount        int          `xml:",omitempty"`
	ErrorDetail       *ErrorDetail `xml:",omitempty"`
}

type FileHashCodeConfig added in v0.7.41

type FileHashCodeConfig struct {
	Type        string `xml:",omitempty"`
	AddToHeader bool   `xml:",omitempty"`
}

type FileHashCodeResult added in v0.7.41

type FileHashCodeResult struct {
	MD5          string `xml:",omitempty"`
	SHA1         string `xml:",omitempty"`
	SHA256       string `xml:",omitempty"`
	FileSize     int    `xml:",omitempty"`
	LastModified string `xml:",omitempty"`
	Etag         string `xml:",omitempty"`
}

type FileProcessInput added in v0.7.41

type FileProcessInput FileCompressResult

type FileProcessJobOperation added in v0.7.41

type FileProcessJobOperation struct {
	FileHashCodeConfig   *FileHashCodeConfig   `xml:",omitempty"`
	FileHashCodeResult   *FileHashCodeResult   `xml:",omitempty"`
	FileUncompressConfig *FileUncompressConfig `xml:",omitempty"`
	FileUncompressResult *FileUncompressResult `xml:",omitempty"`
	FileCompressConfig   *FileCompressConfig   `xml:",omitempty"`
	FileCompressResult   *FileCompressResult   `xml:",omitempty"`
	Output               *FileProcessOutput    `xml:",omitempty"`
	UserData             string                `xml:",omitempty"`
}

type FileProcessJobOptions added in v0.7.41

type FileProcessJobOptions struct {
	XMLName          xml.Name                      `xml:"Request"`
	Tag              string                        `xml:",omitempty"`
	Input            *FileProcessInput             `xml:",omitempty"`
	Operation        *FileProcessJobOperation      `xml:",omitempty"`
	QueueId          string                        `xml:",omitempty"`
	CallBackFormat   string                        `xml:",omitempty"`
	CallBackType     string                        `xml:",omitempty"`
	CallBack         string                        `xml:",omitempty"`
	CallBackMqConfig *NotifyConfigCallBackMqConfig `xml:",omitempty"`
}

type FileProcessJobResult added in v0.7.41

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

type FileProcessJobsDetail added in v0.7.41

type FileProcessJobsDetail struct {
	Code         string                   `xml:",omitempty"`
	Message      string                   `xml:",omitempty"`
	JobId        string                   `xml:",omitempty"`
	Tag          string                   `xml:",omitempty"`
	State        string                   `xml:",omitempty"`
	CreationTime string                   `xml:",omitempty"`
	StartTime    string                   `xml:",omitempty"`
	EndTime      string                   `xml:",omitempty"`
	QueueId      string                   `xml:",omitempty"`
	Progress     int                      `xml:",omitempty"`
	Input        *FileProcessInput        `xml:",omitempty"`
	Operation    *FileProcessJobOperation `xml:",omitempty"`
}

type FileProcessOutput added in v0.7.41

type FileProcessOutput FileCompressResult

type FileResult added in v0.7.51

type FileResult struct {
	ObjectId             string             `json:"ObjectId"`             // 对象唯一ID。
	CreateTime           string             `json:"CreateTime"`           //  元数据创建时间的时间戳,格式为RFC3339Nano
	UpdateTime           string             `json:"UpdateTime"`           //  元数据修改时间的时间戳,格式为RFC3339Nano创建元数据后,如果未更新过元数据,则元数据修改时间的时间戳和元数据创建时间的时间戳相同
	URI                  string             `json:"URI"`                  //   资源标识字段,表示需要建立索引的文件地址
	Filename             string             `json:"Filename"`             //   文件路径
	MediaType            string             `json:"MediaType"`            //    文件媒体类型。 枚举值:image:图片。other:其他。document:文档。archive:压缩包。audio:音频。video:视频。
	ContentType          string             `json:"ContentType"`          //   文件内容类型(MIME Type)。
	COSStorageClass      string             `json:"COSStorageClass"`      //   文件存储空间类型。
	COSCRC64             string             `json:"COSCRC64"`             //    文件CRC64值。
	Size                 int                `json:"Size"`                 //    文件大小,单位为字节。
	CacheControl         string             `json:"CacheControl"`         //    指定Object被下载时网页的缓存行为。该字段需要设置COS Object HTTP属性Cache-Control。
	ContentDisposition   string             `json:"ContentDisposition"`   //    指定Object被下载时的名称。需要设置COS Object HTTP属性Content-Disposition。
	ContentEncoding      string             `json:"ContentEncoding"`      //    指定该Object被下载时的内容编码格式。需要设置COS Object HTTP属性Content-Encoding。
	ContentLanguage      string             `json:"ContentLanguage"`      //    Object内容使用的语言。需要设置COS Object HTTP属性Content-Language。
	ServerSideEncryption string             `json:"ServerSideEncryption"` //    加密算法,需要设置x-cos-server-side-encryption。
	ETag                 string             `json:"ETag"`                 //    Object生成时会创建相应的ETag ,ETag用于标识一个Object的内容。
	FileModifiedTime     string             `json:"FileModifiedTime"`     //   文件最近一次修改时间的时间戳, 格式为RFC3339Nano。
	CustomId             string             `json:"CustomId"`             //   该文件的自定义ID。该文件索引到数据集后,作为该行元数据的属性存储,用于和您的业务系统进行关联、对应。您可以根据业务需求传入该值,例如将某个URI关联到您系统内的某个ID。推荐传入全局唯一的值。
	CustomLabels         *map[string]string `json:"CustomLabels"`         //   文件自定义标签列表。储存您业务自定义的键名、键值对信息,用于在查询时可以据此为筛选项进行检索。
	COSUserMeta          *map[string]string `json:"COSUserMeta"`          //   cos自定义头部。储存您业务在cos object上的键名、键值对信息,用于在查询时可以据此为筛选项进行检索。
	ObjectACL            string             `json:"ObjectACL"`            //    文件访问权限属性。
	COSTagging           *map[string]string `json:"COSTagging"`           //   cos自定义标签。储存您业务在cos object上的自定义标签的键名、键值对信息,用于在查询时可以据此为筛选项进行检索。
	COSTaggingCount      int                `json:"COSTaggingCount"`      //    cos自定义标签的数量。
	DatasetName          string             `json:"DatasetName"`          // 数据集名称。
}

type FileUncompressConfig added in v0.7.41

type FileUncompressConfig struct {
	Prefix         string                        `xml:",omitempty"`
	PrefixReplaced string                        `xml:",omitempty"`
	UnCompressKey  string                        `xml:",omitempty"`
	Mode           string                        `xml:",omitempty"`
	DownloadConfig *FileUncompressDownloadConfig `xml:",omitempty"`
}

type FileUncompressDownloadConfig added in v0.7.44

type FileUncompressDownloadConfig struct {
	Prefix string   `xml:",omitempty"`
	Key    []string `xml:",omitempty"`
}

type FileUncompressResult added in v0.7.41

type FileUncompressResult struct {
	Region    string `xml:",omitempty"`
	Bucket    string `xml:",omitempty"`
	FileCount string `xml:",omitempty"`
}

type FilesDetail added in v0.7.51

type FilesDetail struct {
	CreateTime       string             `json:"CreateTime"`       //  元数据创建时间的时间戳,格式为RFC3339Nano
	UpdateTime       string             `json:"UpdateTime"`       //  元数据修改时间的时间戳,格式为RFC3339Nano创建元数据后,如果未更新过元数据,则元数据修改时间的时间戳和元数据创建时间的时间戳相同
	URI              string             `json:"URI"`              //   资源标识字段,表示需要建立索引的文件地址
	Filename         string             `json:"Filename"`         //   文件路径
	MediaType        string             `json:"MediaType"`        //    文件媒体类型。 枚举值:image:图片。other:其他。document:文档。archive:压缩包。audio:音频。video:视频。
	ContentType      string             `json:"ContentType"`      //   文件内容类型(MIME Type)。
	COSStorageClass  string             `json:"COSStorageClass"`  //   文件存储空间类型。
	COSCRC64         string             `json:"COSCRC64"`         //    文件CRC64值。
	ObjectACL        string             `json:"ObjectACL"`        //    对象ACL。
	Size             int                `json:"Size"`             //    文件大小,单位为字节。
	CacheControl     string             `json:"CacheControl"`     //    指定Object被下载时网页的缓存行为。
	ETag             string             `json:"ETag"`             //    Object生成时会创建相应的ETag ,ETag用于标识一个Object的内容。
	FileModifiedTime string             `json:"FileModifiedTime"` //   文件最近一次修改时间的时间戳, 格式为RFC3339Nano。
	CustomId         string             `json:" CustomId"`        //   该文件的自定义ID。该文件索引到数据集后,作为该行元数据的属性存储,用于和您的业务系统进行关联、对应。您可以根据业务需求传入该值,例如将某个URI关联到您系统内的某个ID。推荐传入全局唯一的值。
	CustomLabels     *map[string]string `json:"CustomLabels"`     //   文件自定义标签列表。储存您业务自定义的键名、键值对信息,用于在查询时可以据此为筛选项进行检索。
}

type FillConcat added in v0.7.42

type FillConcat struct {
	Format    string            `xml:"Format,omitempty"`
	FillInput []FillConcatInput `xml:"FillInput,omitempty"`
	RefMode   string            `xml:"RefMode,omitempty"`
	RefIndex  string            `xml:"RefIndex,omitempty"`
}

FillConcat 填充拼接

type FillConcatInput added in v0.7.42

type FillConcatInput struct {
	Url      string `xml:"Url,omitempty"`
	FillTime string `xml:"FillTime,omitempty"`
}

FillConcatInput 填充拼接输入

type FixedLengthReader added in v0.7.13

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

type FrameEnhance added in v0.7.42

type FrameEnhance struct {
	FrameDoubling string `xml:"FrameDoubling,omitempty"`
}

FrameEnhance TODO

type FreezeConf added in v0.7.41

type FreezeConf struct {
	PornScore      string `xml:",omitempty"`
	IllegalScore   string `xml:",omitempty"`
	TerrorismScore string `xml:",omitempty"`
	PoliticsScore  string `xml:",omitempty"`
	AdsScore       string `xml:",omitempty"`
	AbuseScore     string `xml:",omitempty"`
	TeenagerScore  string `xml:",omitempty"`
}

FreezeConf is auto freeze options

type GenerateAVInfoOptions added in v0.7.48

type GenerateAVInfoOptions struct {
	XMLName    xml.Name    `xml:"Request"`
	Input      *JobInput   `xml:"Input,omitempty"`
	OptHeaders *OptHeaders `header:"-,omitempty" url:"-" json:"-" xml:"-"`
}

GenerateMediaInfoOptions TODO

type GenerateMediaInfoOptions added in v0.7.34

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

GenerateMediaInfoOptions TODO

type GeneratePlayListJobOperation added in v0.7.48

type GeneratePlayListJobOperation struct {
	Tag         string        `xml:"Tag,omitempty"`
	Output      *JobOutput    `xml:"Output,omitempty"`
	MediaResult *MediaResult  `xml:"MediaResult,omitempty"`
	MediaInfo   *MediaInfo    `xml:"MediaInfo,omitempty"`
	Transcode   *LiveTanscode `xml:"Transcode,omitempty"`
	UserData    string        `xml:"UserData,omitempty"`
	JobLevel    int           `xml:"JobLevel,omitempty"`
}

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 GetAVInfoResult added in v0.7.48

type GetAVInfoResult struct {
	Format struct {
		BitRate        string `json:"bit_rate"`
		Duration       string `json:"duration"`
		FormatLongName string `json:"format_long_name"`
		FormatName     string `json:"format_name"`
		NbPrograms     int    `json:"nb_programs"`
		NbStreams      int    `json:"nb_streams"`
		Size           string `json:"size"`
		StartTime      string `json:"start_time"`
	} `json:"format"`
	Streams []struct {
		AvgFrameRate       string    `json:"avg_frame_rate,omitempty"`
		BitRate            string    `json:"bit_rate"`
		CodecLongName      string    `json:"codec_long_name"`
		CodecName          string    `json:"codec_name"`
		CodecTag           string    `json:"codec_tag"`
		CodecTagString     string    `json:"codec_tag_string"`
		CodecTimeBase      string    `json:"codec_time_base"`
		CodecType          string    `json:"codec_type"`
		ColorPrimaries     string    `json:"color_primaries,omitempty"`
		ColorRange         string    `json:"color_range,omitempty"`
		ColorTransfer      string    `json:"color_transfer,omitempty"`
		CreationTime       time.Time `json:"creation_time"`
		DisplayAspectRatio string    `json:"display_aspect_ratio,omitempty"`
		Duration           string    `json:"duration"`
		FiledOrder         string    `json:"filed_order,omitempty"`
		HasBFrames         string    `json:"has_b_frames,omitempty"`
		Height             int       `json:"height,omitempty"`
		Index              int       `json:"index"`
		Language           string    `json:"language"`
		Level              int       `json:"level,omitempty"`
		NbFrames           string    `json:"nb_frames,omitempty"`
		PixFmt             string    `json:"pix_fmt,omitempty"`
		Profile            string    `json:"profile,omitempty"`
		RFrameRate         string    `json:"r_frame_rate,omitempty"`
		Refs               int       `json:"refs,omitempty"`
		Rotation           string    `json:"rotation,omitempty"`
		SampleAspectRatio  string    `json:"sample_aspect_ratio,omitempty"`
		StartTime          string    `json:"start_time"`
		Timebase           string    `json:"timebase"`
		Width              int       `json:"width,omitempty"`
		ChannelLayout      string    `json:"channel_layout,omitempty"`
		Channels           int       `json:"channels,omitempty"`
		SampleFmt          string    `json:"sample_fmt,omitempty"`
		SampleRate         string    `json:"sample_rate,omitempty"`
	} `json:"streams"`
}

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 GetDnaDbFilesOptions added in v0.7.43

type GetDnaDbFilesOptions struct {
	DnaDbId    string `url:"dnaDbId,omitempty"`
	PageNumber string `url:"pageNumber,omitempty"`
	PageSize   string `url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

GetDnaDbFilesOptions 获取 DNA 库中文件列表参数

type GetDnaDbFilesResult added in v0.7.43

type GetDnaDbFilesResult 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"`
	DNADbFiles []DNADbFiles `xml:"DNADbFiles,omitempty"`
}

GetDnaDbFilesResult 查询 DNA 库列表结果

type GetDnaDbOptions added in v0.7.43

type GetDnaDbOptions struct {
	Ids        string `url:"ids,omitempty"`
	PageNumber string `url:"pageNumber,omitempty"`
	PageSize   string `url:"pageSize,omitempty"`
}

GetDnaDbOptions 查询 DNA 库列表参数

type GetDnaDbResult added in v0.7.43

type GetDnaDbResult 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"`
	DNADbConfig []DNADbConfig `xml:"DNADbConfig,omitempty"`
	NonExistIDs []string      `xml:"NonExistIDs,omitempty"`
}

GetDnaDbResult 查询 DNA 库列表结果

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 GetFileHashOptions added in v0.7.41

type GetFileHashOptions struct {
	CIProcess   string `url:"ci-process,omitempty"`
	Type        string `url:"type,omitempty"`
	AddToHeader bool   `url:"addtoheader,omitempty"`
}

GetFileHashOptions is the option of GetFileHash

type GetFileHashResult added in v0.7.41

type GetFileHashResult struct {
	XMLName            xml.Name            `xml:"Response"`
	FileHashCodeResult *FileHashCodeResult `xml:",omitempty"`
	Input              *FileProcessInput   `xml:",omitempty"`
}

GetFileHashResult is the result of GetFileHash

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 GetQRcodeResultV2 added in v0.7.46

type GetQRcodeResultV2 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 GoodsMattingptions added in v0.7.41

type GoodsMattingptions struct {
	CenterLayout  string `url:"center-layout,omitempty"`
	PaddingLayout string `url:"padding-layout,omitempty"`
	DetectUrl     string `url:"detect-url,omitempty"`
}

type Groups added in v0.7.47

type Groups struct {
	Count int    `json:"Count"` //  分组聚合的总个数。
	Value string `json:"Value"` // 分组聚合的值。
}

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"`
	Content          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"`
	Freeze     *FreezeConf `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"`
	State             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"`
	Encryption        *Encryption      `xml:",omitempty"`
	ListInfo          *UserListInfo    `xml:",omitempty"`
	ForbidState       int              `xml:",omitempty"`
}

ImageAuditingResult is the result of BatchImageAuditingJobResult

type ImageInspect added in v0.7.43

type ImageInspect struct {
	AutoProcess string `xml:"AutoProcess,omitempty"`
	ProcessType string `xml:"ProcessType,omitempty"`
}

ImageInspect 黑产检测

type ImageInspectAutoProcessResult added in v0.7.43

type ImageInspectAutoProcessResult struct {
	Code    string `xml:"Code,omitempty"`
	Message string `xml:"Message,omitempty"`
}

ImageInspectResult 黑产检测结果

type ImageInspectProcessResult added in v0.7.43

type ImageInspectProcessResult struct {
	PicSize             int                            `xml:"PicSize,omitempty"`
	PicType             string                         `xml:"PicType,omitempty"`
	Suspicious          string                         `xml:"Suspicious,omitempty"`
	SuspiciousBeginByte int                            `xml:"SuspiciousBeginByte,omitempty"`
	SuspiciousEndByte   int                            `xml:"SuspiciousEndByte,omitempty"`
	SuspiciousSize      int                            `xml:"SuspiciousSize,omitempty"`
	SuspiciousType      string                         `xml:"SuspiciousType,omitempty"`
	AutoProcessResult   *ImageInspectAutoProcessResult `xml:"AutoProcessResult,omitempty"`
}

ImageInspectProcessResult 黑产检测结果

type ImageInspectResult added in v0.7.43

type ImageInspectResult struct {
	State           string                     `xml:"State,omitempty"`
	Code            string                     `xml:"Code,omitempty"`
	Message         string                     `xml:"Message,omitempty"`
	InputObjectName string                     `xml:"InputObjectName,omitempty"`
	InputObjectUrl  string                     `xml:"InputObjectUrl,omitempty"`
	ProcessResult   *ImageInspectProcessResult `xml:"ProcessResult,omitempty"`
}

ImageInspectResult 黑产检测结果

type ImageOCRDetection added in v0.7.46

type ImageOCRDetection struct {
	InputObjectName string                   `xml:"InputObjectName,omitempty"`
	InputObjectUrl  string                   `xml:"InputObjectUrl,omitempty"`
	ObjectName      string                   `xml:"ObjectName,omitempty"`
	ObjectUrl       string                   `xml:"ObjectUrl,omitempty"`
	Code            string                   `xml:"Code,omitempty"`
	State           string                   `xml:"State,omitempty"`
	Message         string                   `xml:"Message,omitempty"`
	TextDetections  []ImageOCRTextDetections `xml:"TextDetections,omitempty"`
	Language        string                   `xml:"Language,omitempty"`
	Angel           string                   `xml:"Angel,omitempty"`
	PdfPageSize     int                      `xml:"PdfPageSize,omitempty"`
}

ImageOCRDetection TODO

type ImageOCRTemplate added in v0.7.46

type ImageOCRTemplate struct {
	Type              string `xml:"Type,omitempty"`
	LanguageType      string `xml:"LanguageType,omitempty"`
	IsPdf             string `xml:"IsPdf,omitempty"`
	PdfPageNumber     string `xml:"PdfPageNumber,omitempty"`
	IsWord            string `xml:"IsWord,omitempty"`
	EnableWordPolygon string `xml:"EnableWordPolygon,omitempty"`
}

ImageOCRTemplate TODO

type ImageOCRTextDetections added in v0.7.46

type ImageOCRTextDetections struct {
	DetectedText string                    `xml:"DetectedText,omitempty"`
	Confidence   int                       `xml:"Confidence,omitempty"`
	Polygon      []ImageOCRTextPolygon     `xml:"Polygon,omitempty"`
	ItemPolygon  []ImageOCRTextItemPolygon `xml:"ItemPolygon,omitempty"`
	Words        []ImageOCRTextWords       `xml:"Words,omitempty"`
	WordPolygon  []ImageOCRTextWordPolygon `xml:"WordPolygon,omitempty"`
}

ImageOCRTextDetections TODO

type ImageOCRTextItemPolygon added in v0.7.46

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

ImageOCRTextItemPolygon TODO

type ImageOCRTextPolygon added in v0.7.46

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

ImageOCRTextPolygon TODO

type ImageOCRTextWordPolygon added in v0.7.46

type ImageOCRTextWordPolygon struct {
	LeftTop []struct {
		X int `xml:"X,omitempty"`
		Y int `xml:"Y,omitempty"`
	} `xml:"LeftTop,omitempty"`
	RightTop []struct {
		X int `xml:"X,omitempty"`
		Y int `xml:"Y,omitempty"`
	} `xml:"RightTop,omitempty"`
	LeftBottom []struct {
		X int `xml:"X,omitempty"`
		Y int `xml:"Y,omitempty"`
	} `xml:"LeftBottom,omitempty"`
	RightBottom []struct {
		X int `xml:"X,omitempty"`
		Y int `xml:"Y,omitempty"`
	} `xml:"RightBottom,omitempty"`
}

ImageOCRTextWordPolygon TODO

type ImageOCRTextWords added in v0.7.46

type ImageOCRTextWords struct {
	Confidence     int    `xml:"Confidence,omitempty"`
	Character      string `xml:"Character,omitempty"`
	WordCoordPoint []struct {
		WordCoordinate []struct {
			X int `xml:"X,omitempty"`
			Y int `xml:"Y,omitempty"`
		} `xml:"WordCoordinate,omitempty"`
	} `xml:"WordCoordPoint,omitempty"`
}

ImageOCRTextWords TODO

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"`
	// 历史兼容考虑不建议抽象单独struct防止客户使用影响
	ProcessResultsText                string `xml:"ProcessResults>Text,omitempty"`
	ProcessResultsWatermarkStatusCode int    `xml:"ProcessResults>WatermarkStatusCode,omitempty"`
}

type ImageQualityOptions added in v0.7.42

type ImageQualityOptions struct {
	CIProcess        string `url:"ci-process,omitempty"`
	DetectUrl        string `url:"detect-url,omitempty"`
	EnableClarity    string `url:"enable_clarity,omitempty"`
	EnableAesthetics string `url:"enable_aesthetics,omitempty"`
	EnableLowquality string `url:"enable_lowquality,omitempty"`
}

ImageQualityOptions is the option of ImageQualityWithOpt

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"`
	State             string           `xml:"State,omitempty"`
	Object            string           `xml:"Object,omitempty"`
	Url               string           `xml:"Url,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 ImageRepairOptions added in v0.7.42

type ImageRepairOptions struct {
	DetectUrl string `url:"detect-url,omitempty"`
	MaskPic   string `url:"MaskPic,omitempty"`
	MaskPoly  string `url:"MaskPoly,omitempty"`
}

ImageRepairOptions 图像修复选项

type ImageResult added in v0.7.51

type ImageResult struct {
	URI   string `json:"URI"`   // 资源标识字段,表示需要建立索引的文件地址。
	Score int    `json:"Score"` // 相关图片匹配得分。
}

type ImageSearchOptions added in v0.7.42

type ImageSearchOptions struct {
	MatchThreshold int    `url:"MatchThreshold,omitempty"`
	Offset         int    `url:"Offset,omitempty"`
	Limit          int    `url:"Limit,omitempty"`
	Filter         string `url:"Filter,omitempty"`
}

ImageSearchOptions 图片搜索接口选项

type ImageSearchResult added in v0.7.42

type ImageSearchResult struct {
	XMLName    xml.Name `xml:"Response"`
	Count      int      `xml:"Count"`
	RequestId  string   `xml:"RequestId"`
	ImageInfos []*struct {
		EntityId      string `xml:"EntityId"`
		CustomContent string `xml:"CustomContent"`
		Tags          string `xml:"Tags"`
		PicName       string `xml:"PicName"`
		Score         int    `xml:"Score"`
	} `xml:"ImageInfos,omitempty"`
}

ImageSearchResult 图片搜索接口结果

type ImageSlim added in v0.7.55

type ImageSlim struct {
	XMLName  xml.Name          `xml:"ImageSlim"`
	SlimMode string            `xml:"SlimMode,omitempty"`
	Suffixs  *ImageSlimSuffixs `xml:"Suffixs,omitempty"`
}

type ImageSlimOptions added in v0.7.55

type ImageSlimOptions ImageSlim

type ImageSlimResult added in v0.7.55

type ImageSlimResult struct {
	XMLName  xml.Name          `xml:"ImageSlim"`
	SlimMode string            `xml:"SlimMode,omitempty"`
	Status   string            `xml:"Status,omitempty"`
	Suffixs  *ImageSlimSuffixs `xml:"Suffixs,omitempty"`
}

type ImageSlimSuffixs added in v0.7.55

type ImageSlimSuffixs struct {
	Suffix []string `xml:"Suffix,omitempty"`
}

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 IntelligentTieringConfiguration added in v0.7.55

type IntelligentTieringConfiguration struct {
	Id      string                                `xml:"Id"`
	Status  string                                `xml:"Status"`
	Tiering []*BucketIntelligentTieringTransition `xml:"Tiering"`
	Filter  *BucketIntelligentTieringFilter       `xml:"Filter,omitempty"`
}

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"`
	QueueId          string                                   `xml:"QueueId,omitempty"`
	UserData         string                                   `xml:"UserData,omitempty"`
	JobLevel         int                                      `xml:"JobLevel,omitempty"`
	CallBackFormat   string                                   `xml:"CallBackFormat,omitempty"`
	CallBackType     string                                   `xml:"CallBackType,omitempty"`
	CallBack         string                                   `xml:"CallBack,omitempty"`
	CallBackMqConfig *NotifyConfigCallBackMqConfig            `xml:"CallBackMqConfig,omitempty"`
	Tag              string                                   `xml:"Tag,omitempty"`
	JobParam         *InventoryTriggerJobOperationJobParam    `xml:"JobParam,omitempty"`
	Output           *JobOutput                               `xml:"Output,omitempty"`
	FreeTranscode    string                                   `xml:"FreeTranscode,omitempty"`
}

InventoryTriggerJobOperation TODO

type InventoryTriggerJobOperationJobParam added in v0.7.39

type InventoryTriggerJobOperationJobParam struct {
	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"`
	VideoTagResult          *VideoTagResult          `xml:"VideoTagResult,omitempty"`
	SmartCover              *NodeSmartCover          `xml:"SmartCover,omitempty"`
	QualityEstimate         *QualityEstimate         `xml:"QualityEstimate,omitempty"`
	TtsTpl                  *TtsTpl                  `xml:"TtsTpl,omitempty"`
	TtsConfig               *TtsConfig               `xml:"TtsConfig,omitempty"`
	Translation             *Translation             `xml:"Translation,omitempty"`
	WordsGeneralize         *WordsGeneralize         `xml:"WordsGeneralize,omitempty"`
	WordsGeneralizeResult   *WordsGeneralizeResult   `xml:"WordsGeneralizeResult,omitempty"`
	NoiseReduction          *NoiseReduction          `xml:"NoiseReduction,omitempty"`
	DnaConfig               *DnaConfig               `xml:"DnaConfig,omitempty"`
	DnaResult               *DnaResult               `xml:"DnaResult,omitempty"`
	VocalScore              *VocalScore              `xml:"VocalScore,omitempty"`
	VocalScoreResult        *VocalScoreResult        `xml:"VocalScoreResult,omitempty"`
	ImageInspect            *ImageInspect            `xml:"ImageInspect,omitempty"`
	ImageInspectResult      *ImageInspectResult      `xml:"ImageInspectResult,omitempty"`
	ImageOCR                *ImageOCRTemplate        `xml:"ImageOCR,omitempty"`
	Detection               *ImageOCRDetection       `xml:"Detection,omitempty"`
}

InventoryTriggerJobOperationJobParam 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"`
	Lang       string `xml:"Lang,omitempty"`
	Type       string `xml:"Type,omitempty"`
	BasicType  string `xml:"BasicType,omitempty"`
	CosHeaders []struct {
		Key   string `xml:"Key"`
		Value string `xml:"Value"`
	} `xml:"CosHeaders"`
	Url string   `xml:"Url,omitempty"`
	Vod *VodInfo `xml:"Vod,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"`
	BassObject    string          `xml:"BassObject,omitempty"`
	DrumObject    string          `xml:"DrumObject,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 JobsNotifyBody added in v0.7.42

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

JobsNotifyBody TODO

type KafkaConfig added in v0.7.55

type KafkaConfig struct {
	Region     string `xml:"Region,omitempty"`
	InstanceId string `xml:"InstanceId,omitempty"`
	Topic      string `xml:"Topic,omitempty"`
}

type KeyConfig added in v0.7.53

type KeyConfig struct {
	Key         string `xml:",omitempty"`
	Folder      string `xml:",omitempty"`
	Rename      string `xml:",omitempty"`
	ImageParams string `xml:",omitempty"`
}

type LanguageResult added in v0.7.39

type LanguageResult struct {
	Label     string `xml:"Label"`
	Score     uint32 `xml:"Score"`
	StartTime *int64 `xml:"StartTime,omitempty"`
	EndTime   *int64 `xml:"EndTime,omitempty"`
}

LanguageResult 语种识别结果

type LibResult added in v0.7.31

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

LibResult

type LicenseRecognitionResult added in v0.7.55

type LicenseRecognitionResult struct {
	Time      string                `xml:"Time,omitempty"`
	Url       string                `xml:"Url,omitempty"`
	PlateInfo []*VideoTargetRecInfo `xml:"PlateInfo,omitempty"`
}

LicenseRecognitionResult TODO

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 ListIntelligentTieringConfigurations added in v0.7.55

type ListIntelligentTieringConfigurations struct {
	XMLName        xml.Name                           `xml:"ListBucketIntelligentTieringConfigurationsOutput"`
	Configurations []*IntelligentTieringConfiguration `xml:"IntelligentTieringConfiguration,omitempty"`
}

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"`
	XOptionHeader  *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

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         int64  `xml:"Size,omitempty"`
	StorageClass string `xml:"StorageClass,omitempty"`
	Owner        *Owner `xml:"Owner,omitempty"`
}

type LiveTanscode added in v0.7.48

type LiveTanscode struct {
	Container *Container         `xml:"Container,omitempty"`
	Video     *LiveTanscodeVideo `xml:"Video,omitempty"`
	// TimeInterval  *TimeInterval `xml:"TimeInterval,omitempty"`
	// Audio         *Audio        `xml:"Audio,omitempty"`
	TransConfig *LiveTanscodeTransConfig `xml:"TransConfig,omitempty"`
}

type LiveTanscodeTransConfig added in v0.7.48

type LiveTanscodeTransConfig struct {
	InitialClipNum string      `xml:"InitialClipNum,omitempty"`
	CosTag         string      `xml:"CosTag,omitempty"`
	HlsEncrypt     *HlsEncrypt `xml:"HlsEncrypt,omitempty"`
}

type LiveTanscodeVideo added in v0.7.48

type LiveTanscodeVideo struct {
	Codec         string           `xml:"Codec"`
	Width         string           `xml:"Width,omitempty"`
	Height        string           `xml:"Height,omitempty"`
	Fps           string           `xml:"Fps,omitempty"`
	Profile       string           `xml:"Profile,omitempty"`
	Bitrate       string           `xml:"Bitrate,omitempty"`
	Gop           string           `xml:"Gop,omitempty"`
	Maxrate       string           `xml:"Maxrate,omitempty"`
	Crf           string           `xml:"Crf,omitempty"`
	Pixfmt        string           `xml:"Pixfmt,omitempty"`
	LongShortMode string           `xml:"LongShortMode,omitempty"`
	Interlaced    string           `xml:"Interlaced,omitempty"`
	ColorParam    *VideoColorParam `xml:"ColorParam,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 {
	Name       string `xml:"Name,omitempty"`
	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"`
	SubTag       string                    `xml:"SubTag,omitempty"`
	Workflow     []struct {
		Name         string `xml:"Name,omitempty"`
		RunId        string `xml:"RunId,omitempty"`
		WorkflowId   string `xml:"WorkflowId,omitempty"`
		WorkflowName string `xml:"WorkflowName,omitempty"`
	} `xml:"Workflow"`
}

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"`
	VideoTagResult          *VideoTagResult          `xml:"VideoTagResult,omitempty"`
	SmartCover              *NodeSmartCover          `xml:"SmartCover,omitempty"`
	UserData                string                   `xml:"UserData,omitempty"`
	JobLevel                int                      `xml:"JobLevel,omitempty"`
	QualityEstimate         *QualityEstimate         `xml:"QualityEstimate,omitempty"`
	TtsTpl                  *TtsTpl                  `xml:"TtsTpl,omitempty"`
	TtsConfig               *TtsConfig               `xml:"TtsConfig,omitempty"`
	Translation             *Translation             `xml:"Translation,omitempty"`
	WordsGeneralize         *WordsGeneralize         `xml:"WordsGeneralize,omitempty"`
	WordsGeneralizeResult   *WordsGeneralizeResult   `xml:"WordsGeneralizeResult,omitempty"`
	QualityEstimateConfig   *QualityEstimateConfig   `xml:"QualityEstimateConfig,omitempty"`
	NoiseReduction          *NoiseReduction          `xml:"NoiseReduction,omitempty"`
	SplitVideoParts         *SplitVideoParts         `xml:"SplitVideoParts,omitempty"`
	SplitVideoInfoResult    *SplitVideoInfoResult    `xml:"SplitVideoInfoResult,omitempty"`
	Subtitles               *Subtitles               `xml:"Subtitles,omitempty"`
	VideoEnhance            *VideoEnhance            `xml:"VideoEnhance,omitempty"`
	VideoTargetRec          *VideoTargetRec          `xml:"VideoTargetRec,omitempty"`
	VideoTargetRecResult    *VideoTargetRecResult    `xml:"VideoTargetRecResult,omitempty"`
	SegmentVideoBody        *SegmentVideoBody        `xml:"SegmentVideoBody,omitempty"`
	FreeTranscode           string                   `xml:"FreeTranscode,omitempty"`
	PicProcess              *PicProcess              `xml:"PicProcess,omitempty"`
	PicProcessResult        *PicProcessResult        `xml:"PicProcessResult,omitempty"`
	PosterProduction        *PosterProduction        `xml:"PosterProduction,omitempty"`
	SpeechRecognition       *SpeechRecognition       `xml:"SpeechRecognition,omitempty"`
	SpeechRecognitionResult *SpeechRecognitionResult `xml:"SpeechRecognitionResult,omitempty"`
	SoundHoundResult        *SoundHoundResult        `xml:"SoundHoundResult,omitempty"`
	FillConcat              *FillConcat              `xml:"FillConcat,omitempty"`
	VideoSynthesis          *VideoSynthesis          `xml:"VideoSynthesis,omitempty"`
	DnaConfig               *DnaConfig               `xml:"DnaConfig,omitempty"`
	DnaResult               *DnaResult               `xml:"DnaResult,omitempty"`
	VocalScore              *VocalScore              `xml:"VocalScore,omitempty"`
	VocalScoreResult        *VocalScoreResult        `xml:"VocalScoreResult,omitempty"`
	ImageInspect            *ImageInspect            `xml:"ImageInspect,omitempty"`
	ImageInspectResult      *ImageInspectResult      `xml:"ImageInspectResult,omitempty"`
	SnapshotPrefix          string                   `xml:"SnapshotPrefix,omitempty"`
	ImageOCR                *ImageOCRTemplate        `xml:"ImageOCR,omitempty"`
	Detection               *ImageOCRDetection       `xml:"Detection,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"`
	ResultFormat string       `xml:"ResultFormat,omitempty"`
	MqMode       string       `xml:"MqMode,omitempty"`
	MqRegion     string       `xml:"MqRegion,omitempty"`
	MqName       string       `xml:"MqName,omitempty"`
	KafkaConfig  *KafkaConfig `xml:"KafkaConfig,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 MetaInsightService added in v0.7.51

type MetaInsightService service

func (*MetaInsightService) CreateDataset added in v0.7.51

创建数据集 https://cloud.tencent.com/document/product/460/106020

func (*MetaInsightService) CreateDatasetBinding added in v0.7.51

绑定存储桶与数据集 https://cloud.tencent.com/document/product/460/106159

func (*MetaInsightService) CreateFileMetaIndex added in v0.7.51

创建元数据索引 https://cloud.tencent.com/document/product/460/106022

func (*MetaInsightService) DatasetFaceSearch added in v0.7.51

人脸搜索 https://cloud.tencent.com/document/product/460/106166

func (*MetaInsightService) DatasetSimpleQuery added in v0.7.51

简单查询 https://cloud.tencent.com/document/product/460/106375

func (*MetaInsightService) DeleteDataset added in v0.7.51

删除数据集 https://cloud.tencent.com/document/product/460/106157

func (*MetaInsightService) DeleteDatasetBinding added in v0.7.51

解绑存储桶与数据集 https://cloud.tencent.com/document/product/460/106160

func (*MetaInsightService) DeleteFileMetaIndex added in v0.7.51

删除元数据索引 https://cloud.tencent.com/document/product/460/106163

func (*MetaInsightService) DescribeDataset added in v0.7.51

查询数据集 https://cloud.tencent.com/document/product/460/106155

func (*MetaInsightService) DescribeDatasetBinding added in v0.7.51

查询数据集与存储桶的绑定关系 https://cloud.tencent.com/document/product/460/106485

func (*MetaInsightService) DescribeDatasetBindings added in v0.7.51

查询绑定关系列表 https://cloud.tencent.com/document/product/460/106161

func (*MetaInsightService) DescribeDatasets added in v0.7.51

列出数据集 https://cloud.tencent.com/document/product/460/106158

func (*MetaInsightService) DescribeFileMetaIndex added in v0.7.51

查询元数据索引 https://cloud.tencent.com/document/product/460/106164

func (*MetaInsightService) SearchImage added in v0.7.51

图像检索 https://cloud.tencent.com/document/product/460/106376

func (*MetaInsightService) UpdateDataset added in v0.7.51

更新数据集 https://cloud.tencent.com/document/product/460/106156

func (*MetaInsightService) UpdateFileMetaIndex added in v0.7.51

更新元数据索引 https://cloud.tencent.com/document/product/460/106162

type ModifyM3U8TokenOptions added in v0.7.42

type ModifyM3U8TokenOptions struct {
	Token string `url:"token"`
}

ModifyM3U8TokenOptions TODO

type MsSharpen added in v0.7.34

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

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  interface{}               `xml:"WatermarkTemplateId,omitempty" json:"WatermarkTemplateId,omitempty"` // xml解析map有问题,必须interface结构
	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:"Segment,omitempty" json:"Segment,omitempty"`
	DigitalWatermark     *DigitalWatermark         `xml:"DigitalWatermark,omitempty" json:"DigitalWatermark,omitempty"`
	StreamPackConfigInfo *NodeStreamPackConfigInfo `xml:"StreamPackConfig,omitempty" json:"StreamPackConfig,omitempty"`
	StreamPackInfo       *NodeHlsPackInfo          `xml:"StreamPackInfo,omitempty" json:"StreamPackInfo,omitempty"`
	Condition            *WorkflowNodeCondition    `xml:"Condition,omitempty" json:"Condition,omitempty"`
	SegmentVideoBody     *SegmentVideoBody         `xml:"SegmentVideoBody,omitempty" json:"SegmentVideoBody,omitempty"`
	ImageInspect         *ImageInspect             `xml:"ImageInspect,omitempty" json:"ImageInspect,omitempty"`
	TranscodeConfig      *struct {
		FreeTranscode string `xml:"FreeTranscode,omitempty" json:"FreeTranscode,omitempty"`
	} `xml:"TranscodeConfig,omitempty" json:"TranscodeConfig,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"`
	BassObject    string          `xml:"BassObject,omitempty"`
	DrumObject    string          `xml:"DrumObject,omitempty"`
	StreamExtract []StreamExtract `xml:"StreamExtract,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 NoiseReduction added in v0.7.42

type NoiseReduction struct {
	Format     string `xml:"Format,omitempty"`
	Samplerate string `xml:"Samplerate,omitempty"`
}

NoiseReduction 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"`
	State        string       `xml:"State,omitempty"`
	KafkaConfig  *KafkaConfig `xml:"KafkaConfig,omitempty" json:"KafkaConfig,omitempty"`
}

NotifyConfig TODO

type NotifyConfigCallBackMqConfig added in v0.7.39

type NotifyConfigCallBackMqConfig struct {
	MqMode   string `xml:"MqMode,omitempty"`
	MqRegion string `xml:"MqRegion,omitempty"`
	MqName   string `xml:"MqName,omitempty"`
}

NotifyConfigCallBackMqConfig 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"`
	StorageTier   string `xml:",omitempty"`
	RestoreStatus 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:"-"`
	// SSE-C
	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:"-"`
}

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 ObjectGetRetentionOptions added in v0.7.42

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

type ObjectGetRetentionResult added in v0.7.42

type ObjectGetRetentionResult struct {
	XMLName         xml.Name `xml:"Retention"`
	RetainUntilDate string   `xml:"RetainUntilDate,omitempty"`
	Mode            string   `xml:"Mode,omitempty"`
}

type ObjectGetSymlinkOptions added in v0.7.46

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

type ObjectGetTaggingOptions added in v0.7.36

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

type ObjectGetTaggingResult added in v0.7.7

type ObjectGetTaggingResult ObjectPutTaggingOptions

type ObjectHeadOptions

type ObjectHeadOptions struct {
	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:"-"`
}

ObjectHeadOptions is the option of HeadObject

type ObjectList

type ObjectList []Object

ObjectList can used for sort the parts which needs in complete upload part sort.Sort(cos.ObjectList(opt.Parts))

func (ObjectList) Len

func (o ObjectList) Len() int

func (ObjectList) Less

func (o ObjectList) Less(i, j int) bool

func (ObjectList) Swap

func (o ObjectList) Swap(i, j int)

type ObjectListPartsOptions

type ObjectListPartsOptions struct {
	EncodingType     string `url:"encoding-type,omitempty"`
	MaxParts         string `url:"max-parts,omitempty"`
	PartNumberMarker string `url:"part-number-marker,omitempty"`
}

ObjectListPartsOptions is the option of ListParts

type ObjectListPartsResult

type ObjectListPartsResult struct {
	XMLName              xml.Name `xml:"ListPartsResult"`
	Bucket               string
	EncodingType         string `xml:"Encoding-type,omitempty"`
	Key                  string
	UploadID             string     `xml:"UploadId"`
	Initiator            *Initiator `xml:"Initiator,omitempty"`
	Owner                *Owner     `xml:"Owner,omitempty"`
	StorageClass         string
	PartNumberMarker     string
	NextPartNumberMarker string `xml:"NextPartNumberMarker,omitempty"`
	MaxParts             string
	IsTruncated          bool
	Parts                []Object `xml:"Part,omitempty"`
}

ObjectListPartsResult is the result of ListParts

type ObjectListUploadsOptions added in v0.7.11

type ObjectListUploadsOptions 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"`
}

type ObjectListUploadsResult added in v0.7.11

type ObjectListUploadsResult struct {
	XMLName            xml.Name                  `xml:"ListMultipartUploadsResult"`
	Bucket             string                    `xml:"Bucket,omitempty"`
	EncodingType       string                    `xml:"Encoding-Type,omitempty"`
	KeyMarker          string                    `xml:"KeyMarker,omitempty"`
	UploadIdMarker     string                    `xml:"UploadIdMarker,omitempty"`
	NextKeyMarker      string                    `xml:"NextKeyMarker,omitempty"`
	NextUploadIdMarker string                    `xml:"NextUploadIdMarker,omitempty"`
	MaxUploads         string                    `xml:"MaxUploads,omitempty"`
	IsTruncated        bool                      `xml:"IsTruncated,omitempty"`
	Prefix             string                    `xml:"Prefix,omitempty"`
	Delimiter          string                    `xml:"Delimiter,omitempty"`
	Upload             []ListUploadsResultUpload `xml:"Upload,omitempty"`
	CommonPrefixes     []string                  `xml:"CommonPrefixes>Prefix,omitempty"`
}

type ObjectLockRule added in v0.7.42

type ObjectLockRule struct {
	Days int `xml:"DefaultRetention>Days,omitempty"`
}

type ObjectOptionsOptions

type ObjectOptionsOptions struct {
	Origin                      string `url:"-" header:"Origin"`
	AccessControlRequestMethod  string `url:"-" header:"Access-Control-Request-Method"`
	AccessControlRequestHeaders string `url:"-" header:"Access-Control-Request-Headers,omitempty"`
}

ObjectOptionsOptions is the option of object options

type ObjectPutACLOptions

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

ObjectPutACLOptions the options of put object acl

type ObjectPutHeaderOptions

type ObjectPutHeaderOptions struct {
	CacheControl       string `header:"Cache-Control,omitempty" url:"-"`
	ContentDisposition string `header:"Content-Disposition,omitempty" url:"-"`
	ContentEncoding    string `header:"Content-Encoding,omitempty" url:"-"`
	ContentType        string `header:"Content-Type,omitempty" url:"-"`
	ContentMD5         string `header:"Content-MD5,omitempty" url:"-"`
	ContentLength      int64  `header:"Content-Length,omitempty" url:"-"`
	ContentLanguage    string `header:"Content-Language,omitempty" url:"-"`
	Expect             string `header:"Expect,omitempty" url:"-"`
	Expires            string `header:"Expires,omitempty" url:"-"`
	XCosContentSHA1    string `header:"x-cos-content-sha1,omitempty" url:"-"`
	// 自定义的 x-cos-meta-* header
	XCosMetaXXX      *http.Header `header:"x-cos-meta-*,omitempty" url:"-"`
	XCosStorageClass string       `header:"x-cos-storage-class,omitempty" url:"-"`
	// 可选值: Normal, Appendable
	//XCosObjectType string `header:"x-cos-object-type,omitempty" url:"-"`
	// Enable Server Side Encryption, Only supported: AES256
	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:"-"`
	//兼容其他自定义头部
	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:"-"`
}

ObjectPutHeaderOptions the options of header of the put object

type ObjectPutOptions

type ObjectPutOptions struct {
	*ACLHeaderOptions       `header:",omitempty" url:"-" xml:"-"`
	*ObjectPutHeaderOptions `header:",omitempty" url:"-" xml:"-"`
	// contains filtered or unexported fields
}

ObjectPutOptions the options of put object

func CloneObjectPutOptions added in v0.7.26

func CloneObjectPutOptions(opt *ObjectPutOptions) *ObjectPutOptions

type ObjectPutRetentionOptions added in v0.7.43

type ObjectPutRetentionOptions struct {
	XMLName         xml.Name `xml:"Retention"`
	RetainUntilDate string   `xml:"RetainUntilDate,omitempty"`
	Mode            string   `xml:"Mode,omitempty"`
}

type ObjectPutSymlinkOptions added in v0.7.46

type ObjectPutSymlinkOptions struct {
	SymlinkTarget string       `header:"x-cos-symlink-target" url:"-"`
	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
}

type ObjectPutTaggingOptions added in v0.7.7

type ObjectPutTaggingOptions struct {
	XMLName       xml.Name           `xml:"Tagging" header:"-"`
	TagSet        []ObjectTaggingTag `xml:"TagSet>Tag,omitempty" header:"-"`
	XOptionHeader *http.Header       `header:"-,omitempty" url:"-" xml:"-"`
}

type ObjectRestoreOptions

type ObjectRestoreOptions struct {
	XMLName       xml.Name          `xml:"RestoreRequest" header:"-" url:"-"`
	Days          int               `xml:"Days,omitempty" header:"-" url:"-"`
	Tier          *CASJobParameters `xml:"CASJobParameters" header:"-" url:"-"`
	XOptionHeader *http.Header      `xml:"-" header:",omitempty" url:"-"`
}

ObjectRestoreOptions is the option of object restore

type ObjectResult added in v0.7.31

type ObjectResult struct {
	Name     string    `xml:"Name,omitempty"`
	SubLabel string    `xml:"SubLabel,omitempty"`
	Location *Location `xml:"Location,omitempty"`
}

ObjectResult

type ObjectSelectOptions added in v0.7.11

type ObjectSelectOptions struct {
	XMLName             xml.Name                   `xml:"SelectRequest"`
	Expression          string                     `xml:"Expression"`
	ExpressionType      string                     `xml:"ExpressionType"`
	InputSerialization  *SelectInputSerialization  `xml:"InputSerialization"`
	OutputSerialization *SelectOutputSerialization `xml:"OutputSerialization"`
	RequestProgress     string                     `xml:"RequestProgress>Enabled,omitempty"`
}

type ObjectSelectResponse added in v0.7.11

type ObjectSelectResponse struct {
	StatusCode int
	Headers    http.Header
	Body       io.ReadCloser
	Frame      *ObjectSelectResult
	Finish     bool
}

func (*ObjectSelectResponse) Close added in v0.7.11

func (osr *ObjectSelectResponse) Close() error

func (*ObjectSelectResponse) Read added in v0.7.11

func (osr *ObjectSelectResponse) Read(p []byte) (n int, err error)

type ObjectSelectResult added in v0.7.11

type ObjectSelectResult struct {
	TotalFrameLength  int32
	TotalHeaderLength int32
	NextFrame         bool
	FrameType         int
	Payload           []byte
	DataFrame         DataFrame
	ProgressFrame     ProgressFrame
	StatsFrame        StatsFrame
	ErrorFrame        *ErrorFrame
}

type ObjectService

type ObjectService service

ObjectService 相关 API

func (*ObjectService) AbortMultipartUpload

func (s *ObjectService) AbortMultipartUpload(ctx context.Context, name, uploadID string, opt ...*AbortMultipartUploadOptions) (*Response, error)

AbortMultipartUpload 用来实现舍弃一个分块上传并删除已上传的块。当您调用Abort Multipart Upload时, 如果有正在使用这个Upload Parts上传块的请求,则Upload Parts会返回失败。当该UploadID不存在时,会返回404 NoSuchUpload。

建议您及时完成分块上传或者舍弃分块上传,因为已上传但是未终止的块会占用存储空间进而产生存储费用。

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

func (*ObjectService) Append added in v0.7.30

func (s *ObjectService) Append(ctx context.Context, name string, position int, r io.Reader, opt *ObjectPutOptions) (int, *Response, error)

Append请求可以将一个文件(Object)以分块追加的方式上传至 Bucket 中。使用Append Upload的文件必须事前被设定为Appendable。 当Appendable的文件被执行Put Object的操作以后,文件被覆盖,属性改变为Normal。

文件属性可以在Head Object操作中被查询到,当您发起Head Object请求时,会返回自定义Header『x-cos-object-type』,该Header只有两个枚举值:Normal或者Appendable。

追加上传建议文件大小1M - 5G。如果position的值和当前Object的长度不致,COS会返回409错误。 如果Append一个Normal的Object,COS会返回409 ObjectNotAppendable。

Appendable的文件不可以被复制,不参与版本管理,不参与生命周期管理,不可跨区域复制。

当 r 不是 bytes.Buffer/bytes.Reader/strings.Reader 时,必须指定 opt.ObjectPutHeaderOptions.ContentLength

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

func (*ObjectService) CompleteMultipartUpload

func (s *ObjectService) CompleteMultipartUpload(ctx context.Context, name, uploadID string, opt *CompleteMultipartUploadOptions) (*CompleteMultipartUploadResult, *Response, error)

CompleteMultipartUpload 用来实现完成整个分块上传。当您已经使用Upload Parts上传所有块以后,你可以用该API完成上传。 在使用该API时,您必须在Body中给出每一个块的PartNumber和ETag,用来校验块的准确性。

由于分块上传的合并需要数分钟时间,因而当合并分块开始的时候,COS就立即返回200的状态码,在合并的过程中, COS会周期性的返回空格信息来保持连接活跃,直到合并完成,COS会在Body中返回合并后块的内容。

当上传块小于1 MB的时候,在调用该请求时,会返回400 EntityTooSmall; 当上传块编号不连续的时候,在调用该请求时,会返回400 InvalidPart; 当请求Body中的块信息没有按序号从小到大排列的时候,在调用该请求时,会返回400 InvalidPartOrder; 当UploadId不存在的时候,在调用该请求时,会返回404 NoSuchUpload。

建议您及时完成分块上传或者舍弃分块上传,因为已上传但是未终止的块会占用存储空间进而产生存储费用。

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

func (*ObjectService) Copy

func (s *ObjectService) Copy(ctx context.Context, name, sourceURL string, opt *ObjectCopyOptions, id ...string) (*ObjectCopyResult, *Response, error)

Copy 调用 PutObjectCopy 请求实现将一个文件从源路径复制到目标路径。建议文件大小 1M 到 5G, 超过 5G 的文件请使用分块上传 Upload - Copy。在拷贝的过程中,文件元属性和 ACL 可以被修改。

用户可以通过该接口实现文件移动,文件重命名,修改文件属性和创建副本。

注意:在跨帐号复制的时候,需要先设置被复制文件的权限为公有读,或者对目标帐号赋权,同帐号则不需要。

https://cloud.tencent.com/document/product/436/10881

func (*ObjectService) CopyPart

func (s *ObjectService) CopyPart(ctx context.Context, name, uploadID string, partNumber int, sourceURL string, opt *ObjectCopyPartOptions) (*CopyPartResult, *Response, error)

CopyPart 请求实现在初始化以后的分块上传,支持的块的数量为1到10000,块的大小为1 MB 到5 GB。 在每次请求Upload Part时候,需要携带partNumber和uploadID,partNumber为块的编号,支持乱序上传。 ObjectCopyPartOptions的XCosCopySource为必填参数,格式为<bucket-name>-<app-id>.cos.<region-id>.myqcloud.com/<object-key> ObjectCopyPartOptions的XCosCopySourceRange指定源的Range,格式为bytes=<start>-<end>

当传入uploadID和partNumber都相同的时候,后传入的块将覆盖之前传入的块。当uploadID不存在时会返回404错误,NoSuchUpload.

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

func (*ObjectService) Delete

func (s *ObjectService) Delete(ctx context.Context, name string, opt ...*ObjectDeleteOptions) (*Response, error)

Delete Object请求可以将一个文件(Object)删除。

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

func (*ObjectService) DeleteMulti

DeleteMulti 请求实现批量删除文件,最大支持单次删除1000个文件。 对于返回结果,COS提供Verbose和Quiet两种结果模式。Verbose模式将返回每个Object的删除结果; Quiet模式只返回报错的Object信息。 https://www.qcloud.com/document/product/436/8289

func (*ObjectService) DeleteTagging added in v0.7.7

func (s *ObjectService) DeleteTagging(ctx context.Context, name string, opt ...interface{}) (*Response, error)

func (*ObjectService) Download added in v0.7.25

func (s *ObjectService) Download(ctx context.Context, name string, filepath string, opt *MultiDownloadOptions, id ...string) (*Response, error)

func (*ObjectService) Get

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

Get Object 请求可以将一个文件(Object)下载至本地。 该操作需要对目标 Object 具有读权限或目标 Object 对所有人都开放了读权限(公有读)。

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

func (*ObjectService) GetACL

func (s *ObjectService) GetACL(ctx context.Context, name string, id ...string) (*ObjectGetACLResult, *Response, error)

GetACL Get Object ACL接口实现使用API读取Object的ACL表,只有所有者有权操作。

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

func (*ObjectService) GetFetchTask added in v0.7.32

func (s *ObjectService) GetFetchTask(ctx context.Context, bucket string, taskid string) (*GetFetchTaskResult, *Response, error)

func (*ObjectService) GetObjectURL added in v0.7.26

func (s *ObjectService) GetObjectURL(name string) *url.URL

func (*ObjectService) GetPresignedURL

func (s *ObjectService) GetPresignedURL(ctx context.Context, httpMethod, name, ak, sk string, expired time.Duration, opt interface{}, signHost ...bool) (*url.URL, error)

GetPresignedURL get the object presigned to down or upload file by url 预签名函数,signHost: 默认签入Header Host, 您也可以选择不签入Header Host,但可能导致请求失败或安全漏洞

func (*ObjectService) GetPresignedURL2 added in v0.7.44

func (s *ObjectService) GetPresignedURL2(ctx context.Context, httpMethod, name string, expired time.Duration, opt interface{}, signHost ...bool) (*url.URL, error)

func (*ObjectService) GetPresignedURL3 added in v0.7.48

func (s *ObjectService) GetPresignedURL3(ctx context.Context, httpMethod, name string, expired time.Duration, opt interface{}, signHost ...bool) (*url.URL, error)

func (*ObjectService) GetRetention added in v0.7.42

func (*ObjectService) GetSignature added in v0.7.35

func (s *ObjectService) GetSignature(ctx context.Context, httpMethod, name, ak, sk string, expired time.Duration, opt *PresignedURLOptions, signHost ...bool) string
func (s *ObjectService) GetSymlink(ctx context.Context, name string, opt *ObjectGetSymlinkOptions) (string, *Response, error)

func (*ObjectService) GetTagging added in v0.7.7

func (s *ObjectService) GetTagging(ctx context.Context, name string, opt ...interface{}) (*ObjectGetTaggingResult, *Response, error)

func (*ObjectService) GetToFile

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

GetToFile download the object to local file

func (*ObjectService) Head

func (s *ObjectService) Head(ctx context.Context, name string, opt *ObjectHeadOptions, id ...string) (*Response, error)

Head Object请求可以取回对应Object的元数据,Head的权限与Get的权限一致

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

func (*ObjectService) InitiateMultipartUpload

InitiateMultipartUpload 请求实现初始化分片上传,成功执行此请求以后会返回Upload ID用于后续的Upload Part请求。

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

func (*ObjectService) IsExist added in v0.7.33

func (s *ObjectService) IsExist(ctx context.Context, name string, id ...string) (bool, error)

func (*ObjectService) ListParts

func (s *ObjectService) ListParts(ctx context.Context, name, uploadID string, opt *ObjectListPartsOptions) (*ObjectListPartsResult, *Response, error)

ListParts 用来查询特定分块上传中的已上传的块。

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

func (*ObjectService) ListUploads added in v0.7.11

func (*ObjectService) MultiCopy added in v0.7.17

func (s *ObjectService) MultiCopy(ctx context.Context, name string, sourceURL string, opt *MultiCopyOptions, id ...string) (*ObjectCopyResult, *Response, error)

如果源对象大于5G,则采用分块复制的方式进行拷贝,此时源对象的元信息如果COPY

func (*ObjectService) MultiUpload

MultiUpload/Upload 为高级upload接口,并发分块上传

当 partSize > 0 时,由调用者指定分块大小,否则由 SDK 自动切分,单位为MB 由调用者指定分块大小时,请确认分块数量不超过10000

func (*ObjectService) Options

func (s *ObjectService) Options(ctx context.Context, name string, opt *ObjectOptionsOptions) (*Response, error)

Options Object请求实现跨域访问的预请求。即发出一个 OPTIONS 请求给服务器以确认是否可以进行跨域操作。

当CORS配置不存在时,请求返回403 Forbidden。

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

func (*ObjectService) PostRestore

func (s *ObjectService) PostRestore(ctx context.Context, name string, opt *ObjectRestoreOptions, id ...string) (*Response, error)

PutRestore API can recover an object of type archived by COS archive.

https://cloud.tencent.com/document/product/436/12633

func (*ObjectService) Put

func (s *ObjectService) Put(ctx context.Context, name string, r io.Reader, uopt *ObjectPutOptions) (*Response, error)

Put Object请求可以将一个文件(Oject)上传至指定Bucket。

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

func (*ObjectService) PutACL

func (s *ObjectService) PutACL(ctx context.Context, name string, opt *ObjectPutACLOptions, id ...string) (*Response, error)

PutACL 使用API写入Object的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 Object ACL是一个覆盖操作,传入新的ACL将覆盖原有ACL。只有所有者有权操作。

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

"x-cos-grant-read":意味被赋予权限的用户拥有该Object的读权限

"x-cos-grant-write":意味被赋予权限的用户拥有该Object的写权限

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

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

func (*ObjectService) PutFetchTask added in v0.7.32

func (s *ObjectService) PutFetchTask(ctx context.Context, bucket string, opt *PutFetchTaskOptions) (*PutFetchTaskResult, *Response, error)

func (*ObjectService) PutFromFile

func (s *ObjectService) PutFromFile(ctx context.Context, name string, filePath string, uopt *ObjectPutOptions) (resp *Response, err error)

PutFromFile put object from local file

func (*ObjectService) PutRetention added in v0.7.43

func (s *ObjectService) PutRetention(ctx context.Context, key string, opt *ObjectPutRetentionOptions) (*Response, error)
func (s *ObjectService) PutSymlink(ctx context.Context, name string, opt *ObjectPutSymlinkOptions) (*Response, error)

func (*ObjectService) PutTagging added in v0.7.7

func (s *ObjectService) PutTagging(ctx context.Context, name string, opt *ObjectPutTaggingOptions, id ...string) (*Response, error)

func (*ObjectService) Select added in v0.7.11

func (s *ObjectService) Select(ctx context.Context, name string, opt *ObjectSelectOptions) (io.ReadCloser, error)

func (*ObjectService) SelectToFile added in v0.7.11

func (s *ObjectService) SelectToFile(ctx context.Context, name, file string, opt *ObjectSelectOptions) (*ObjectSelectResponse, error)

func (*ObjectService) Upload

func (*ObjectService) UploadPart

func (s *ObjectService) UploadPart(ctx context.Context, name, uploadID string, partNumber int, r io.Reader, uopt *ObjectUploadPartOptions) (*Response, error)

UploadPart 请求实现在初始化以后的分块上传,支持的块的数量为1到10000,块的大小为1 MB 到5 GB。 在每次请求Upload Part时候,需要携带partNumber和uploadID,partNumber为块的编号,支持乱序上传。

当传入uploadID和partNumber都相同的时候,后传入的块将覆盖之前传入的块。当uploadID不存在时会返回404错误,NoSuchUpload.

当 r 不是 bytes.Buffer/bytes.Reader/strings.Reader 时,必须指定 opt.ContentLength

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

type ObjectTaggingTag added in v0.7.7

type ObjectTaggingTag BucketTaggingTag

type ObjectUploadPartOptions

type ObjectUploadPartOptions struct {
	Expect                string `header:"Expect,omitempty" url:"-"`
	XCosContentSHA1       string `header:"x-cos-content-sha1,omitempty" url:"-"`
	ContentLength         int64  `header:"Content-Length,omitempty" url:"-"`
	ContentMD5            string `header:"Content-MD5,omitempty" url:"-"`
	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:"-"`

	XCosTrafficLimit int `header:"x-cos-traffic-limit,omitempty" url:"-" xml:"-"`

	XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"`
	// 上传进度, ProgressCompleteEvent不能表示对应API调用成功,API是否调用成功的判断标准为返回err==nil
	Listener ProgressListener `header:"-" url:"-" xml:"-"`
	// contains filtered or unexported fields
}

ObjectUploadPartOptions is the options of upload-part

func CloneObjectUploadPartOptions added in v0.7.26

func CloneObjectUploadPartOptions(opt *ObjectUploadPartOptions) *ObjectUploadPartOptions

type OcrRecognitionOptions added in v0.7.36

type OcrRecognitionOptions struct {
	Type              string `url:"type,omitempty"`
	LanguageType      string `url:"language-type,omitempty"`
	Ispdf             bool   `url:"ispdf,omitempty"`
	PdfPageNumber     int    `url:"pdf-pagenumber,omitempty"`
	Isword            bool   `url:"isword,omitempty"`
	EnableWordPolygon bool   `url:"enable-word-polygon,omitempty"`
}

type OcrRecognitionResult added in v0.7.36

type OcrRecognitionResult struct {
	XMLName        xml.Name         `xml:"Response"`
	TextDetections []TextDetections `xml:"TextDetections,omitempty"`
	Language       string           `xml:"Language,omitempty"`
	Angel          float64          `xml:"Angel,omitempty"`
	PdfPageSize    int              `xml:"PdfPageSize,omitempty"`
	RequestId      string           `xml:"RequestId,omitempty"`
}

type OcrResult added in v0.7.31

type OcrResult struct {
	Text     string    `xml:"Text,omitempty"`
	Keywords []string  `xml:"Keywords,omitempty"`
	SubLabel string    `xml:"SubLabel,omitempty"`
	Location *Location `xml:"Location,omitempty"`
}

OcrResult

type OptHeaders added in v0.7.47

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

type OriginFixedFileConfiguration added in v0.7.45

type OriginFixedFileConfiguration struct {
	FixedFilePath string `xml:"FixedFilePath,omitempty"`
}

type OriginHttpHeader added in v0.7.7

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

type OriginPrefixConfiguration added in v0.7.45

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

type OriginProtectResult added in v0.7.36

type OriginProtectResult struct {
	XMLName             xml.Name `xml:"OriginProtectStatus"`
	OriginProtectStatus string   `xml:",chardata"`
}

type OriginSuffixConfiguration added in v0.7.45

type OriginSuffixConfiguration struct {
	Suffix string `xml:"Suffix,omitempty"`
}

type Owner

type Owner struct {
	UIN         string `xml:"uin,omitempty"`
	ID          string `xml:",omitempty"`
	DisplayName string `xml:",omitempty"`
}

Owner defines Bucket/Object's owner

type PedestrianInfo added in v0.7.42

type PedestrianInfo struct {
	Name     string              `xml:"Name,omitempty"`
	Score    int                 `xml:"Score,omitempty"`
	Location *PedestrianLocation `xml:"Location,omitempty"`
}

type PedestrianLocation added in v0.7.42

type PedestrianLocation CodeLocation

type Persons added in v0.7.51

type Persons struct {
	PersonId   string      `json:"PersonId, omitempty" url:"-" ` // 自定义人物 ID。
	OptHeaders *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type PetDetectOption added in v0.7.46

type PetDetectOption struct {
	DetectUrl string `url:"detect-url,omitempty"`
}

type PetDetectResult added in v0.7.46

type PetDetectResult struct {
	XMLName    xml.Name `xml:"Response"`
	ResultInfo []struct {
		Score    int    `xml:"Score,omitempty"`
		Name     string `xml:"Name,omitempty"`
		Location struct {
			X      int `xml:"X,omitempty"`
			Y      int `xml:"Y,omitempty"`
			Height int `xml:"Height,omitempty"`
			Width  int `xml:"Width,omitempty"`
		} `xml:"Location,omitempty"`
	} `xml:"ResultInfo,omitempty"`
}

type PetEffectResult added in v0.7.44

type PetEffectResult struct {
	XMLName    xml.Name `xml:"Response"`
	ResultInfo []struct {
		Score    int    `xml:"Score,omitempty"`
		Name     string `xml:"Name,omitempty"`
		Location struct {
			X      int `xml:"X,omitempty"`
			Y      int `xml:"Y,omitempty"`
			Height int `xml:"Height,omitempty"`
			Width  int `xml:"Width,omitempty"`
		} `xml:"Location,omitempty"`
	} `xml:"ResultInfo,omitempty"`
}

type PetRecognition added in v0.7.42

type PetRecognition struct {
	Time    string                `xml:"Time,omitempty"`
	Url     string                `xml:"Url,omitempty"`
	PetInfo []*VideoTargetRecInfo `xml:"PetInfo,omitempty"`
}

PetRecognition TODO

type PicImageInfo added in v0.7.11

type PicImageInfo struct {
	Format      string `xml:"Format,omitempty"`
	Width       int    `xml:"Width,omitempty"`
	Height      int    `xml:"Height,omitempty"`
	Quality     int    `xml:"Quality,omitempty"`
	Ave         string `xml:"Ave,omitempty"`
	Orientation int    `xml:"Orientation,omitempty"`
}

type PicOperations

type PicOperations struct {
	IsPicInfo int                  `json:"is_pic_info,omitempty"`
	Rules     []PicOperationsRules `json:"rules,omitemtpy"`
}

type PicOperationsRules

type PicOperationsRules struct {
	Bucket string `json:"bucket,omitempty"`
	FileId string `json:"fileid"`
	Rule   string `json:"rule"`
}

type PicOriginalInfo added in v0.7.11

type PicOriginalInfo struct {
	Key       string        `xml:"Key,omitempty"`
	Location  string        `xml:"Location,omitempty"`
	ImageInfo *PicImageInfo `xml:"ImageInfo,omitempty"`
	ETag      string        `xml:"ETag,omitempty"`
}

type PicProcess added in v0.7.35

type PicProcess struct {
	IsPicInfo   string `xml:"IsPicInfo,omitempty"`
	ProcessRule string `xml:"ProcessRule,omitempty"`
}

PicProcess TODO

type PicProcessJobOperation added in v0.7.35

type PicProcessJobOperation struct {
	TemplateId       string            `xml:"TemplateId,omitempty"`
	PicProcess       *PicProcess       `xml:"PicProcess,omitempty"`
	Output           *JobOutput        `xml:"Output,omitempty"`
	UserData         string            `xml:"UserData,omitempty"`
	JobLevel         int               `xml:"JobLevel,omitempty"`
	PicProcessResult *PicProcessResult `xml:"PicProcessResult,omitempty"`
	PosterProduction *PosterProduction `xml:"PosterProduction,omitempty"`
}

PicProcessJobOperation TODO

type PicProcessObject added in v0.7.11

type PicProcessObject struct {
	Key             string       `xml:"Key,omitempty"`
	Location        string       `xml:"Location,omitempty"`
	Format          string       `xml:"Format,omitempty"`
	Width           int          `xml:"Width,omitempty"`
	Height          int          `xml:"Height,omitempty"`
	Size            int          `xml:"Size,omitempty"`
	Quality         int          `xml:"Quality,omitempty"`
	ETag            string       `xml:"ETag,omitempty"`
	WatermarkStatus int          `xml:"WatermarkStatus,omitempty"`
	CodeStatus      int          `xml:"CodeStatus,omitempty"`
	QRcodeInfo      []QRcodeInfo `xml:"QRcodeInfo,omitempty"`
}

type PicProcessResult added in v0.7.35

type PicProcessResult struct {
	UploadResult struct {
		OriginalInfo struct {
			Key       string `xml:"Key"`
			Location  string `xml:"Location"`
			ETag      string `xml:"ETag"`
			ImageInfo struct {
				Format      string `xml:"Format"`
				Width       int32  `xml:"Width"`
				Height      int32  `xml:"Height"`
				Quality     int32  `xml:"Quality"`
				Ave         string `xml:"Ave"`
				Orientation int32  `xml:"Orientation"`
			} `xml:"ImageInfo"`
		} `xml:"OriginalInfo"`
		ProcessResults struct {
			Object struct {
				Key      string `xml:"Key"`
				Location string `xml:"Location"`
				Format   string `xml:"Format"`
				Width    int32  `xml:"Width"`
				Height   int32  `xml:"Height"`
				Size     int32  `xml:"Size"`
				Quality  int32  `xml:"Quality"`
				Etag     string `xml:"Etag"`
			} `xml:"Object"`
		} `xml:"ProcessResults"`
	} `xml:"UploadResult"`
}

PicProcessResult TODO

type PicTag added in v0.7.36

type PicTag struct {
	Confidence int    `xml:"Confidence,omitempty"`
	Name       string `xml:"Name,omitempty"`
}

type PicTagResult added in v0.7.36

type PicTagResult struct {
	XMLName xml.Name `xml:"RecognitionResult"`
	Labels  []PicTag `xml:"Labels,omitempty"`
}

type PlateContent added in v0.7.36

type PlateContent struct {
	Plate         string         `xml:"Plate,omitempty"`
	Color         string         `xml:"Color,omitempty"`
	Type          string         `xml:"Type,omitempty"`
	PlateLocation *PlateLocation `xml:"PlateLocation,omitempty"`
}

type PlateLocation added in v0.7.36

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

type PlayKey added in v0.7.46

type PlayKey struct {
	MasterPlayKey string `xml:"MasterPlayKey"`
	BackupPlayKey string `xml:"BackupPlayKey"`
}

type PlayKeyResult added in v0.7.46

type PlayKeyResult struct {
	XMLName     xml.Name `xml:"Response"`
	PlayKeyList *PlayKey `xml:"PlayKeyList"`
}

type Polygon added in v0.7.36

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

type PostSnapshotOptions added in v0.7.39

type PostSnapshotOptions struct {
	XMLName xml.Name   `xml:"Request"`
	Input   *JobInput  `xml:"Input,omitempty"`
	Time    string     `xml:"Time,omitempty"`
	Width   int        `xml:"Width,omitempty"`
	Height  int        `xml:"Height,omitempty"`
	Mode    string     `xml:"Mode,omitempty"`
	Rotate  string     `xml:"Rotate,omitempty"`
	Format  string     `xml:"Format,omitempty"`
	Output  *JobOutput `xml:"Output,omitempty"`
}

type PostSnapshotResult added in v0.7.39

type PostSnapshotResult struct {
	XMLName xml.Name   `xml:"Response"`
	Output  *JobOutput `xml:"Output,omitempty"`
}

type PosterProduction added in v0.7.42

type PosterProduction struct {
	TemplateId string      `xml:"TemplateId,omitempty"`
	Info       interface{} `xml:"Info,omitempty"`
}

PosterProduction TODO

type PosterproductionInput added in v0.7.42

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

海报合成 PosterproductionInput TODO

type PosterproductionTemplateOptions added in v0.7.42

type PosterproductionTemplateOptions struct {
	XMLName     xml.Name               `xml:"Request"`
	Input       *PosterproductionInput `xml:"Input,omitempty"`
	Name        string                 `xml:"Name,omitempty"`
	CategoryIds string                 `xml:"CategoryIds,omitempty"`
}

PosterproductionTemplateOptions TODO

type PosterproductionTemplateResult added in v0.7.42

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

PosterproductionTemplateResult TODO

type PosterproductionTemplateResults added in v0.7.42

type PosterproductionTemplateResults struct {
	XMLName      xml.Name    `xml:"Response"`
	RequestId    string      `xml:"RequestId,omitempty"`
	TotalCount   string      `xml:"TotalCount,omitempty"`
	PageNumber   string      `xml:"PageNumber,omitempty"`
	PageSize     string      `xml:"PageSize,omitempty"`
	TemplateList interface{} `xml:"TemplateList,omitempty"`
}

PosterproductionTemplateResult TODO

type PresignedURLOptions added in v0.7.25

type PresignedURLOptions struct {
	Query      *url.Values  `xml:"-" url:"-" header:"-"`
	Header     *http.Header `header:"-,omitempty" url:"-" xml:"-"`
	SignMerged bool         `xml:"-" url:"-" header:"-"`
	AuthTime   *AuthTime    `xml:"-" url:"-" header:"-"`
}

type ProgressEvent added in v0.7.13

type ProgressEvent struct {
	EventType     ProgressEventType
	RWBytes       int64
	ConsumedBytes int64
	TotalBytes    int64
	Err           error
}

type ProgressEventType added in v0.7.13

type ProgressEventType int
const (
	// 数据开始传输
	ProgressStartedEvent ProgressEventType = iota
	// 数据传输中
	ProgressDataEvent
	// 数据传输完成, 但不能表示对应API调用完成
	ProgressCompletedEvent
	// 只有在数据传输时发生错误才会返回
	ProgressFailedEvent
)

type ProgressFrame added in v0.7.11

type ProgressFrame struct {
	XMLName        xml.Name `xml:"Progress"`
	BytesScanned   int      `xml:"BytesScanned"`
	BytesProcessed int      `xml:"BytesProcessed"`
	BytesReturned  int      `xml:"BytesReturned"`
}

type ProgressListener added in v0.7.13

type ProgressListener interface {
	ProgressChangedCallback(event *ProgressEvent)
}

用户自定义Listener需要实现该方法

type PutAudioAuditingJobOptions added in v0.7.25

type PutAudioAuditingJobOptions struct {
	XMLName       xml.Name              `xml:"Request"`
	InputObject   string                `xml:"Input>Object,omitempty"`
	InputUrl      string                `xml:"Input>Url,omitempty"`
	InputDataId   string                `xml:"Input>DataId,omitempty"`
	InputUserInfo *UserExtraInfo        `xml:"Input>UserInfo,omitempty"`
	Conf          *AudioAuditingJobConf `xml:"Conf"`
}

PutAudioAuditingJobOptions is the option of PutAudioAuditingJob

type PutAudioAuditingJobResult added in v0.7.25

type PutAudioAuditingJobResult PutVideoAuditingJobResult

PutAudioAuditingJobResult is the result of PutAudioAuditingJob

type PutBucketReplicationOptions

type PutBucketReplicationOptions struct {
	XMLName xml.Name                `xml:"ReplicationConfiguration"`
	Role    string                  `xml:"Role"`
	Rule    []BucketReplicationRule `xml:"Rule"`
}

PutBucketReplicationOptions is the options of PutBucketReplication

type PutDocumentAuditingJobOptions added in v0.7.31

type PutDocumentAuditingJobOptions struct {
	XMLName       xml.Name                 `xml:"Request"`
	InputObject   string                   `xml:"Input>Object,omitempty"`
	InputUrl      string                   `xml:"Input>Url,omitempty"`
	InputType     string                   `xml:"Input>Type,omitempty"`
	InputDataId   string                   `xml:"Input>DataId,omitempty"`
	InputUserInfo *UserExtraInfo           `xml:"Input>UserInfo,omitempty"`
	Conf          *DocumentAuditingJobConf `xml:"Conf"`
}

PutDocumentAuditingJobOptions is the option of PutDocumentAuditingJob

type PutDocumentAuditingJobResult added in v0.7.31

type PutDocumentAuditingJobResult PutVideoAuditingJobResult

PutDocumentAuditingJobResult is the result of PutDocumentAuditingJob

type PutFetchTaskOptions added in v0.7.32

type PutFetchTaskOptions struct {
	Url                string       `json:"Url,omitempty" header:"-" xml:"-"`
	Key                string       `json:"Key,omitempty" header:"-" xml:"-"`
	MD5                string       `json:"MD5,omitempty" header:"-" xml:"-"`
	OnKeyExist         string       `json:"OnKeyExist,omitempty" header:"-" xml:"-"`
	IgnoreSameKey      bool         `json:"IgnoreSameKey,omitempty" header:"-" xml:"-"`
	SuccessCallbackUrl string       `json:"SuccessCallbackUrl,omitempty" header:"-" xml:"-"`
	FailureCallbackUrl string       `json:"FailureCallbackUrl,omitempty" header:"-" xml:"-"`
	XOptionHeader      *http.Header `json:"-", xml:"-" header:"-,omitempty"`
}

type PutFetchTaskResult added in v0.7.32

type PutFetchTaskResult struct {
	Code      int    `json:"code,omitempty"`
	Message   string `json:"message,omitempty"`
	RequestId string `json:"request_id,omitempty"`
	Data      struct {
		TaskId string `json:"taskId,omitempty"`
	} `json:"Data,omitempty"`
}

type PutTextAuditingJobOptions added in v0.7.31

type PutTextAuditingJobOptions struct {
	XMLName       xml.Name             `xml:"Request"`
	InputObject   string               `xml:"Input>Object,omitempty"`
	InputUrl      string               `xml:"Input>Url,omitempty"`
	InputContent  string               `xml:"Input>Content,omitempty"`
	InputDataId   string               `xml:"Input>DataId,omitempty"`
	InputUserInfo *UserExtraInfo       `xml:"Input>UserInfo,omitempty"`
	Conf          *TextAuditingJobConf `xml:"Conf"`
}

PutTextAuditingJobOptions is the option of PutTextAuditingJob

type PutTextAuditingJobResult added in v0.7.31

type PutTextAuditingJobResult GetTextAuditingJobResult

PutTextAuditingJobResult is the result of PutTextAuditingJob

type PutVideoAuditingJobOptions added in v0.7.11

type PutVideoAuditingJobOptions struct {
	XMLName       xml.Name              `xml:"Request"`
	InputObject   string                `xml:"Input>Object,omitempty"`
	InputUrl      string                `xml:"Input>Url,omitempty"`
	InputDataId   string                `xml:"Input>DataId,omitempty"`
	InputUserInfo *UserExtraInfo        `xml:"Input>UserInfo,omitempty"`
	Encryption    *Encryption           `xml:",omitempty"`
	Conf          *VideoAuditingJobConf `xml:"Conf"`
	Type          string                `xml:"Type,omitempty"`
	StorageConf   *StorageConf          `xml:"StorageConf,omitempty"`
}

PutVideoAuditingJobOptions is the option of PutVideoAuditingJob

type PutVideoAuditingJobResult added in v0.7.11

type PutVideoAuditingJobResult struct {
	XMLName    xml.Name `xml:"Response"`
	JobsDetail struct {
		JobId        string `xml:"JobId,omitempty"`
		State        string `xml:"State,omitempty"`
		CreationTime string `xml:"CreationTime,omitempty"`
		Object       string `xml:"Object,omitempty"`
		Url          string `xml:"Url,omitempty"`
	} `xml:"JobsDetail,omitempty"`
	RequestId string `xml:"RequestId,omitempty"`
}

PutVideoAuditingJobResult is the result of PutVideoAuditingJob

type PutVideoAuditingJobSnapshot added in v0.7.11

type PutVideoAuditingJobSnapshot struct {
	Mode         string  `xml:",omitempty"`
	Count        int     `xml:",omitempty"`
	TimeInterval float32 `xml:",omitempty"`
}

PutVideoAuditingJobSnapshot is the snapshot config of VideoAuditingJobConf

type PutVirusDetectJobOptions added in v0.7.34

type PutVirusDetectJobOptions struct {
	XMLName     xml.Name            `xml:"Request"`
	InputObject string              `xml:"Input>Object,omitempty"`
	InputUrl    string              `xml:"Input>Url,omitempty"`
	Conf        *VirusDetectJobConf `xml:"Conf"`
}

PutVirusDetectJobOptions is the option of PutVirusDetectJob

type PutVirusDetectJobResult added in v0.7.34

type PutVirusDetectJobResult PutVideoAuditingJobResult

PutVirusDetectJobResult is the result of PutVirusDetectJob

type PutWebpageAuditingJobOptions added in v0.7.33

type PutWebpageAuditingJobOptions struct {
	XMLName       xml.Name                `xml:"Request"`
	InputUrl      string                  `xml:"Input>Url,omitempty"`
	InputDataId   string                  `xml:"Input>DataId,omitempty"`
	InputUserInfo *UserExtraInfo          `xml:"Input>UserInfo,omitempty"`
	Conf          *WebpageAuditingJobConf `xml:"Conf"`
}

PutWebpageAuditingJobOptions is the option of PutWebpageAuditingJob

type PutWebpageAuditingJobResult added in v0.7.33

type PutWebpageAuditingJobResult PutVideoAuditingJobResult

PutWebpageAuditingJobResult is the result of PutWebpageAuditingJob

type QRcodeInfo added in v0.7.25

type QRcodeInfo struct {
	CodeUrl      string        `xml:"CodeUrl,omitempty"`
	CodeLocation *CodeLocation `xml:"CodeLocation,omitempty"`
}

type QualityEstimate added in v0.7.39

type QualityEstimate struct {
	Score         string `xml:"Score,omitempty"`
	VqaPlusResult struct {
		NoAudio        bool `xml:"NoAudio,omitempty"`
		NoVideo        bool `xml:"NoVideo,omitempty"`
		DetailedResult []struct {
			Type  string `xml:"Type,omitempty"`
			Items []struct {
				Confidence      int     `xml:"Confidence,omitempty"`
				StartTimeOffset float32 `xml:"StartTimeOffset,omitempty"`
				EndTimeOffset   float32 `xml:"EndTimeOffset,omitempty"`
				AreaCoordSet    []int   `xml:"AreaCoordSet,omitempty"`
			} `xml:"Items,omitempty"`
		} `xml:"DetailedResult,omitempty"`
	} `xml:"VqaPlusResult,omitempty"`
}

QualityEstimate TODO

type QualityEstimateConfig added in v0.7.41

type QualityEstimateConfig struct {
	Rotate string `xml:"Rotate,omitempty"`
	Mode   string `xml:"Mode,omitempty"`
}

QualityEstimate TODO

type Query added in v0.7.47

type Query struct {
	Operation  string        `json:"Operation, omitempty" url:"-" `  // 操作运算符。枚举值: not:逻辑非。 or:逻辑或。 and:逻辑与。 lt:小于。 lte:小于等于。 gt:大于。 gte:大于等于。 eq:等于。 exist:存在性查询。 prefix:前缀查询。 match-phrase:字符串匹配查询。 nested:字段为数组时,其中同一对象内逻辑条件查询。
	SubQueries []*SubQueries `json:"SubQueries, omitempty" url:"-" ` // 子查询的结构体。 只有当Operations为逻辑运算符(and、or、not或nested)时,才能设置子查询条件。 在逻辑运算符为and/or/not时,其SubQueries内描述的所有条件需符合父级设置的and/or/not逻辑关系。 在逻辑运算符为nested时,其父级的Field必须为一个数组类的字段(如:Labels)。 子查询条件SubQueries组的Operation必须为and/or/not中的一个或多个,其Field必须为父级Field的子属性。
	Field      string        `json:"Field, omitempty" url:"-" `      // 字段名称。关于支持的字段,请参考字段和操作符的支持列表。
	Value      string        `json:"Value, omitempty" url:"-" `      // 查询的字段值。当Operations为逻辑运算符(and、or、not或nested)时,该字段无效。
	OptHeaders *OptHeaders   `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type RangeOptions added in v0.7.25

type RangeOptions struct {
	HasStart bool
	HasEnd   bool
	Start    int64
	End      int64
}

func GetRange added in v0.7.32

func GetRange(rangeStr string) (*RangeOptions, error)

func GetRangeOptions added in v0.7.26

func GetRangeOptions(opt *ObjectGetOptions) (*RangeOptions, error)

type RecognitionInfo added in v0.7.11

type RecognitionInfo struct {
	Code               int              `xml:"Code,omitempty"`
	Msg                string           `xml:"Msg,omitempty"`
	HitFlag            int              `xml:"HitFlag,omitempty"`
	Score              int              `xml:"Score,omitempty"`
	Label              string           `xml:"Label,omitempty"`
	Count              int              `xml:"Count,omitempty"`
	Category           string           `xml:"Category,omitempty"`
	SubLabel           string           `xml:"SubLabel,omitempty"`
	Keywords           []string         `xml:"Keywords,omitempty"`
	OcrResults         []OcrResult      `xml:"OcrResults,omitempty"`
	ObjectResults      []ObjectResult   `xml:"ObjectResults,omitempty"`
	LibResults         []LibResult      `xml:"LibResults,omitempty"`
	SpeakerResults     []LanguageResult `xml:"SpeakerResults,omitempty"`
	RecognitionResults []LanguageResult `xml:"RecognitionResults,omitempty"`
}

RecognitionInfo is the result of auditing scene

type RecognizeLogoOptions added in v0.7.42

type RecognizeLogoOptions struct {
	DetectUrl   string `url:"detect-url,omitempty"`
	IgnoreError int    `url:"ignore-error,omitempty"`
}

RecognizeLogoOptions Logo识别选项

type RecognizeLogoResults added in v0.7.42

type RecognizeLogoResults struct {
	XMLName  xml.Name `xml:"RecognitionResult"`
	Status   int      `xml:"Status"`
	LogoInfo []struct {
		Name     string `xml:"Name,omitempty"`
		Sorce    string `xml:"Sorce,omitempty"`
		Location struct {
			Point []string `xml:"Point,omitempty"`
		} `xml:"Location,omitempty"`
	} `xml:"LogoInfo,omitempty"`
}

RecognizeLogoResults Logo识别结果

type RedirectRequestsProtocol

type RedirectRequestsProtocol struct {
	Protocol string `xml:"Protocol,omitempty"`
}

type ReplicationDestination

type ReplicationDestination struct {
	Bucket       string `xml:"Bucket"`
	StorageClass string `xml:"StorageClass,omitempty"`
}

ReplicationDestination is the sub struct of BucketReplicationRule

type ReportBadcaseOptions added in v0.7.36

type ReportBadcaseOptions struct {
	XMLName        xml.Name `xml:"Request"`
	ContentType    int      `xml:",omitempty"`
	Text           string   `xml:",omitempty"`
	Url            string   `xml:",omitempty"`
	Label          string   `xml:",omitempty"`
	SuggestedLabel string   `xml:",omitempty"`
	JobId          string   `xml:",omitempty"`
	ModerationTime string   `xml:",omitempty"`
}

ReportBadcaseOptions

type ReportBadcaseResult added in v0.7.36

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

ReportBadcaseResult

type Response

type Response struct {
	*http.Response
}

Response API 响应

type Results

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

type RetryError added in v0.7.48

type RetryError struct {
	Errs []error
}

func (*RetryError) Add added in v0.7.48

func (r *RetryError) Add(err error)

func (*RetryError) Error added in v0.7.48

func (r *RetryError) Error() string

type RetryOptions added in v0.7.32

type RetryOptions struct {
	Count          int
	Interval       time.Duration
	AutoSwitchHost bool
}

type SDRtoHDR added in v0.7.34

type SDRtoHDR struct {
	HdrMode string `xml:"HdrMode,omitempty"` // HLG、HDR10
}

SDRtoHDR TODO

type SceneChangeInfo added in v0.7.42

type SceneChangeInfo struct {
	Mode string `xml:"Mode,omitempty"`
	Time string `xml:"Time,omitempty"`
}

SceneChangeInfo 转场参数

type SearchImageOptions added in v0.7.51

type SearchImageOptions struct {
	DatasetName    string      `json:"DatasetName, omitempty" url:"-" `    // 数据集名称,同一个账户下唯一。
	Mode           string      `json:"Mode, omitempty" url:"-" `           // 指定检索方式为图片或文本,pic 为图片检索,text 为文本检索,默认为 pic。
	URI            string      `json:"URI, omitempty" url:"-" `            // 资源标识字段,表示需要建立索引的文件地址(Mode 为 pic 时必选)。
	Limit          int         `json:"Limit, omitempty" url:"-" `          // 返回相关图片的数量,默认值为10,最大值为100。
	Text           string      `json:"Text, omitempty" url:"-" `           // 检索语句,检索方式为 text 时必填,最多支持60个字符 (Mode 为 text 时必选)。
	MatchThreshold int         `json:"MatchThreshold, omitempty" url:"-" ` // 出参 Score(相关图片匹配得分) 中,只有超过 MatchThreshold 值的结果才会返回。默认值为0,推荐值为80。
	OptHeaders     *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type SearchImageResult added in v0.7.51

type SearchImageResult struct {
	ImageResult []*ImageResult `json:"ImageResult"` // 图像检索识别结果信息列表。
	RequestId   string         `json:"RequestId"`   // 请求ID。
}

type Segment added in v0.7.32

type Segment struct {
	Format         string      `xml:"Format,omitempty"`
	Duration       string      `xml:"Duration,omitempty"`
	TranscodeIndex string      `xml:"TranscodeIndex,omitempty"`
	HlsEncrypt     *HlsEncrypt `xml:"HlsEncrypt,omitempty"`
	StartTime      string      `xml:"StartTime,omitempty"`
	EndTime        string      `xml:"EndTime,omitempty"`
}

Segment TODO

type SegmentVideoBody added in v0.7.42

type SegmentVideoBody struct {
	Mode              string `xml:"Mode,omitempty"`
	SegmentType       string `xml:"SegmentType,omitempty"`
	BackgroundBlue    string `xml:"BackgroundBlue,omitempty"`
	BackgroundRed     string `xml:"BackgroundRed,omitempty"`
	BackgroundGreen   string `xml:"BackgroundGreen,omitempty"`
	BackgroundLogoUrl string `xml:"BackgroundLogoUrl,omitempty"`
	BinaryThreshold   string `xml:"BinaryThreshold,omitempty"`
	RemoveRed         string `xml:"RemoveRed,omitempty"`
	RemoveGreen       string `xml:"RemoveGreen,omitempty"`
	RemoveBlue        string `xml:"RemoveBlue,omitempty"`
}

SegmentVideoBody TODO

type SelectInputSerialization added in v0.7.11

type SelectInputSerialization struct {
	CompressionType string                  `xml:"CompressionType,omitempty"`
	CSV             *CSVInputSerialization  `xml:"CSV,omitempty"`
	JSON            *JSONInputSerialization `xml:"JSON,omitempty"`
}

type SelectOutputSerialization added in v0.7.11

type SelectOutputSerialization struct {
	CSV  *CSVOutputSerialization  `xml:"CSV,omitempty"`
	JSON *JSONOutputSerialization `xml:"JSON,omitempty"`
}

type ServiceGetOptions added in v0.7.42

type ServiceGetOptions struct {
	TagKey     string `url:"tagkey,omitempty"`
	TagValue   string `url:"tagvalue,omitempty"`
	MaxKeys    int64  `url:"max-keys,omitempty"`
	Marker     string `url:"marker,omitempty"`
	Range      string `url:"range,omitempty"`
	CreateTime int64  `url:"create-time,omitempty"`
	Region     string `url:"region,omitempty"`
}

type ServiceGetResult

type ServiceGetResult struct {
	XMLName     xml.Name `xml:"ListAllMyBucketsResult"`
	Owner       *Owner   `xml:"Owner"`
	Buckets     []Bucket `xml:"Buckets>Bucket,omitempty"`
	Marker      string   `xml:"Marker"`
	NextMarker  string   `xml:"NextMarker"`
	IsTruncated bool     `xml:"IsTruncated"`
}

ServiceGetResult is the result of Get Service

type ServiceService

type ServiceService service

Service 相关 API

func (*ServiceService) Get

Get Service 接口实现获取该用户下所有Bucket列表。

该API接口需要使用Authorization签名认证, 且只能获取签名中AccessID所属账户的Bucket列表。

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

type Snapshot added in v0.7.32

type Snapshot struct {
	Mode                 string                `xml:"Mode,omitempty"`
	Start                string                `xml:"Start,omitempty"`
	TimeInterval         string                `xml:"TimeInterval,omitempty"`
	Count                string                `xml:"Count,omitempty"`
	Width                string                `xml:"Width,omitempty"`
	Height               string                `xml:"Height,omitempty"`
	CIParam              string                `xml:"CIParam,omitempty"`
	IsCheckCount         bool                  `xml:"IsCheckCount,omitempty"`
	IsCheckBlack         bool                  `xml:"IsCheckBlack,omitempty"`
	BlackLevel           string                `xml:"BlackLevel,omitempty"`
	PixelBlackThreshold  string                `xml:"PixelBlackThreshold,omitempty"`
	SnapshotOutMode      string                `xml:"SnapshotOutMode,omitempty"`
	SpriteSnapshotConfig *SpriteSnapshotConfig `xml:"SpriteSnapshotConfig,omitempty"`
}

Snapshot TODO

type SoundHoundResult added in v0.7.42

type SoundHoundResult struct {
	SongList struct {
		Inlier     int    `xml:"Inlier,omitempty"`
		SingerName string `xml:"SingerName,omitempty"`
		SongName   string `xml:"SongName,omitempty"`
	} `xml:"SongList,omitempty"`
}

SoundHoundResult TODO

type SpeechRecognition added in v0.7.34

type SpeechRecognition struct {
	ChannelNum         string `xml:"ChannelNum,omitempty"`
	ConvertNumMode     string `xml:"ConvertNumMode,omitempty"`
	EngineModelType    string `xml:"EngineModelType,omitempty"`
	FilterDirty        string `xml:"FilterDirty,omitempty"`
	FilterModal        string `xml:"FilterModal,omitempty"`
	ResTextFormat      string `xml:"ResTextFormat,omitempty"`
	SpeakerDiarization string `xml:"SpeakerDiarization,omitempty"`
	SpeakerNumber      string `xml:"SpeakerNumber,omitempty"`
	FilterPunc         string `xml:"FilterPunc,omitempty"`
	OutputFileType     string `xml:"OutputFileType,omitempty"`
	FlashAsr           string `xml:"FlashAsr,omitempty"`
	Format             string `xml:"Format,omitempty"`
	FirstChannelOnly   string `xml:"FirstChannelOnly,omitempty"`
	WordInfo           string `xml:"WordInfo,omitempty"`
	SentenceMaxLength  string `xml:"SentenceMaxLength,omitempty"`
}

SpeechRecognition TODO

type SpeechRecognitionFlashResult added in v0.7.42

type SpeechRecognitionFlashResult struct {
	ChannelId    int32                           `xml:"channel_id,omitempty"`
	Text         string                          `xml:"text,omitempty"`
	SentenceList []SpeechRecognitionSentenceList `xml:"sentence_list,omitempty"`
}

type SpeechRecognitionResult added in v0.7.34

type SpeechRecognitionResult struct {
	AudioTime                     float64                        `xml:"AudioTime,omitempty"`
	Result                        []string                       `xml:"Result,omitempty"`
	ObjectName                    string                         `xml:"ObjectName,omitempty"`
	DetailObjectName              string                         `xml:"DetailObjectName,omitempty"`
	SpeechRecognitionFlashResult  *SpeechRecognitionFlashResult  `xml:"FlashResult,omitempty"`
	SpeechRecognitionResultDetail *SpeechRecognitionResultDetail `xml:"ResultDetail,omitempty"`
}

SpeechRecognitionResult TODO

type SpeechRecognitionResultDetail added in v0.7.42

type SpeechRecognitionResultDetail struct {
	FinalSentence string                   `xml:"FinalSentence,omitempty"`
	SliceSentence string                   `xml:"SliceSentence,omitempty"`
	StartMs       string                   `xml:"StartMs,omitempty"`
	EndMs         string                   `xml:"EndMs,omitempty"`
	WordsNum      string                   `xml:"WordsNum,omitempty"`
	SpeechSpeed   string                   `xml:"SpeechSpeed,omitempty"`
	SpeakerId     string                   `xml:"SpeakerId,omitempty"`
	Words         []SpeechRecognitionWords `xml:"Words,omitempty"`
}

type SpeechRecognitionSentenceList added in v0.7.42

type SpeechRecognitionSentenceList struct {
	Text      string                      `xml:"text,omitempty"`
	StartTime string                      `xml:"start_time,omitempty"`
	EndTime   string                      `xml:"end_time,omitempty"`
	SpeakerId string                      `xml:"speaker_id,omitempty"`
	WordList  []SpeechRecognitionWordList `xml:"word_list,omitempty"`
}

type SpeechRecognitionWordList added in v0.7.42

type SpeechRecognitionWordList struct {
	Word      string `xml:"word,omitempty"`
	StartTime string `xml:"start_time,omitempty"`
	EndTime   string `xml:"end_time,omitempty"`
}

type SpeechRecognitionWords added in v0.7.42

type SpeechRecognitionWords struct {
	Word          string `xml:"Word,omitempty"`
	OffsetStartMs string `xml:"OffsetStartMs,omitempty"`
	OffsetEndMs   string `xml:"OffsetEndMs,omitempty"`
}

type SplitVideoInfoResult added in v0.7.42

type SplitVideoInfoResult struct {
	TimeInfo []struct {
		Index     string `xml:"Index,omitempty"`
		PartBegin string `xml:"PartBegin,omitempty"`
		PartEnd   string `xml:"PartEnd,omitempty"`
	} `xml:"TimeInfo,omitempty"`
}

SplitVideoInfoResult TODO

type SplitVideoParts added in v0.7.42

type SplitVideoParts struct {
	Mode string `xml:"Mode,omitempty"`
}

SplitVideoParts TODO

type SpriteSnapshotConfig added in v0.7.32

type SpriteSnapshotConfig struct {
	CellHeight  string `xml:"CellHeight,omitempty"`
	CellWidth   string `xml:"CellWidth,omitempty"`
	Color       string `xml:"Color,omitempty"`
	Columns     string `xml:"Columns,omitempty"`
	Lines       string `xml:"Lines,omitempty"`
	Margin      string `xml:"Margin,omitempty"`
	Padding     string `xml:"Padding,omitempty"`
	ScaleMethod string `xml:"ScaleMethod,omitempty"`
}

SpriteSnapshotConfig TODO

type StatsFrame added in v0.7.11

type StatsFrame struct {
	XMLName        xml.Name `xml:"Stats"`
	BytesScanned   int      `xml:"BytesScanned"`
	BytesProcessed int      `xml:"BytesProcessed"`
	BytesReturned  int      `xml:"BytesReturned"`
}

type StorageConf added in v0.7.41

type StorageConf struct {
	Path string `xml:",omitempty"`
}

StorageConf is live video storage config of PutVideoAuditingJobOptions

type StreamExtract added in v0.7.35

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

StreamExtract TODO

type StsCredentialTransport added in v0.7.54

type StsCredentialTransport struct {
	Transport http.RoundTripper
	SecretID  string
	SecretKey string
	Policy    *CredentialPolicy
	Host      string
	Region    string
	// contains filtered or unexported fields
}

func (*StsCredentialTransport) GetCredential added in v0.7.54

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

func (*StsCredentialTransport) RoundTrip added in v0.7.54

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

func (*StsCredentialTransport) UpdateCredential added in v0.7.54

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

type StyleRule added in v0.7.36

type StyleRule struct {
	StyleName string `xml:"StyleName,omitempty"`
	StyleBody string `xml:"StyleBody,omitempty"`
}

type SubQueries added in v0.7.51

type SubQueries struct {
	Value      string      `json:"Value, omitempty" url:"-" `     // 查询的字段值。当Operations为逻辑运算符(and、or、not或nested)时,该字段无效。
	Operation  string      `json:"Operation, omitempty" url:"-" ` //  操作运算符。枚举值:not:逻辑非。or:逻辑或。and:逻辑与。lt:小于。lte:小于等于。gt:大于。gte:大于等于。eq:等于。exist:存在性查询。prefix:前缀查询。match-phrase:字符串匹配查询。nested:字段为数组时,其中同一对象内逻辑条件查询。
	Field      string      `json:"Field, omitempty" url:"-" `     // 字段名称。关于支持的字段,请参考字段和操作符的支持列表。
	OptHeaders *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type Subtitle added in v0.7.42

type Subtitle struct {
	Url          string `xml:"Url,omitempty"`
	Embed        string `xml:"Embed,omitempty"`
	FontType     string `xml:"FontType,omitempty"`
	FontSize     string `xml:"FontSize,omitempty"`
	FontColor    string `xml:"FontColor,omitempty"`
	OutlineColor string `xml:"OutlineColor,omitempty"`
	VMargin      string `xml:"VMargin,omitempty"`
}

Subtitle TODO

type Subtitles added in v0.7.42

type Subtitles struct {
	Subtitle []Subtitle `xml:"Subtitle,omitempty"`
}

Subtitles TODO

type SuperResolution added in v0.7.34

type SuperResolution struct {
	Resolution    string `xml:"Resolution,omitempty"` // sdtohd、hdto4k
	EnableScaleUp string `xml:"EnableScaleUp,omitempty"`
	Version       string `xml:"Version,omitempty"`
}

SuperResolution TODO

type Template added in v0.7.35

type Template struct {
	TemplateId        string             `xml:"TemplateId,omitempty"`
	Tag               string             `xml:"Code,omitempty"`
	Name              string             `xml:"Name,omitempty"`
	TransTpl          *Transcode         `xml:"TransTpl,omitempty"`
	CreateTime        string             `xml:"CreateTime,omitempty"`
	UpdateTime        string             `xml:"UpdateTime,omitempty"`
	BucketId          string             `xml:"BucketId,omitempty"`
	Category          string             `xml:"Category,omitempty"`
	Snapshot          *Snapshot          `xml:"Snapshot,omitempty"`
	Animation         *Animation         `xml:"Animation,omitempty"`
	ConcatTemplate    *ConcatTemplate    `xml:"ConcatTemplate,omitempty"`
	VideoProcess      *VideoProcess      `xml:"VideoProcess,omitempty"`
	VideoMontage      *VideoMontage      `xml:"VideoMontage,omitempty"`
	VoiceSeparate     *VoiceSeparate     `xml:"VoiceSeparate,omitempty"`
	SuperResolution   *SuperResolution   `xml:"SuperResolution,omitempty"`
	PicProcess        *PicProcess        `xml:"PicProcess,omitempty"`
	Watermark         *Watermark         `xml:"Watermark,omitempty"`
	TransProTpl       *TranscodePro      `xml:"TransProTpl,omitempty"`
	TtsTpl            *TtsTpl            `xml:"TtsTpl,omitempty"`
	SmartCover        *NodeSmartCover    `xml:"SmartCover,omitempty" json:"SmartCover,omitempty"`
	SpeechRecognition *SpeechRecognition `xml:"SpeechRecognition,omitempty" json:"SpeechRecognition,omitempty"`
	NoiseReduction    *NoiseReduction    `xml:"NoiseReduction,omitempty" json:"NoiseReduction,omitempty"`
	VideoEnhance      *VideoEnhance      `xml:"VideoEnhance,omitempty" json:"VideoEnhance,omitempty"`
	VideoTargetRec    *VideoTargetRec    `xml:"VideoTargetRec,omitempty" json:"VideoTargetRec,omitempty"`
	ImageOCR          *ImageOCRTemplate  `xml:"ImageOCR,omitempty" json:"ImageOCR,omitempty"`
}

Template TODO

type Text added in v0.7.21

type Text struct {
	FontSize     string `xml:"FontSize,omitempty"`
	FontType     string `xml:"FontType,omitempty"`
	FontColor    string `xml:"FontColor,omitempty"`
	Transparency string `xml:"Transparency,omitempty"`
	Text         string `xml:"Text,omitempty"`
}

Text TODO

type TextAuditingJobConf added in v0.7.31

type TextAuditingJobConf struct {
	DetectType      string      `xml:",omitempty"`
	Callback        string      `xml:",omitempty"`
	CallbackVersion string      `xml:",omitempty"`
	BizType         string      `xml:",omitempty"`
	CallbackType    int         `xml:",omitempty"`
	Freeze          *FreezeConf `xml:",omitempty"`
}

TextAuditingJobConf is the config of PutAudioAuditingJobOptions

type TextAuditingJobDetail added in v0.7.31

type TextAuditingJobDetail 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"`
	Content       string               `xml:",omitempty"`
	SectionCount  int                  `xml:",omitempty"`
	Label         string               `xml:",omitempty"`
	Result        int                  `xml:",omitempty"`
	PornInfo      *TextRecognitionInfo `xml:",omitempty"`
	TerrorismInfo *TextRecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *TextRecognitionInfo `xml:",omitempty"`
	AdsInfo       *TextRecognitionInfo `xml:",omitempty"`
	IllegalInfo   *TextRecognitionInfo `xml:",omitempty"`
	AbuseInfo     *TextRecognitionInfo `xml:",omitempty"`
	Section       []TextSectionResult  `xml:",omitempty"`
	UserInfo      *UserExtraInfo       `xml:",omitempty"`
	ListInfo      *UserListInfo        `xml:",omitempty"`
	ForbidState   int                  `xml:",omitempty"`
	ValueInfo     *TextRecognitionInfo `xml:",omitempty"`
	SpamInfo      *TextRecognitionInfo `xml:",omitempty"`
}

TextAuditingJobDetail is the detail of GetTextAuditingJobResult

type TextDetections added in v0.7.36

type TextDetections struct {
	DetectedText string        `xml:"DetectedText,omitempty"`
	Confidence   int           `xml:"Confidence,omitempty"`
	Polygon      []Polygon     `xml:"Polygon,omitempty"`
	ItemPolygon  []ItemPolygon `xml:"ItemPolygon,omitempty"`
	Words        []Words       `xml:"Words,omitempty"`
	WordPolygon  []WordPolygon `xml:"WordPolygon,omitempty"`
}

type TextLibResult added in v0.7.36

type TextLibResult struct {
	LibType  int32    `xml:"LibType,omitempty"`
	LibName  string   `xml:"LibName,omitempty"`
	Keywords []string `xml:"Keywords,omitempty"`
}

TextLibResult

type TextRecognitionInfo added in v0.7.33

type TextRecognitionInfo struct {
	Code       int             `xml:",omitempty"`
	HitFlag    int             `xml:",omitempty"`
	Score      int             `xml:",omitempty"`
	Count      int             `xml:",omitempty"`
	Keywords   string          `xml:",omitempty"`
	LibResults []TextLibResult `xml:",omitempty"`
	SubLabel   string          `xml:",omitempty"`
}

TextRecognitionInfo

type TextSectionResult added in v0.7.31

type TextSectionResult struct {
	StartByte     int                  `xml:",omitempty"`
	Label         string               `xml:",omitempty"`
	Result        int                  `xml:",omitempty"`
	PornInfo      *TextRecognitionInfo `xml:",omitempty"`
	TerrorismInfo *TextRecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *TextRecognitionInfo `xml:",omitempty"`
	AdsInfo       *TextRecognitionInfo `xml:",omitempty"`
	IllegalInfo   *TextRecognitionInfo `xml:",omitempty"`
	AbuseInfo     *TextRecognitionInfo `xml:",omitempty"`
	ValueInfo     *TextRecognitionInfo `xml:",omitempty"`
	SpamInfo      *TextRecognitionInfo `xml:",omitempty"`
}

TextSectionResult is the section result of TextAuditingJobDetail

type TimeInterval added in v0.7.21

type TimeInterval struct {
	Start    string `xml:"Start,omitempty"`
	Duration string `xml:"Duration,omitempty"`
}

TimeInterval TODO

type Topology added in v0.7.34

type Topology struct {
	Dependencies map[string]string `xml:"Dependencies,omitempty" json:"Dependencies,omitempty"`
	Nodes        map[string]Node   `xml:"Nodes,omitempty" json:"Nodes,omitempty"`
}

Topology TODO

func (*Topology) UnmarshalXML added in v0.7.34

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

UnmarshalXML TODO

type TransConfig added in v0.7.21

type TransConfig struct {
	AdjDarMethod          string      `xml:"AdjDarMethod,omitempty"`
	IsCheckReso           string      `xml:"IsCheckReso,omitempty"`
	ResoAdjMethod         string      `xml:"ResoAdjMethod,omitempty"`
	IsCheckVideoBitrate   string      `xml:"IsCheckVideoBitrate,omitempty"`
	VideoBitrateAdjMethod string      `xml:"VideoBitrateAdjMethod,omitempty"`
	IsCheckAudioBitrate   string      `xml:"IsCheckAudioBitrate,omitempty"`
	AudioBitrateAdjMethod string      `xml:"AudioBitrateAdjMethod,omitempty"`
	DeleteMetadata        string      `xml:"DeleteMetadata,omitempty"`
	IsHdr2Sdr             string      `xml:"IsHdr2Sdr,omitempty"`
	HlsEncrypt            *HlsEncrypt `xml:"HlsEncrypt,omitempty"`
}

TransConfig TODO

type Transcode added in v0.7.21

type Transcode struct {
	Container     *Container    `xml:"Container,omitempty"`
	Video         *Video        `xml:"Video,omitempty"`
	TimeInterval  *TimeInterval `xml:"TimeInterval,omitempty"`
	Audio         *Audio        `xml:"Audio,omitempty"`
	TransConfig   *TransConfig  `xml:"TransConfig,omitempty"`
	AudioMix      *AudioMix     `xml:"AudioMix,omitempty"`
	AudioMixArray []AudioMix    `xml:"AudioMixArray,omitempty"`
}

Transcode TODO

type TranscodePro added in v0.7.42

type TranscodePro struct {
	Container    *Container         `xml:"Container,omitempty"`
	Video        *TranscodeProVideo `xml:"Video,omitempty"`
	Audio        *TranscodeProAudio `xml:"Audio,omitempty"`
	TimeInterval *TimeInterval      `xml:"TimeInterval,omitempty"`
	TransConfig  *TransConfig       `xml:"TransConfig,omitempty"`
}

TranscodePro TODO

type TranscodeProAudio added in v0.7.39

type TranscodeProAudio struct {
	Codec  string `xml:"Codec,omitempty"`
	Remove string `xml:"Remove,omitempty"`
}

TranscodeProAudio TODO

type TranscodeProVideo added in v0.7.39

type TranscodeProVideo struct {
	Codec      string `xml:"Codec,omitempty"`
	Profile    string `xml:"Profile,omitempty"`
	Width      string `xml:"Width,omitempty"`
	Height     string `xml:"Height,omitempty"`
	Interlaced string `xml:"Interlaced,omitempty"`
	Fps        string `xml:"Fps,omitempty"`
	Bitrate    string `xml:"Bitrate,omitempty"`
	Rotate     string `xml:"Rotate,omitempty"`
}

TranscodeProVideo TODO

type Translation added in v0.7.39

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

Translation TODO

type TriggerWorkflowOptions added in v0.7.34

type TriggerWorkflowOptions struct {
	WorkflowId string `url:"workflowId"`
	Object     string `url:"object"`
	Name       string `url:"name"`
}

TriggerWorkflowOptions TODO

type TriggerWorkflowResult added in v0.7.34

type TriggerWorkflowResult struct {
	XMLName    xml.Name `xml:"Response"`
	InstanceId string   `xml:"InstanceId"`
	RequestId  string   `xml:"RequestId"`
}

TriggerWorkflowResult TODO

type TtsConfig added in v0.7.39

type TtsConfig struct {
	Input     string `xml:"Input,omitempty"`
	InputType string `xml:"InputType,omitempty"`
}

TtsConfig TODO

type TtsTpl added in v0.7.39

type TtsTpl struct {
	Mode      string `xml:"Mode,omitempty"`
	Codec     string `xml:"Codec,omitempty"`
	VoiceType string `xml:"VoiceType,omitempty"`
	Volume    string `xml:"Volume,omitempty"`
	Speed     string `xml:"Speed,omitempty"`
}

TtsTpl TODO

type UpdateDatasetOptions added in v0.7.47

type UpdateDatasetOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	Description string      `json:"Description, omitempty" url:"-" ` // 数据集描述信息。长度为1~256个英文或中文字符,默认值为空。
	TemplateId  string      `json:"TemplateId, omitempty" url:"-" `  // 该参数表示模板,在建立元数据索引时,后端将根据模板来决定收集哪些元数据。每个模板都包含一个或多个算子,不同的算子表示不同的元数据。目前支持的模板: Official:Empty:默认为空的模板,表示不进行元数据的采集。 Official:COSBasicMeta:基础信息模板,包含COS文件基础元信息算子,表示采集cos文件的名称、类型、acl等基础元信息数据。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type UpdateDatasetResult added in v0.7.47

type UpdateDatasetResult struct {
	RequestId string   `json:"RequestId"` // 请求ID
	Dataset   *Dataset `json:"Dataset"`   // 数据集信息
}

type UpdateDocProcessQueueOptions added in v0.7.13

type UpdateDocProcessQueueOptions struct {
	XMLName      xml.Name                     `xml:"Request"`
	Name         string                       `xml:"Name,omitempty"`
	QueueID      string                       `xml:"QueueID,omitempty"`
	State        string                       `xml:"State,omitempty"`
	NotifyConfig *DocProcessQueueNotifyConfig `xml:"NotifyConfig,omitempty"`
}

type UpdateDocProcessQueueResult added in v0.7.13

type UpdateDocProcessQueueResult struct {
	XMLName   xml.Name         `xml:"Response"`
	RequestId string           `xml:"RequestId"`
	Queue     *DocProcessQueue `xml:"Queue"`
}

type UpdateFileMetaIndexOptions added in v0.7.47

type UpdateFileMetaIndexOptions struct {
	DatasetName string      `json:"DatasetName, omitempty" url:"-" ` // 数据集名称,同一个账户下唯一。
	Callback    string      `json:"Callback, omitempty" url:"-" `    // 元数据索引结果(以回调形式发送至您的回调地址,支持以 http:// 或者 https:// 开头的地址,例如: http://www.callback.com
	File        *File       `json:"File, omitempty" url:"-" `        // 用于建立索引的文件信息。
	OptHeaders  *OptHeaders `header:"-, omitempty" url:"-" json:"-" xml:"-"`
}

type UpdateFileMetaIndexResult added in v0.7.47

type UpdateFileMetaIndexResult struct {
	RequestId string `json:"RequestId"` // 请求ID
	EventId   string `json:"EventId"`   // 创建元数据索引的任务ID
}

type UpdateMediaPlayKeyOptions added in v0.7.48

type UpdateMediaPlayKeyOptions struct {
	MasterPlayKey string `url:"masterPlayKey,omitempty"`
	BackupPlayKey string `url:"backupPlayKey,omitempty"`
}

type UpdateMediaProcessQueueOptions added in v0.7.21

type UpdateMediaProcessQueueOptions struct {
	XMLName      xml.Name                       `xml:"Request"`
	Name         string                         `xml:"Name,omitempty"`
	QueueID      string                         `xml:"QueueID,omitempty"`
	State        string                         `xml:"State,omitempty"`
	NotifyConfig *MediaProcessQueueNotifyConfig `xml:"NotifyConfig,omitempty"`
}

UpdateMediaProcessQueueOptions TODO

type UpdateMediaProcessQueueResult added in v0.7.21

type UpdateMediaProcessQueueResult struct {
	XMLName   xml.Name           `xml:"Response"`
	RequestId string             `xml:"RequestId"`
	Queue     *MediaProcessQueue `xml:"Queue"`
}

UpdateMediaProcessQueueResult TODO

type UserExtraInfo added in v0.7.36

type UserExtraInfo struct {
	TokenId        string `xml:",omitempty"`
	Nickname       string `xml:",omitempty"`
	DeviceId       string `xml:",omitempty"`
	AppId          string `xml:",omitempty"`
	Room           string `xml:",omitempty"`
	IP             string `xml:",omitempty"`
	Type           string `xml:",omitempty"`
	ReceiveTokenId string `xml:",omitempty"`
	Gender         string `xml:",omitempty"`
	Level          string `xml:",omitempty"`
	Role           string `xml:",omitempty"`
}

UserExtraInfo is user defined information

type UserListInfo added in v0.7.39

type UserListInfo struct {
	ListResults []UserListResults `xml:",omitempty"`
}

type UserListResults added in v0.7.39

type UserListResults struct {
	ListType *int   `xml:",omitempty"`
	ListName string `xml:",omitempty"`
	Entity   string `xml:",omitempty"`
}

UserListResults 命中账号黑白名单信息

type VTRTranscode added in v0.7.55

type VTRTranscode struct {
	Container *Container `xml:"Container,omitempty"`
	Video     *VTRVideo  `xml:"Video,omitempty"`
}

VTRTranscode TODO

type VTRVideo added in v0.7.55

type VTRVideo struct {
	Codec   string `xml:"Codec"`
	Bitrate string `xml:"Bitrate,omitempty"`
	Crf     string `xml:"Crf,omitempty"`
	Width   string `xml:"Width,omitempty"`
	Height  string `xml:"Height,omitempty"`
	Fps     string `xml:"Fps,omitempty"`
}

VTRVideo TODO

type Video added in v0.7.21

type Video struct {
	Codec                      string           `xml:"Codec"`
	Width                      string           `xml:"Width,omitempty"`
	Height                     string           `xml:"Height,omitempty"`
	Fps                        string           `xml:"Fps,omitempty"`
	Remove                     string           `xml:"Remove,omitempty"`
	Profile                    string           `xml:"Profile,omitempty"`
	Bitrate                    string           `xml:"Bitrate,omitempty"`
	Crf                        string           `xml:"Crf,omitempty"`
	Gop                        string           `xml:"Gop,omitempty"`
	Preset                     string           `xml:"Preset,omitempty"`
	Bufsize                    string           `xml:"Bufsize,omitempty"`
	Maxrate                    string           `xml:"Maxrate,omitempty"`
	HlsTsTime                  string           `xml:"HlsTsTime,omitempty"`
	DashSegment                string           `xml:"DashSegment,omitempty"`
	Pixfmt                     string           `xml:"Pixfmt,omitempty"`
	LongShortMode              string           `xml:"LongShortMode,omitempty"`
	Rotate                     string           `xml:"Rotate,omitempty"`
	AnimateOnlyKeepKeyFrame    string           `xml:"AnimateOnlyKeepKeyFrame,omitempty"`
	AnimateTimeIntervalOfFrame string           `xml:"AnimateTimeIntervalOfFrame,omitempty"`
	AnimateFramesPerSecond     string           `xml:"AnimateFramesPerSecond,omitempty"`
	Quality                    string           `xml:"Quality,omitempty"`
	Roi                        string           `xml:"Roi,omitempty"`
	Crop                       string           `xml:"Crop,omitempty"`
	Interlaced                 string           `xml:"Interlaced,omitempty"`
	ColorParam                 *VideoColorParam `xml:"ColorParam,omitempty"`
}

Video TODO

type VideoAuditingJobConf added in v0.7.11

type VideoAuditingJobConf struct {
	DetectType      string                       `xml:",omitempty"`
	Snapshot        *PutVideoAuditingJobSnapshot `xml:",omitempty"`
	Callback        string                       `xml:",omitempty"`
	CallbackVersion string                       `xml:",omitempty"`
	CallbackType    int                          `xml:",omitempty"`
	BizType         string                       `xml:",omitempty"`
	DetectContent   int                          `xml:",omitempty"`
	Freeze          *FreezeConf                  `xml:",omitempty"`
	Mask            *AuditingMask                `xml:",omitempty"`
}

VideoAuditingJobConf is the config of PutVideoAuditingJobOptions

type VideoColorParam added in v0.7.44

type VideoColorParam struct {
	ColorRange     string `xml:"ColorRange,omitempty"`
	ColorSpace     string `xml:"ColorSpace,omitempty"`
	ColorTrc       string `xml:"ColorTrc,omitempty"`
	ColorPrimaries string `xml:"ColorPrimaries,omitempty"`
}

type VideoEnhance added in v0.7.42

type VideoEnhance struct {
	Transcode       *Transcode       `xml:"Transcode,omitempty"`
	SuperResolution *SuperResolution `xml:"SuperResolution,omitempty"`
	ColorEnhance    *ColorEnhance    `xml:"ColorEnhance,omitempty"`
	MsSharpen       *MsSharpen       `xml:"MsSharpen,omitempty"`
	SDRtoHDR        *SDRtoHDR        `xml:"SDRtoHDR,omitempty"`
	FrameEnhance    *FrameEnhance    `xml:"FrameEnhance,omitempty"`
}

VideoEnhance TODO

type VideoMontage added in v0.7.34

type VideoMontage struct {
	Container     *Container         `xml:"Container,omitempty"`
	Video         *VideoMontageVideo `xml:"Video,omitempty"`
	Audio         *Audio             `xml:"Audio,omitempty"`
	Duration      string             `xml:"Duration,omitempty"`
	Scene         string             `xml:"Scene,omitempty"`
	AudioMix      *AudioMix          `xml:"AudioMix,omitempty"`
	AudioMixArray []AudioMix         `xml:"AudioMixArray,omitempty"`
}

VideoMontage TODO

type VideoMontageVideo added in v0.7.34

type VideoMontageVideo struct {
	Codec   string `xml:"Codec"`
	Width   string `xml:"Width"`
	Height  string `xml:"Height"`
	Fps     string `xml:"Fps"`
	Remove  string `xml:"Remove,omitempty"`
	Bitrate string `xml:"Bitrate"`
	Crf     string `xml:"Crf"`
}

VideoMontageVideo TODO

type VideoProcess added in v0.7.34

type VideoProcess struct {
	ColorEnhance *ColorEnhance `xml:"ColorEnhance,omitempty"`
	MsSharpen    *MsSharpen    `xml:"MsSharpen,omitempty"`
}

VideoProcess TODO

type VideoStreamConfig added in v0.7.35

type VideoStreamConfig struct {
	VideoStreamName string `xml:"VideoStreamName,omitempty"`
	BandWidth       string `xml:"BandWidth,omitempty"`
}

VideoStreamConfig TODO

type VideoSynthesis added in v0.7.42

type VideoSynthesis struct {
	KeepAudioTrack string                     `xml:"KeepAudioTrack,omitempty"`
	SpliceInfo     []VideoSynthesisSpliceInfo `xml:"SpliceInfo,omitempty"`
}

VideoSynthesis 视频合成

type VideoSynthesisSpliceInfo added in v0.7.42

type VideoSynthesisSpliceInfo struct {
	Url    string `xml:"Url,omitempty"`
	X      string `xml:"X,omitempty"`
	Y      string `xml:"Y,omitempty"`
	Width  string `xml:"Width,omitempty"`
	Height string `xml:"Height,omitempty"`
}

VideoSynthesisSpliceInfo 视频合成输入

type VideoTag added in v0.7.35

type VideoTag struct {
	Scenario string `xml:"Scenario,omitempty"` // 1. Stream 2. ShortVideo
	Text     string `xml:"Text,omitempty"`
}

VideoTag TODO

type VideoTagResult added in v0.7.39

type VideoTagResult struct {
	StreamData *VideoTagResultStreamData `xml:"StreamData,omitempty"`
}

VideoTagResult TODO

type VideoTagResultStreamData added in v0.7.39

type VideoTagResultStreamData struct {
	SubErrCode string                        `xml:"SubErrCode,omitempty"`
	SubErrMsg  string                        `xml:"SubErrMsg,omitempty"`
	Data       *VideoTagResultStreamDataData `xml:"Data,omitempty"`
}

VideoTagResultStreamData TODO

type VideoTagResultStreamDataData added in v0.7.39

type VideoTagResultStreamDataData struct {
	Tags       []VideoTagResultStreamDataDataTags       `xml:"Tags,omitempty"`
	PersonTags []VideoTagResultStreamDataDataPersonTags `xml:"PersonTags,omitempty"`
	PlaceTags  []VideoTagResultStreamDataDataPlaceTags  `xml:"PlaceTags,omitempty"`
	ActionTags []VideoTagResultStreamDataDataActionTags `xml:"ActionTags,omitempty"`
	ObjectTags []VideoTagResultStreamDataDataObjectTags `xml:"ObjectTags,omitempty"`
	Labels     []VideoTagResultStreamDataDataLabels     `xml:"Labels,omitempty"`
}

VideoTagResultStreamDataData TODO

type VideoTagResultStreamDataDataActionTags added in v0.7.39

type VideoTagResultStreamDataDataActionTags struct {
	Tags      []VideoTagResultStreamDataDataTags `xml:"Tags,omitempty"`
	StartTime string                             `xml:"StartTime,omitempty"`
	EndTime   string                             `xml:"EndTime,omitempty"`
}

VideoTagResultStreamDataDataActionTags TODO

type VideoTagResultStreamDataDataLabels added in v0.7.48

type VideoTagResultStreamDataDataLabels struct {
	First      string  `xml:"First,omitempty"`
	Second     string  `xml:"Second,omitempty"`
	Confidence float64 `xml:"Confidence,omitempty"`
}

type VideoTagResultStreamDataDataObjectTags added in v0.7.39

type VideoTagResultStreamDataDataObjectTags struct {
	Objects   []VideoTagResultStreamDataDataPersonTagsDetailPerSecond `xml:"Objects,omitempty"`
	TimeStamp string                                                  `xml:"TimeStamp,omitempty"`
}

VideoTagResultStreamDataDataObjectTags TODO

type VideoTagResultStreamDataDataPersonTags added in v0.7.39

type VideoTagResultStreamDataDataPersonTags struct {
	Name            string                                                  `xml:"Name,omitempty"`
	Confidence      float64                                                 `xml:"Confidence,omitempty"`
	Count           string                                                  `xml:"Count,omitempty"`
	DetailPerSecond []VideoTagResultStreamDataDataPersonTagsDetailPerSecond `xml:"DetailPerSecond,omitempty"`
}

VideoTagResultStreamDataDataPersonTags TODO

type VideoTagResultStreamDataDataPersonTagsDetailPerSecond added in v0.7.39

type VideoTagResultStreamDataDataPersonTagsDetailPerSecond struct {
	TimeStamp  string                                                      `xml:"TimeStamp,omitempty"`
	Name       string                                                      `xml:"Name,omitempty"`
	Confidence float64                                                     `xml:"Confidence,omitempty"`
	BBox       []VideoTagResultStreamDataDataPersonTagsDetailPerSecondBBox `xml:"BBox,omitempty"`
}

VideoTagResultStreamDataDataPersonTagsDetailPerSecond TODO

type VideoTagResultStreamDataDataPersonTagsDetailPerSecondBBox added in v0.7.39

type VideoTagResultStreamDataDataPersonTagsDetailPerSecondBBox struct {
	X1 string `xml:"X1,omitempty"`
	X2 string `xml:"X2,omitempty"`
	Y1 string `xml:"Y1,omitempty"`
	Y2 string `xml:"Y2,omitempty"`
}

VideoTagResultStreamDataDataPersonTags TODO

type VideoTagResultStreamDataDataPlaceTags added in v0.7.39

type VideoTagResultStreamDataDataPlaceTags struct {
	Tags            []VideoTagResultStreamDataDataTags `xml:"Tags,omitempty"`
	ClipFrameResult []string                           `xml:"ClipFrameResult,omitempty"`
	StartTime       string                             `xml:"StartTime,omitempty"`
	EndTime         string                             `xml:"EndTime,omitempty"`
	StartIndex      string                             `xml:"StartIndex,omitempty"`
	EndIndex        string                             `xml:"EndIndex,omitempty"`
}

VideoTagResultStreamDataDataPlaceTags TODO

type VideoTagResultStreamDataDataTags added in v0.7.39

type VideoTagResultStreamDataDataTags struct {
	Tag        string  `xml:"Tag,omitempty"`
	TagCls     string  `xml:"TagCls,omitempty"`
	Confidence float64 `xml:"Confidence,omitempty"`
}

VideoTagResultStreamDataDataTags TODO

type VideoTargetRec added in v0.7.42

type VideoTargetRec struct {
	Body        string        `xml:"Body,omitempty"`
	Pet         string        `xml:"Pet,omitempty"`
	Car         string        `xml:"Car,omitempty"`
	Face        string        `xml:"Face,omitempty"`
	Plate       string        `xml:"Plate,omitempty"`
	ProcessType string        `xml:"ProcessType,omitempty"`
	TransTpl    *VTRTranscode `xml:"TransTpl,omitempty"`
}

VideoTargetRec TODO

type VideoTargetRecInfo added in v0.7.42

type VideoTargetRecInfo struct {
	Name     string                  `xml:"Name,omitempty"`
	Score    string                  `xml:"Score,omitempty"`
	Location *VideoTargetRecLocation `xml:"Location,omitempty"`
}

BodyInfo TODO

type VideoTargetRecLocation added in v0.7.42

type VideoTargetRecLocation struct {
	X      string `xml:"X,omitempty"`
	Y      string `xml:"Y,omitempty"`
	Height string `xml:"Height,omitempty"`
	Width  string `xml:"Width,omitempty"`
}

VideoTargetRecLocation TODO

type VideoTargetRecResult added in v0.7.42

type VideoTargetRecResult struct {
	BodyRecognition          []*BodyRecognition          `xml:"BodyRecognition,omitempty"`
	PetRecognition           []*PetRecognition           `xml:"PetRecognition,omitempty"`
	CarRecognition           []*CarRecognition           `xml:"CarRecognition,omitempty"`
	FaceRecognition          []*FaceRecognition          `xml:"FaceRecognition,omitempty"`
	LicenseRecognitionResult []*LicenseRecognitionResult `xml:"LicenseRecognitionResult,omitempty"`
	Sensitive                string                      `xml:"Sensitive,omitempty"`
}

VideoTargetRecResult TODO

type VirusDetectJobConf added in v0.7.34

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

VirusDetectJobConf is the config of PutVirusDetectJobOptions

type VirusDetectJobDetail added in v0.7.34

type VirusDetectJobDetail 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"`
	Suggestion   string        `xml:",omitempty"`
	DetectDetail *VirusResults `xml:",omitempty"`
}

VirusDetectJobDetail is the detail of GetVirusDetectJobResult

type VirusInfo added in v0.7.34

type VirusInfo struct {
	FileName  string `xml:",omitempty"`
	VirusName string `xml:",omitempty"`
}

VirusInfo

type VirusResults added in v0.7.34

type VirusResults struct {
	Result []VirusInfo `xml:",omitempty"`
}

VirusResults

type VocalScore added in v0.7.43

type VocalScore struct {
	StandardObject string `xml:"StandardObject,omitempty"`
}

VocalScore 音乐评分

type VocalScoreResult added in v0.7.43

type VocalScoreResult struct {
	PitchScore   *VocalScoreResultPitchScore   `xml:"PitchScore,omitempty"`
	RhythemScore *VocalScoreResultRhythemScore `xml:"RhythemScore,omitempty"`
}

VocalScore 音乐评分结果

type VocalScoreResultPitchScore added in v0.7.43

type VocalScoreResultPitchScore struct {
	TotalScore     float64                          `xml:"TotalScore,omitempty"`
	SentenceScores []VocalScoreResultSentenceScores `xml:"SentenceScores,omitempty"`
}

type VocalScoreResultRhythemScore added in v0.7.43

type VocalScoreResultRhythemScore struct {
	TotalScore     float64                          `xml:"TotalScore,omitempty"`
	SentenceScores []VocalScoreResultSentenceScores `xml:"SentenceScores,omitempty"`
}

type VocalScoreResultSentenceScores added in v0.7.43

type VocalScoreResultSentenceScores struct {
	StartTime float64 `xml:"StartTime,omitempty"`
	EndTime   float64 `xml:"EndTime,omitempty"`
	Score     float64 `xml:"Score,omitempty"`
}

type VodInfo added in v0.7.48

type VodInfo struct {
	FileId   string `xml:"FileId,omitempty"`
	SubAppId string `xml:"SubAppId,omitempty"`
}

type VoiceSeparate added in v0.7.34

type VoiceSeparate struct {
	AudioMode   string       `xml:"AudioMode,omitempty"` // IsAudio 人声, IsBackground 背景声, AudioAndBackground 人声和背景声
	AudioConfig *AudioConfig `xml:"AudioConfig,omitempty"`
}

VoiceSeparate TODO

type Watermark added in v0.7.21

type Watermark struct {
	Type        string                `xml:"Type,omitempty"`
	Pos         string                `xml:"Pos,omitempty"` // TopLeft:左上; Top:上居中; TopRight:右上; Left:左居中; Center:正中心; Right:右居中; BottomLeft:左下; Bottom:下居中; BottomRight:右下
	LocMode     string                `xml:"LocMode,omitempty"`
	Dx          string                `xml:"Dx,omitempty"`
	Dy          string                `xml:"Dy,omitempty"`
	StartTime   string                `xml:"StartTime,omitempty"`
	EndTime     string                `xml:"EndTime,omitempty"`
	SlideConfig *WatermarkSlideConfig `xml:"SlideConfig,omitempty"`
	Image       *Image                `xml:"Image,omitempty"`
	Text        *Text                 `xml:"Text,omitempty"`
}

Watermark TODO

type WatermarkSlideConfig added in v0.7.42

type WatermarkSlideConfig struct {
	SlideMode   string `xml:"SlideMode,omitempty"`
	XSlideSpeed string `xml:"XSlideSpeed,omitempty"`
	YSlideSpeed string `xml:"YSlideSpeed,omitempty"`
}

WatermarkSlideConfig TODO

type WebpageAuditingJobConf added in v0.7.33

type WebpageAuditingJobConf struct {
	DetectType          string `xml:",omitempty"`
	Callback            string `xml:",omitempty"`
	ReturnHighlightHtml bool   `xml:",omitempty"`
	BizType             string `xml:",omitempty"`
	CallbackType        int    `xml:",omitempty"`
}

WebpageAuditingJobConf is the config of PutWebpageAuditingJobOptions

type WebpageAuditingJobDetail added in v0.7.33

type WebpageAuditingJobDetail struct {
	Code          string               `xml:",omitempty"`
	Message       string               `xml:",omitempty"`
	JobId         string               `xml:",omitempty"`
	State         string               `xml:",omitempty"`
	CreationTime  string               `xml:",omitempty"`
	Url           string               `xml:",omitempty"`
	Labels        *WebpageResultInfo   `xml:",omitempty"`
	PageCount     int                  `xml:",omitempty"`
	Suggestion    int                  `xml:",omitempty"`
	ImageResults  *WebpageImageResults `xml:",omitempty"`
	TextResults   *WebpageTextResults  `xml:",omitempty"`
	HighlightHtml string               `xml:",omitempty"`
	DataId        string               `xml:",omitempty"`
	UserInfo      *UserExtraInfo       `xml:",omitempty"`
	ListInfo      *UserListInfo        `xml:",omitempty"`
	Label         string               `xml:",omitempty"`
}

WebpageAuditingJobDetail is the detail of GetWebpageAuditingJobResult

type WebpageImageResult added in v0.7.33

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

WebpageImageResult

type WebpageImageResults added in v0.7.33

type WebpageImageResults struct {
	Results []WebpageImageResult `xml:",omitempty"`
}

WebpageImageResults

type WebpageResultInfo added in v0.7.33

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

WebpageResultInfo

type WebpageTextResult added in v0.7.33

type WebpageTextResult struct {
	Text          string               `xml:",omitempty"`
	Label         string               `xml:",omitempty"`
	Result        int                  `xml:",omitempty"`
	PageNumber    int                  `xml:",omitempty"`
	SheetNumber   int                  `xml:",omitempty"`
	Suggestion    int                  `xml:",omitempty"`
	PornInfo      *TextRecognitionInfo `xml:",omitempty"`
	TerrorismInfo *TextRecognitionInfo `xml:",omitempty"`
	PoliticsInfo  *TextRecognitionInfo `xml:",omitempty"`
	AdsInfo       *TextRecognitionInfo `xml:",omitempty"`
	IllegalInfo   *TextRecognitionInfo `xml:",omitempty"`
	AbuseInfo     *TextRecognitionInfo `xml:",omitempty"`
}

WebpageTextResult

type WebpageTextResults added in v0.7.33

type WebpageTextResults struct {
	Results []WebpageTextResult `xml:",omitempty"`
}

WebpageTextResults

type WebsiteRoutingRule

type WebsiteRoutingRule struct {
	ConditionErrorCode string `xml:"Condition>HttpErrorCodeReturnedEquals,omitempty"`
	ConditionPrefix    string `xml:"Condition>KeyPrefixEquals,omitempty"`

	RedirectProtocol         string `xml:"Redirect>Protocol,omitempty"`
	RedirectReplaceKey       string `xml:"Redirect>ReplaceKeyWith,omitempty"`
	RedirectReplaceKeyPrefix string `xml:"Redirect>ReplaceKeyPrefixWith,omitempty"`
}

type WebsiteRoutingRules

type WebsiteRoutingRules struct {
	Rules []WebsiteRoutingRule `xml:"RoutingRule,omitempty"`
}

type WordCoordPoint added in v0.7.36

type WordCoordPoint struct {
	WordCoordinate []Polygon `xml:"WordCoordinate,omitempty"`
}

type WordPolygon added in v0.7.36

type WordPolygon struct {
	LeftTop     *Polygon `xml:"LeftTop,omitempty"`
	RightTop    *Polygon `xml:"RightTop,omitempty"`
	RightBottom *Polygon `xml:"RightBottom,omitempty"`
	LeftBottom  *Polygon `xml:"LeftBottom,omitempty"`
}

type Words added in v0.7.36

type Words struct {
	Confidence     int             `xml:"Confidence,omitempty"`
	Character      string          `xml:"Character,omitempty"`
	WordCoordPoint *WordCoordPoint `xml:"WordCoordPoint,omitempty"`
}

type WordsGeneralize added in v0.7.39

type WordsGeneralize struct {
	NerMethod string `xml:"NerMethod,omitempty"`
	SegMethod string `xml:"SegMethod,omitempty"`
}

WordsGeneralize TODO

type WordsGeneralizeResult added in v0.7.39

type WordsGeneralizeResult struct {
	WordsGeneralizeLable []WordsGeneralizeResulteLable `xml:"WordsGeneralizeLable,omitempty"`
	WordsGeneralizeToken []WordsGeneralizeResulteToken `xml:"WordsGeneralizeToken,omitempty"`
}

WordsGeneralizeResult TODO

type WordsGeneralizeResulteLable added in v0.7.39

type WordsGeneralizeResulteLable struct {
	Category string `xml:"Category,omitempty"`
	Word     string `xml:"Word,omitempty"`
}

WordsGeneralizeResulteLable TODO

type WordsGeneralizeResulteToken added in v0.7.39

type WordsGeneralizeResulteToken struct {
	Length string `xml:"Length,omitempty"`
	Offset string `xml:"Offset,omitempty"`
	Pos    string `xml:"Pos,omitempty"`
	Word   string `xml:"Word,omitempty"`
}

WordsGeneralizeResulteToken TODO

type WorkflowExecution added in v0.7.34

type WorkflowExecution struct {
	RunId        string   `xml:"RunId,omitempty" json:"RunId,omitempty"`
	WorkflowId   string   `xml:"WorkflowId,omitempty" json:"WorkflowId,omitempty"`
	WorkflowName string   `xml:"WorkflowName,omitempty" json:"WorkflowName,omitempty"`
	State        string   `xml:"State,omitempty" json:"State,omitempty"`
	CreateTime   string   `xml:"CreateTime,omitempty" json:"CreateTime,omitempty"`
	Object       string   `xml:"Object,omitempty" json:"Object,omitempty"`
	Topology     Topology `xml:"Topology,omitempty" json:"Topology,omitempty"`
}

WorkflowExecution TODO

type WorkflowExecutionList added in v0.7.34

type WorkflowExecutionList struct {
	RunId        string `xml:"RunId,omitempty"`
	WorkflowId   string `xml:"WorkflowId,omitempty"`
	State        string `xml:"State,omitempty"`
	CreationTime string `xml:"CreationTime,omitempty"`
	Object       string `xml:"Object,omitempty"`
}

WorkflowExecutionList TODO

type WorkflowExecutionNotifyBody added in v0.7.32

type WorkflowExecutionNotifyBody struct {
	XMLName           xml.Name `xml:"Response"`
	EventName         string   `xml:"EventName"`
	WorkflowExecution struct {
		RunId      string `xml:"RunId"`
		BucketId   string `xml:"BucketId"`
		Object     string `xml:"Object"`
		CosHeaders []struct {
			Key   string `xml:"Key"`
			Value string `xml:"Value"`
		} `xml:"CosHeaders"`
		WorkflowId   string `xml:"WorkflowId"`
		WorkflowName string `xml:"WorkflowName"`
		CreateTime   string `xml:"CreateTime"`
		State        string `xml:"State"`
		Tasks        []struct {
			Type                  string `xml:"Type"`
			CreateTime            string `xml:"CreateTime"`
			EndTime               string `xml:"EndTime"`
			State                 string `xml:"State"`
			JobId                 string `xml:"JobId"`
			Name                  string `xml:"Name"`
			TemplateId            string `xml:"TemplateId"`
			TemplateName          string `xml:"TemplateName"`
			TranscodeTemplateId   string `xml:"TranscodeTemplateId,omitempty"`
			TranscodeTemplateName string `xml:"TranscodeTemplateName,omitempty"`
			HdrMode               string `xml:"HdrMode,omitempty"`
			ResultInfo            struct {
				ObjectCount       int `xml:"ObjectCount"`
				SpriteObjectCount int `xml:"SpriteObjectCount"`
				ObjectInfo        []struct {
					ObjectName      string             `xml:"ObjectName"`
					ObjectUrl       string             `xml:"ObjectUrl"`
					InputObjectName string             `xml:"InputObjectName"`
					Code            string             `xml:"Code"`
					Message         string             `xml:"Message"`
					ImageOcrResult  *ImageOCRDetection `xml:"ImageOcrResult,omitempty"`
				} `xml:"ObjectInfo,omitempty"`
				SpriteObjectInfo []struct {
					ObjectName      string `xml:"ObjectName"`
					ObjectUrl       string `xml:"ObjectUrl"`
					InputObjectName string `xml:"InputObjectName"`
					Code            string `xml:"Code"`
					Message         string `xml:"Message"`
				} `xml:"SpriteObjectInfo,omitempty"`
			} `xml:"ResultInfo,omitempty"`
		} `xml:"Tasks"`
	} `xml:"WorkflowExecution"`
}

WorkflowExecutionNotifyBody TODO

type WorkflowNodeCondition added in v0.7.42

type WorkflowNodeCondition struct {
	Express string `xml:"Express,omitempty"`
}

WorkflowNodeCondition TODO

type XOptionalValue added in v0.7.40

type XOptionalValue struct {
	Header *http.Header
}

type ZipPreviewResult added in v0.7.42

type ZipPreviewResult struct {
	XMLName     xml.Name `xml:"Response"`
	FileNumber  int      `xml:"FileNumber,omitempty"`
	IsTruncated bool     `xml:"IsTruncated,omitempty"`
	Contents    []*struct {
		Key              string `xml:"Key,omitempty"`
		LastModified     string `xml:"LastModified,omitempty"`
		UncompressedSize int    `xml:"UncompressedSize,omitempty"`
	} `xml:"Contents,omitempty"`
}

ZipPreviewResult 压缩包预览结果

Jump to

Keyboard shortcuts

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