vod

package
v1.0.111 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DSAHmacSha1 = "HMAC-SHA1"

	Version2 = "2.0"

	SprAuth = ":"
	SprSign = "&"

	DateYYYYMMDDTHHmmss = "20060102T150405Z"
)
View Source
const (
	FORMAT_JPEG     = "jpeg"
	FORMAT_PNG      = "png"
	FORMAT_WEBP     = "webp"
	FORMAT_AWEBP    = "awebp"
	FORMAT_GIF      = "gif"
	FORMAT_HEIC     = "heic"
	FORMAT_ORIGINAL = "image"

	HTTP  = "http"
	HTTPS = "https"

	KEY_SIG = "sig"

	VOD_TPL_OBJ         = "tplv-vod-obj"
	VOD_TPL_NOOP        = "tplv-vod-noop"
	VOD_TPL_RESIZE      = "tplv-vod-rs"
	VOD_TPL_CENTER_CROP = "tplv-vod-cc"
	VOD_TPL_SMART_CROP  = "tplv-vod-cs"
	VOD_TPL_SIG         = "tplv-bd-sig"
)

Variables

View Source
var (
	ServiceVOD = []byte("vod")

	ErrAccessKeyInvalid = errors.New("access key invalid")
	ErrSecretKeyInvalid = errors.New("secret key invalid")
)
View Source
var (
	ServiceInfoMap = map[string]*base.ServiceInfo{
		base.RegionCnNorth1: {
			Timeout: 60 * time.Second,
			Host:    "vod.volcengineapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: base.Credentials{Region: base.RegionCnNorth1, Service: "vod"},
		},
	}

	ApiInfoList = map[string]*base.ApiInfo{

		"GetPlayInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetPlayInfo"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetPrivateDrmPlayAuth": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetPrivateDrmPlayAuth"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetHlsDecryptionKey": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetHlsDecryptionKey"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetPlayInfoWithLiveTimeShiftScene": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetPlayInfoWithLiveTimeShiftScene"},
				"Version": []string{"2021-11-01"},
			},
		},
		"GetAllPlayInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAllPlayInfo"},
				"Version": []string{"2022-01-01"},
			},
		},

		"UploadMediaByUrl": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UploadMediaByUrl"},
				"Version": []string{"2020-08-01"},
			},
		},
		"QueryUploadTaskInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"QueryUploadTaskInfo"},
				"Version": []string{"2020-08-01"},
			},
		},
		"ApplyUploadInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ApplyUploadInfo"},
				"Version": []string{"2022-01-01"},
			},
		},
		"CommitUploadInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CommitUploadInfo"},
				"Version": []string{"2022-01-01"},
			},
			Timeout: 8 * time.Second,
		},

		"UpdateMediaInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateMediaInfo"},
				"Version": []string{"2020-08-01"},
			},
		},
		"UpdateMediaPublishStatus": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateMediaPublishStatus"},
				"Version": []string{"2020-08-01"},
			},
		},
		"UpdateMediaStorageClass": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateMediaStorageClass"},
				"Version": []string{"2022-12-01"},
			},
		},
		"GetMediaInfos": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetMediaInfos"},
				"Version": []string{"2022-12-01"},
			},
		},
		"GetRecommendedPoster": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetRecommendedPoster"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DeleteMedia": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteMedia"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DeleteTranscodes": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteTranscodes"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetMediaList": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetMediaList"},
				"Version": []string{"2022-12-01"},
			},
		},
		"GetSubtitleInfoList": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetSubtitleInfoList"},
				"Version": []string{"2020-08-01"},
			},
		},
		"UpdateSubtitleStatus": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateSubtitleStatus"},
				"Version": []string{"2020-08-01"},
			},
		},
		"UpdateSubtitleInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateSubtitleInfo"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetAuditFramesForAudit": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAuditFramesForAudit"},
				"Version": []string{"2021-11-01"},
			},
		},
		"GetMLFramesForAudit": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetMLFramesForAudit"},
				"Version": []string{"2021-11-01"},
			},
		},
		"GetBetterFramesForAudit": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetBetterFramesForAudit"},
				"Version": []string{"2021-11-01"},
			},
		},
		"GetAudioInfoForAudit": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAudioInfoForAudit"},
				"Version": []string{"2021-11-01"},
			},
		},
		"GetAutomaticSpeechRecognitionForAudit": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAutomaticSpeechRecognitionForAudit"},
				"Version": []string{"2021-11-01"},
			},
		},
		"GetAudioEventDetectionForAudit": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAudioEventDetectionForAudit"},
				"Version": []string{"2021-11-01"},
			},
		},
		"CreateVideoClassification": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateVideoClassification"},
				"Version": []string{"2021-01-01"},
			},
		},
		"UpdateVideoClassification": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateVideoClassification"},
				"Version": []string{"2021-01-01"},
			},
		},
		"DeleteVideoClassification": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteVideoClassification"},
				"Version": []string{"2021-01-01"},
			},
		},
		"ListVideoClassifications": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListVideoClassifications"},
				"Version": []string{"2021-01-01"},
			},
		},
		"ListSnapshots": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListSnapshots"},
				"Version": []string{"2021-01-01"},
			},
		},
		"ExtractMediaMetaTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ExtractMediaMetaTask"},
				"Version": []string{"2022-01-01"},
			},
		},
		"SubmitBlockMediaTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SubmitBlockMediaTask"},
				"Version": []string{"2022-12-01"},
			},
		},
		"SubmitUnblockMediaTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SubmitUnblockMediaTask"},
				"Version": []string{"2022-12-01"},
			},
		},
		"QueryMediaBlockStatus": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"QueryMediaBlockStatus"},
				"Version": []string{"2022-12-01"},
			},
		},

		"StartWorkflow": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"StartWorkflow"},
				"Version": []string{"2020-08-01"},
			},
		},
		"RetrieveTranscodeResult": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"RetrieveTranscodeResult"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetWorkflowExecution": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetWorkflowExecution"},
				"Version": []string{"2020-08-01"},
			},
		},
		"GetWorkflowExecutionResult": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetWorkflowExecutionResult"},
				"Version": []string{"2022-12-01"},
			},
		},
		"GetTaskTemplate": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetTaskTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"CreateTaskTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateTaskTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"UpdateTaskTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateTaskTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"ListTaskTemplate": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListTaskTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"DeleteTaskTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteTaskTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"GetWorkflowTemplate": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetWorkflowTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"CreateWorkflowTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateWorkflowTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"UpdateWorkflowTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateWorkflowTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"ListWorkflowTemplate": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListWorkflowTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"DeleteWorkflowTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteWorkflowTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"GetWatermarkTemplate": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetWatermarkTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"CreateWatermarkTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateWatermarkTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"UpdateWatermarkTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateWatermarkTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"ListWatermarkTemplate": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListWatermarkTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},
		"DeleteWatermarkTemplate": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DeleteWatermarkTemplate"},
				"Version": []string{"2023-07-01"},
			},
		},

		"SubmitDirectEditTaskAsync": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SubmitDirectEditTaskAsync"},
				"Version": []string{"2018-01-01"},
			},
		},
		"GetDirectEditResult": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetDirectEditResult"},
				"Version": []string{"2018-01-01"},
			},
		},
		"GetDirectEditProgress": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetDirectEditProgress"},
				"Version": []string{"2018-01-01"},
			},
		},

		"CreateSpace": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateSpace"},
				"Version": []string{"2021-01-01"},
			},
		},
		"ListSpace": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListSpace"},
				"Version": []string{"2021-01-01"},
			},
		},
		"GetSpaceDetail": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetSpaceDetail"},
				"Version": []string{"2022-01-01"},
			},
		},
		"UpdateSpace": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateSpace"},
				"Version": []string{"2021-01-01"},
			},
		},
		"UpdateSpaceUploadConfig": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateSpaceUploadConfig"},
				"Version": []string{"2022-01-01"},
			},
		},
		"DescribeVodSpaceStorageData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceStorageData"},
				"Version": []string{"2020-08-01"},
			},
		},

		"ListDomain": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListDomain"},
				"Version": []string{"2021-01-01"},
			},
		},
		"CreateCdnRefreshTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateCdnRefreshTask"},
				"Version": []string{"2021-01-01"},
			},
		},
		"CreateCdnPreloadTask": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateCdnPreloadTask"},
				"Version": []string{"2021-01-01"},
			},
		},
		"ListCdnTasks": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnTasks"},
				"Version": []string{"2022-01-01"},
			},
		},
		"ListCdnAccessLog": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnAccessLog"},
				"Version": []string{"2022-01-01"},
			},
		},
		"ListCdnTopAccessUrl": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnTopAccessUrl"},
				"Version": []string{"2022-01-01"},
			},
		},
		"DescribeVodDomainBandwidthData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodDomainBandwidthData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"ListCdnUsageData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnUsageData"},
				"Version": []string{"2022-12-01"},
			},
		},
		"ListCdnStatusData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnStatusData"},
				"Version": []string{"2022-01-01"},
			},
		},
		"DescribeIpInfo": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeIpInfo"},
				"Version": []string{"2022-01-01"},
			},
		},
		"ListCdnPvData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnPvData"},
				"Version": []string{"2022-01-01"},
			},
		},
		"DescribeVodDomainTrafficData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodDomainTrafficData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"SubmitBlockTasks": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SubmitBlockTasks"},
				"Version": []string{"2022-01-01"},
			},
		},
		"GetContentBlockTasks": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetContentBlockTasks"},
				"Version": []string{"2022-01-01"},
			},
		},
		"CreateDomain": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"CreateDomain"},
				"Version": []string{"2023-02-01"},
			},
		},
		"UpdateDomainExpire": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateDomainExpire"},
				"Version": []string{"2023-02-01"},
			},
		},
		"UpdateDomainAuthConfig": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"UpdateDomainAuthConfig"},
				"Version": []string{"2023-02-01"},
			},
		},
		"ListCdnHitrateData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListCdnHitrateData"},
				"Version": []string{"2022-01-01"},
			},
		},

		"AddCallbackSubscription": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"AddCallbackSubscription"},
				"Version": []string{"2021-12-01"},
			},
		},
		"SetCallbackEvent": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SetCallbackEvent"},
				"Version": []string{"2022-01-01"},
			},
		},

		"DescribeVodSpaceTranscodeData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceTranscodeData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DescribeVodSpaceAIStatisData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceAIStatisData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DescribeVodSpaceSubtitleStatisData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceSubtitleStatisData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DescribeVodSpaceDetectStatisData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceDetectStatisData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DescribeVodSnapshotData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSnapshotData"},
				"Version": []string{"2020-08-01"},
			},
		},
		"DescribeVodSpaceWorkflowDetailData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceWorkflowDetailData"},
				"Version": []string{"2022-12-01"},
			},
		},
		"DescribeVodSpaceEditDetailData": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodSpaceEditDetailData"},
				"Version": []string{"2022-12-01"},
			},
		},
		"DescribeVodPlayFileLogByDomain": {
			Method: http.MethodGet,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"DescribeVodPlayFileLogByDomain"},
				"Version": []string{"2022-12-01"},
			},
		},
	}
)
View Source
var (
	ErrKvSig = errors.New("Input kv already has sig query")
)

Functions

func BuildSign

func BuildSign(dsa, version, timestamp string, key []byte) string

func GetDate

func GetDate(t time.Time) string

Types

type AdvanceOption

type AdvanceOption struct {
	Parallel  int
	Stream    int
	SliceSize int
}

type ApplyUploadParam

type ApplyUploadParam struct {
	SpaceName  string
	SessionKey string
	FileType   FileType
	FileSize   int
	UploadNum  int
}

type ApplyUploadResp

type ApplyUploadResp struct {
	base.CommonResponse
	Result ApplyUploadResult
}

type ApplyUploadResult

type ApplyUploadResult struct {
	RequestID     string
	UploadAddress UploadAddress
}

type BaseResp

type BaseResp struct {
	StatusMessage string
	StatusCode    int
}

type CommitUploadBody

type CommitUploadBody struct {
	CallbackArgs string
	SessionKey   string
	Functions    []Function
}

type CommitUploadParam

type CommitUploadParam struct {
	SpaceName string
	Body      CommitUploadBody
}

type CommitUploadResp

type CommitUploadResp struct {
	base.CommonResponse
	Result CommitUploadResult
}

type CommitUploadResult

type CommitUploadResult struct {
	RequestId    string
	CallbackArgs string
	Results      []UploadResult
}

type DomainInfo

type DomainInfo struct {
	MainDomain   string
	BackupDomain string
}

type Encryption

type Encryption struct {
	Uri       string
	SecretKey string
	Algorithm string
	Version   string
	SourceMd5 string
	Extra     map[string]string
}

type EntryptionInput

type EntryptionInput struct {
	Config       map[string]string
	PolicyParams map[string]string
}

type FileType

type FileType string
const (
	VIDEO  FileType = "video"
	IMAGE  FileType = "image"
	OBJECT FileType = "object"
)

type Function

type Function struct {
	Name  string
	Input interface{}
}

type GetWeightsResp

type GetWeightsResp struct {
	ResponseMetadata *base.ResponseMetadata
	Result           map[string]map[string]int `json:",omitempty"`
}

type ImageMeta

type ImageMeta struct {
	Uri    string
	Height int
	Width  int
	Md5    string
}

type ImgUrl

type ImgUrl struct {
	MainUrl   string
	BackupUrl string
}

type Jobs added in v1.0.103

type Jobs struct {
	// contains filtered or unexported fields
}

type ModifyVideoInfoBaseResp

type ModifyVideoInfoBaseResp struct {
	BaseResp *BaseResp
}

type ModifyVideoInfoBody

type ModifyVideoInfoBody struct {
	SpaceName string       `json:"SpaceName"`
	Vid       string       `json:"Vid"`
	Info      UserMetaInfo `json:"Info"`
	Tags      TagControl   `json:"Tags"`
}

type ModifyVideoInfoResp

type ModifyVideoInfoResp struct {
	ResponseMetadata *base.ResponseMetadata
	Result           *ModifyVideoInfoBaseResp
}

type ObjectMeta

type ObjectMeta struct {
	Uri string
	Md5 string
}

type OptionFun

type OptionFun func(*option)

func WithFormat

func WithFormat(format string) OptionFun

func WithHttps

func WithHttps() OptionFun

func WithKV

func WithKV(kv url.Values) OptionFun

kv used in querystring,the key Must not use "sig"

func WithSig

func WithSig(key string) OptionFun

func WithVodNoop

func WithVodNoop() OptionFun

func WithVodTplCenterCrop

func WithVodTplCenterCrop(width, height int) OptionFun

func WithVodTplObj

func WithVodTplObj() OptionFun

func WithVodTplResize

func WithVodTplResize(width, height int) OptionFun

func WithVodTplSmartCrop

func WithVodTplSmartCrop(width, height int) OptionFun

type OptionInfo

type OptionInfo struct {
	Title            string
	Tags             string
	Description      string
	Category         string
	RecordType       int
	Format           string
	ClassificationId int
}

type PublicErrorCode

type PublicErrorCode string

type SetVideoPublishStatusResp

type SetVideoPublishStatusResp struct {
	ResponseMetadata *base.ResponseMetadata
}

SetVideoPublishStatus

type SnapshotInput

type SnapshotInput struct {
	SnapshotTime float64
}

type StartWorkflowRequest

type StartWorkflowRequest struct {
	Vid          string
	TemplateId   string
	Input        map[string]interface{}
	Priority     int
	CallbackArgs string
}

type StartWorkflowResp

type StartWorkflowResp struct {
	ResponseMetadata *base.ResponseMetadata
	Result           *StartWorkflowResult `json:",omitempty"`
}

type StartWorkflowResult

type StartWorkflowResult struct {
	RunId string
}

type StoreInfo

type StoreInfo struct {
	StoreUri string
	Auth     string
}

type TagControl

type TagControl struct {
	Deletes string
	Adds    string
}

type UploadAddress

type UploadAddress struct {
	StoreInfos    []StoreInfo
	UploadHosts   []string
	UploadHeader  map[string]string
	SessionKey    string
	AdvanceOption AdvanceOption
}

type UploadMediaByUrlParams

type UploadMediaByUrlParams struct {
	SpaceName    string
	Format       VideoFormat
	SourceUrls   []string
	CallbackArgs string
}

type UploadMediaByUrlResp

type UploadMediaByUrlResp struct {
	base.CommonResponse
	Result UploadMediaByUrlResult
}

type UploadMediaByUrlResult

type UploadMediaByUrlResult struct {
	Code    int
	Message string
}

type UploadPartInfo added in v1.0.103

type UploadPartInfo struct {
	Number int
	OffSet int64
	Size   int64
}

type UploadResult

type UploadResult struct {
	Vid         string
	VideoMeta   VideoMeta
	ImageMeta   ImageMeta
	ObjectMeta  ObjectMeta
	Encryption  Encryption
	SnapshotUri string
}

type UserMetaInfo

type UserMetaInfo struct {
	Title       string
	Description string
	Category    string
	PosterUri   string
}

type VideoDefinition

type VideoDefinition string
const (
	D1080P VideoDefinition = "1080p"
	D720P  VideoDefinition = "720p"
	D540P  VideoDefinition = "540p"
	D480P  VideoDefinition = "480p"
	D360P  VideoDefinition = "360p"
	D240P  VideoDefinition = "240p"
)

type VideoFormat

type VideoFormat string
const (
	MP4  VideoFormat = "mp4"
	M3U8 VideoFormat = "m3u8"
)

type VideoMeta

type VideoMeta struct {
	Uri      string
	Height   int
	Width    int
	Duration float64
	Bitrate  int
	Md5      string
	Format   string
	Size     int
}

type Vod

type Vod struct {
	*base.Client
	DomainCache map[string]map[string]int
	Lock        sync.RWMutex
}

func NewInstance

func NewInstance() *Vod

func NewInstanceWithRegion

func NewInstanceWithRegion(region string) *Vod

func (*Vod) AddCallbackSubscription

AddCallbackSubscription

  • @param *request.VodAddCallbackSubscriptionRequest
  • @return *response.VodAddCallbackSubscriptionResponse, int, error

func (*Vod) ApplyUploadInfo

ApplyUploadInfo

  • @param *request.VodApplyUploadInfoRequest
  • @return *response.VodApplyUploadInfoResponse, int, error

func (*Vod) CommitUploadInfo

CommitUploadInfo

  • @param *request.VodCommitUploadInfoRequest
  • @return *response.VodCommitUploadInfoResponse, int, error

func (*Vod) CreateCdnPreloadTask

CreateCdnPreloadTask

  • @param *request.VodCreateCdnPreloadTaskRequest
  • @return *response.VodCreateCdnPreloadTaskResponse, int, error

func (*Vod) CreateCdnRefreshTask

CreateCdnRefreshTask

  • @param *request.VodCreateCdnRefreshTaskRequest
  • @return *response.VodCreateCdnRefreshTaskResponse, int, error

func (*Vod) CreateDomain added in v1.0.110

CreateDomain

  • @param *request.VodCreateDomainV2Request
  • @return *response.VodCreateDomainV2Response, int, error

func (*Vod) CreateSha1HlsDrmAuthToken

func (p *Vod) CreateSha1HlsDrmAuthToken(expireSeconds int64) (auth string, err error)

func (*Vod) CreateSpace

CreateSpace

  • @param *request.VodCreateSpaceRequest
  • @return *response.VodCreateSpaceResponse, int, error

func (*Vod) CreateTaskTemplate added in v1.0.107

CreateTaskTemplate

  • @param *request.VodCreateTaskTemplateRequest
  • @return *response.VodCreateTaskTemplateResponse, int, error

func (*Vod) CreateVideoClassification

CreateVideoClassification

  • @param *request.VodCreateVideoClassificationRequest
  • @return *response.VodCreateVideoClassificationResponse, int, error

func (*Vod) CreateWatermarkTemplate added in v1.0.107

func (p *Vod) CreateWatermarkTemplate(req *request.VodCreateWatermarkRequest) (*response.VodCreateWatermarkResponse, int, error)

CreateWatermarkTemplate

  • @param *request.VodCreateWatermarkRequest
  • @return *response.VodCreateWatermarkResponse, int, error

func (*Vod) CreateWorkflowTemplate added in v1.0.107

CreateWorkflowTemplate

  • @param *request.VodCreateWorkflowTemplateRequest
  • @return *response.VodCreateWorkflowTemplateResponse, int, error

func (*Vod) DeleteMedia

DeleteMedia

  • @param *request.VodDeleteMediaRequest
  • @return *response.VodDeleteMediaResponse, int, error

func (*Vod) DeleteTaskTemplate added in v1.0.107

DeleteTaskTemplate

  • @param *request.VodDeleteTaskTemplateRequest
  • @return *response.VodDeleteTaskTemplateResponse, int, error

func (*Vod) DeleteTranscodes

DeleteTranscodes

  • @param *request.VodDeleteTranscodesRequest
  • @return *response.VodDeleteTranscodesResponse, int, error

func (*Vod) DeleteVideoClassification

DeleteVideoClassification

  • @param *request.VodDeleteVideoClassificationRequest
  • @return *response.VodDeleteVideoClassificationResponse, int, error

func (*Vod) DeleteWatermarkTemplate added in v1.0.107

func (p *Vod) DeleteWatermarkTemplate(req *request.VodDeleteWatermarkRequest) (*response.VodDeleteWatermarkResponse, int, error)

DeleteWatermarkTemplate

  • @param *request.VodDeleteWatermarkRequest
  • @return *response.VodDeleteWatermarkResponse, int, error

func (*Vod) DeleteWorkflowTemplate added in v1.0.107

DeleteWorkflowTemplate

  • @param *request.VodDeleteWorkflowTemplateRequest
  • @return *response.VodDeleteWorkflowTemplateResponse, int, error

func (*Vod) DescribeIpInfo

DescribeIpInfo

  • @param *request.VodDescribeIPInfoRequest
  • @return *response.VodDescribeIPInfoResponse, int, error

func (*Vod) DescribeVodDomainBandwidthData

DescribeVodDomainBandwidthData

  • @param *request.VodDescribeVodDomainBandwidthDataRequest
  • @return *response.VodDescribeVodDomainBandwidthDataResponse, int, error

func (*Vod) DescribeVodDomainTrafficData

DescribeVodDomainTrafficData

  • @param *request.VodDescribeVodDomainTrafficDataRequest
  • @return *response.VodDescribeVodDomainTrafficDataResponse, int, error

func (*Vod) DescribeVodPlayFileLogByDomain added in v1.0.99

DescribeVodPlayFileLogByDomain

  • @param *request.DescribeVodPlayFileLogByDomainRequest
  • @return *response.DescribeVodPlayFileLogByDomainResponse, int, error

func (*Vod) DescribeVodSnapshotData

DescribeVodSnapshotData

  • @param *request.DescribeVodSnapshotDataRequest
  • @return *response.DescribeVodSnapshotDataResponse, int, error

func (*Vod) DescribeVodSpaceAIStatisData

DescribeVodSpaceAIStatisData

  • @param *request.DescribeVodSpaceAIStatisDataRequest
  • @return *response.DescribeVodSpaceAIStatisDataResponse, int, error

func (*Vod) DescribeVodSpaceDetectStatisData

DescribeVodSpaceDetectStatisData

  • @param *request.DescribeVodSpaceDetectStatisDataRequest
  • @return *response.DescribeVodSpaceDetectStatisDataResponse, int, error

func (*Vod) DescribeVodSpaceEditDetailData

DescribeVodSpaceEditDetailData

  • @param *request.DescribeVodSpaceEditDetailDataRequest
  • @return *response.DescribeVodSpaceEditDetailDataResponse, int, error

func (*Vod) DescribeVodSpaceStorageData

DescribeVodSpaceStorageData

  • @param *request.VodDescribeVodSpaceStorageDataRequest
  • @return *response.VodDescribeVodSpaceStorageDataResponse, int, error

func (*Vod) DescribeVodSpaceSubtitleStatisData

DescribeVodSpaceSubtitleStatisData

  • @param *request.DescribeVodSpaceSubtitleStatisDataRequest
  • @return *response.DescribeVodSpaceSubtitleStatisDataResponse, int, error

func (*Vod) DescribeVodSpaceTranscodeData

DescribeVodSpaceTranscodeData

  • @param *request.DescribeVodSpaceTranscodeDataRequest
  • @return *response.DescribeVodSpaceTranscodeDataResponse, int, error

func (*Vod) DescribeVodSpaceWorkflowDetailData

DescribeVodSpaceWorkflowDetailData

  • @param *request.DescribeVodSpaceWorkflowDetailDataRequest
  • @return *response.DescribeVodSpaceWorkflowDetailDataResponse, int, error

func (*Vod) ExtractMediaMetaTask

ExtractMediaMetaTask

  • @param *request.VodExtractMediaMetaTaskRequest
  • @return *response.VodExtractMediaMetaTaskResponse, int, error

func (*Vod) GetAllPlayInfo

GetAllPlayInfo

  • @param *request.VodGetAllPlayInfoRequest
  • @return *response.VodGetAllPlayInfoResponse, int, error

func (*Vod) GetAppInfo

GetAppInfo

  • @param *request.VodGetAppInfoRequest
  • @return *response.VodGetAppInfoResponse, int, error

func (*Vod) GetAudioEventDetectionForAudit

GetAudioEventDetectionForAudit

  • @param *request.VodGetAudioEventDetectionForAuditRequest
  • @return *response.VodGetAudioEventDetectionForAuditResponse, int, error

func (*Vod) GetAudioInfoForAudit

GetAudioInfoForAudit

  • @param *request.VodGetAudioInfoForAuditRequest
  • @return *response.VodGetAudioInfoForAuditResponse, int, error

func (*Vod) GetAuditFramesForAudit

GetAuditFramesForAudit

  • @param *request.VodGetAuditFramesForAuditRequest
  • @return *response.VodGetAuditFramesForAuditResponse, int, error

func (*Vod) GetAutomaticSpeechRecognitionForAudit

GetAutomaticSpeechRecognitionForAudit

  • @param *request.VodGetAutomaticSpeechRecognitionForAuditRequest
  • @return *response.VodGetAutomaticSpeechRecognitionForAuditResponse, int, error

func (*Vod) GetBetterFramesForAudit

GetBetterFramesForAudit

  • @param *request.VodGetBetterFramesForAuditRequest
  • @return *response.VodGetBetterFramesForAuditResponse, int, error

func (*Vod) GetContentBlockTasks

GetContentBlockTasks

  • @param *request.VodGetContentBlockTasksRequest
  • @return *response.VodGetContentBlockTasksResponse, int, error

func (*Vod) GetDirectEditProgress

GetDirectEditProgress

  • @param *request.VodGetDirectEditProgressRequest
  • @return *response.VodGetDirectEditProgressResponse, int, error

func (*Vod) GetDirectEditResult

GetDirectEditResult

  • @param *request.VodGetDirectEditResultRequest
  • @return *response.VodGetDirectEditResultResponse, int, error

func (*Vod) GetHlsDecryptionKey

GetHlsDecryptionKey

  • @param *request.VodGetHlsDecryptionKeyRequest
  • @return *response.VodGetHlsDecryptionKeyResponse, int, error

func (*Vod) GetMLFramesForAudit

GetMLFramesForAudit

  • @param *request.VodGetMLFramesForAuditRequest
  • @return *response.VodGetMLFramesForAuditResponse, int, error

func (*Vod) GetMediaInfos

GetMediaInfos

  • @param *request.VodGetMediaInfosRequest
  • @return *response.VodGetMediaInfosResponse, int, error

func (*Vod) GetMediaList

GetMediaList

  • @param *request.VodGetMediaListRequest
  • @return *response.VodGetMediaListResponse, int, error

func (*Vod) GetPlayAuthToken

func (p *Vod) GetPlayAuthToken(req *request.VodGetPlayInfoRequest, tokenExpireTime int) (string, error)

func (*Vod) GetPlayInfo

GetPlayInfo

  • @param *request.VodGetPlayInfoRequest
  • @return *response.VodGetPlayInfoResponse, int, error

func (*Vod) GetPlayInfoWithLiveTimeShiftScene

GetPlayInfoWithLiveTimeShiftScene

  • @param *request.VodGetPlayInfoWithLiveTimeShiftSceneRequest
  • @return *response.VodGetPlayInfoWithLiveTimeShiftSceneResponse, int, error

func (*Vod) GetPrivateDrmAuthToken

func (p *Vod) GetPrivateDrmAuthToken(req *request.VodGetPrivateDrmPlayAuthRequest, tokenExpireTime int) (string, error)

func (*Vod) GetPrivateDrmPlayAuth

GetPrivateDrmPlayAuth

  • @param *request.VodGetPrivateDrmPlayAuthRequest
  • @return *response.VodGetPrivateDrmPlayAuthResponse, int, error

func (*Vod) GetRecommendedPoster

GetRecommendedPoster

  • @param *request.VodGetRecommendedPosterRequest
  • @return *response.VodGetRecommendedPosterResponse, int, error

func (*Vod) GetSmartStrategyLitePlayInfo

GetSmartStrategyLitePlayInfo

  • @param *request.VodGetSmartStrategyLitePlayInfoRequest
  • @return *response.VodGetSmartStrategyLitePlayInfoResponse, int, error

func (*Vod) GetSpaceDetail

GetSpaceDetail

  • @param *request.VodGetSpaceDetailRequest
  • @return *response.VodGetSpaceDetailResponse, int, error

func (*Vod) GetSubtitleAuthToken

func (p *Vod) GetSubtitleAuthToken(req *request.VodGetSubtitleInfoListRequest, tokenExpireTime int) (string, error)

func (*Vod) GetSubtitleInfoList

GetSubtitleInfoList

  • @param *request.VodGetSubtitleInfoListRequest
  • @return *response.VodGetSubtitleInfoListResponse, int, error

func (*Vod) GetTaskTemplate added in v1.0.107

GetTaskTemplate

  • @param *request.VodGetTaskTemplateRequest
  • @return *response.VodGetTaskTemplateResponse, int, error

func (*Vod) GetUploadAuth

func (p *Vod) GetUploadAuth() (*base.SecurityToken2, error)

func (*Vod) GetUploadAuthWithExpiredTime

func (p *Vod) GetUploadAuthWithExpiredTime(expiredTime time.Duration) (*base.SecurityToken2, error)

func (*Vod) GetWatermarkTemplate added in v1.0.107

func (p *Vod) GetWatermarkTemplate(req *request.VodGetWatermarkRequest) (*response.VodGetWatermarkResponse, int, error)

GetWatermarkTemplate

  • @param *request.VodGetWatermarkRequest
  • @return *response.VodGetWatermarkResponse, int, error

func (*Vod) GetWorkflowExecution

GetWorkflowExecution

  • @param *request.VodGetWorkflowExecutionStatusRequest
  • @return *response.VodGetWorkflowExecutionStatusResponse, int, error

func (*Vod) GetWorkflowExecutionResult

func (p *Vod) GetWorkflowExecutionResult(req *request.VodGetWorkflowResultRequest) (*response.VodGetWorkflowResultResponse, int, error)

GetWorkflowExecutionResult

  • @param *request.VodGetWorkflowResultRequest
  • @return *response.VodGetWorkflowResultResponse, int, error

func (*Vod) GetWorkflowTemplate added in v1.0.107

GetWorkflowTemplate

  • @param *request.VodGetWorkflowTemplateRequest
  • @return *response.VodGetWorkflowTemplateResponse, int, error

func (*Vod) InitUploadPart added in v1.0.103

func (p *Vod) InitUploadPart(tosHost string, oid string, auth string, client *http.Client, storageClass int32) (string, error)

func (*Vod) ListCdnAccessLog

ListCdnAccessLog

  • @param *request.VodListCdnAccessLogRequest
  • @return *response.VodListCdnAccessLogResponse, int, error

func (*Vod) ListCdnHitrateData added in v1.0.98

ListCdnHitrateData

  • @param *request.VodListCdnHitrateDataRequest
  • @return *response.VodCdnStatisticsCommonResponse, int, error

func (*Vod) ListCdnPvData

ListCdnPvData

  • @param *request.VodListCdnPvDataRequest
  • @return *response.VodCdnStatisticsCommonResponse, int, error

func (*Vod) ListCdnStatusData

ListCdnStatusData

  • @param *request.VodListCdnStatusDataRequest
  • @return *response.VodCdnStatisticsCommonResponse, int, error

func (*Vod) ListCdnTasks

ListCdnTasks

  • @param *request.VodListCdnTasksRequest
  • @return *response.VodListCdnTasksResponse, int, error

func (*Vod) ListCdnTopAccessUrl

ListCdnTopAccessUrl

  • @param *request.VodListCdnTopAccessUrlRequest
  • @return *response.VodListCdnTopAccessUrlResponse, int, error

func (*Vod) ListCdnUsageData

ListCdnUsageData

  • @param *request.VodListCdnUsageDataRequest
  • @return *response.VodCdnStatisticsCommonResponse, int, error

func (*Vod) ListDomain

ListDomain

  • @param *request.VodListDomainRequest
  • @return *response.VodListDomainResponse, int, error

func (*Vod) ListSnapshots

ListSnapshots

  • @param *request.VodListSnapshotsRequest
  • @return *response.VodListSnapshotsResponse, int, error

func (*Vod) ListSpace

ListSpace

  • @param *request.VodListSpaceRequest
  • @return *response.VodListSpaceResponse, int, error

func (*Vod) ListTaskTemplate added in v1.0.107

ListTaskTemplate

  • @param *request.VodListTaskTemplateRequest
  • @return *response.VodListTaskTemplateResponse, int, error

func (*Vod) ListVideoClassifications

ListVideoClassifications

  • @param *request.VodListVideoClassificationsRequest
  • @return *response.VodListVideoClassificationsResponse, int, error

func (*Vod) ListWatermarkTemplate added in v1.0.107

func (p *Vod) ListWatermarkTemplate(req *request.VodListWatermarkRequest) (*response.VodListWatermarkResponse, int, error)

ListWatermarkTemplate

  • @param *request.VodListWatermarkRequest
  • @return *response.VodListWatermarkResponse, int, error

func (*Vod) ListWorkflowTemplate added in v1.0.107

ListWorkflowTemplate

  • @param *request.VodListWorkflowTemplateRequest
  • @return *response.VodListWorkflowTemplateResponse, int, error

func (*Vod) QueryMediaBlockStatus

QueryMediaBlockStatus

  • @param *request.VodQueryMediaBlockStatusRequest
  • @return *response.VodQueryMediaBlockStatusResponse, int, error

func (*Vod) QueryUploadTaskInfo

QueryUploadTaskInfo

  • @param *request.VodQueryUploadTaskInfoRequest
  • @return *response.VodQueryUploadTaskInfoResponse, int, error

func (*Vod) RetrieveTranscodeResult

RetrieveTranscodeResult

  • @param *request.VodRetrieveTranscodeResultRequest
  • @return *response.VodRetrieveTranscodeResultResponse, int, error

func (*Vod) SetCallbackEvent

SetCallbackEvent

  • @param *request.VodSetCallbackEventRequest
  • @return *response.VodSetCallbackEventResponse, int, error

func (*Vod) StartWorkflow

StartWorkflow

  • @param *request.VodStartWorkflowRequest
  • @return *response.VodStartWorkflowResponse, int, error

func (*Vod) SubmitBlockMediaTask

SubmitBlockMediaTask

  • @param *request.VodSubmitBlockMediaTaskRequest
  • @return *response.VodSubmitBlockMediaTaskResponse, int, error

func (*Vod) SubmitBlockTasks

SubmitBlockTasks

  • @param *request.VodSubmitBlockTasksRequest
  • @return *response.VodSubmitBlockTasksResponse, int, error

func (*Vod) SubmitDirectEditTaskAsync

SubmitDirectEditTaskAsync

  • @param *request.VodSubmitDirectEditTaskAsyncRequest
  • @return *response.VodSubmitDirectEditTaskAsyncResponse, int, error

func (*Vod) SubmitUnblockMediaTask

SubmitUnblockMediaTask

  • @param *request.VodSubmitUnblockMediaTaskRequest
  • @return *response.VodSubmitUnblockMediaTaskResponse, int, error

func (*Vod) UpdateDomainAuthConfig added in v1.0.110

UpdateDomainAuthConfig

  • @param *request.VodUpdateDomainAuthConfigV2Request
  • @return *response.VodUpdateDomainAuthConfigV2Response, int, error

func (*Vod) UpdateDomainExpire added in v1.0.110

UpdateDomainExpire

  • @param *request.VodUpdateDomainExpireV2Request
  • @return *response.VodUpdateDomainExpireV2Response, int, error

func (*Vod) UpdateMediaInfo

UpdateMediaInfo

  • @param *request.VodUpdateMediaInfoRequest
  • @return *response.VodUpdateMediaInfoResponse, int, error

func (*Vod) UpdateMediaPublishStatus

UpdateMediaPublishStatus

  • @param *request.VodUpdateMediaPublishStatusRequest
  • @return *response.VodUpdateMediaPublishStatusResponse, int, error

func (*Vod) UpdateMediaStorageClass

UpdateMediaStorageClass

  • @param *request.VodUpdateMediaStorageClassRequest
  • @return *response.VodUpdateMediaStorageClassResponse, int, error

func (*Vod) UpdateSpace

UpdateSpace

  • @param *request.VodUpdateSpaceRequest
  • @return *response.VodUpdateSpaceResponse, int, error

func (*Vod) UpdateSpaceUploadConfig

UpdateSpaceUploadConfig

  • @param *request.VodUpdateSpaceUploadConfigRequest
  • @return *response.VodUpdateSpaceUploadConfigResponse, int, error

func (*Vod) UpdateSubtitleInfo

UpdateSubtitleInfo

  • @param *request.VodUpdateSubtitleInfoRequest
  • @return *response.VodUpdateSubtitleInfoResponse, int, error

func (*Vod) UpdateSubtitleStatus

UpdateSubtitleStatus

  • @param *request.VodUpdateSubtitleStatusRequest
  • @return *response.VodUpdateSubtitleStatusResponse, int, error

func (*Vod) UpdateTaskTemplate added in v1.0.107

UpdateTaskTemplate

  • @param *request.VodUpdateTaskTemplateRequest
  • @return *response.VodUpdateTaskTemplateResponse, int, error

func (*Vod) UpdateVideoClassification

UpdateVideoClassification

  • @param *request.VodUpdateVideoClassificationRequest
  • @return *response.VodUpdateVideoClassificationResponse, int, error

func (*Vod) UpdateWatermarkTemplate added in v1.0.107

func (p *Vod) UpdateWatermarkTemplate(req *request.VodUpdateWatermarkRequest) (*response.VodUpdateWatermarkResponse, int, error)

UpdateWatermarkTemplate

  • @param *request.VodUpdateWatermarkRequest
  • @return *response.VodUpdateWatermarkResponse, int, error

func (*Vod) UpdateWorkflowTemplate added in v1.0.107

UpdateWorkflowTemplate

  • @param *request.VodUpdateWorkflowTemplateRequest
  • @return *response.VodUpdateWorkflowTemplateResponse, int, error

func (*Vod) Upload

func (p *Vod) Upload(vodUploadFuncRequest *model.VodUploadFuncRequest) (string, string, error, int)

func (*Vod) UploadMaterialWithCallback

func (p *Vod) UploadMaterialWithCallback(materialRequest *request.VodUploadMaterialRequest) (*response.VodCommitUploadInfoResponse, int, error)

func (*Vod) UploadMediaByUrl

func (p *Vod) UploadMediaByUrl(req *request.VodUrlUploadRequest) (*response.VodUrlUploadResponse, int, error)

UploadMediaByUrl

  • @param *request.VodUrlUploadRequest
  • @return *response.VodUrlUploadResponse, int, error

func (*Vod) UploadMediaInner

func (p *Vod) UploadMediaInner(uploadMediaInnerRequest *model.VodUploadMediaInnerFuncRequest) (*response.VodCommitUploadInfoResponse, int, error)

func (*Vod) UploadMediaWithCallback

func (p *Vod) UploadMediaWithCallback(mediaRequset *request.VodUploadMediaRequest) (*response.VodCommitUploadInfoResponse, int, error)

func (*Vod) UploadMergePart added in v1.0.103

func (p *Vod) UploadMergePart(uploadPart model.UploadPartCommon, uploadID string, uploadPartResponseList []*model.UploadPartResponse, client *http.Client, storageClass int32) error

func (*Vod) UploadObjectWithCallback

func (p *Vod) UploadObjectWithCallback(filePath string, spaceName string, callbackArgs string, fileName, fileExtension string, funcs string) (*response.VodCommitUploadInfoResponse, int, error)

type WorkflowInput

type WorkflowInput struct {
	TemplateId string
}

Directories

Path Synopsis
models
upload

Jump to

Keyboard shortcuts

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