Documentation ¶
Index ¶
- Constants
- Variables
- func BuildSign(dsa, version, timestamp string, key []byte) string
- func GetDate(t time.Time) string
- type AdvanceOption
- type ApplyUploadParam
- type ApplyUploadResp
- type ApplyUploadResult
- type BaseResp
- type CommitUploadBody
- type CommitUploadParam
- type CommitUploadResp
- type CommitUploadResult
- type DomainInfo
- type Encryption
- type EntryptionInput
- type FileType
- type Function
- type GetWeightsResp
- type ImageMeta
- type ImgUrl
- type ModifyVideoInfoBaseResp
- type ModifyVideoInfoBody
- type ModifyVideoInfoResp
- type ObjectMeta
- type OptionFun
- func WithFormat(format string) OptionFun
- func WithHttps() OptionFun
- func WithKV(kv url.Values) OptionFun
- func WithSig(key string) OptionFun
- func WithVodNoop() OptionFun
- func WithVodTplCenterCrop(width, height int) OptionFun
- func WithVodTplObj() OptionFun
- func WithVodTplResize(width, height int) OptionFun
- func WithVodTplSmartCrop(width, height int) OptionFun
- type OptionInfo
- type PublicErrorCode
- type SetVideoPublishStatusResp
- type SnapshotInput
- type StartWorkflowRequest
- type StartWorkflowResp
- type StartWorkflowResult
- type StoreInfo
- type TagControl
- type UploadAddress
- type UploadMediaByUrlParams
- type UploadMediaByUrlResp
- type UploadMediaByUrlResult
- type UploadResult
- type UserMetaInfo
- type VideoDefinition
- type VideoFormat
- type VideoMeta
- type Vod
- func (p *Vod) AddCallbackSubscription(req *request.VodAddCallbackSubscriptionRequest) (*response.VodAddCallbackSubscriptionResponse, int, error)
- func (p *Vod) ApplyUploadInfo(req *request.VodApplyUploadInfoRequest) (*response.VodApplyUploadInfoResponse, int, error)
- func (p *Vod) CommitUploadInfo(req *request.VodCommitUploadInfoRequest) (*response.VodCommitUploadInfoResponse, int, error)
- func (p *Vod) CreateCdnPreloadTask(req *request.VodCreateCdnPreloadTaskRequest) (*response.VodCreateCdnPreloadTaskResponse, int, error)
- func (p *Vod) CreateCdnRefreshTask(req *request.VodCreateCdnRefreshTaskRequest) (*response.VodCreateCdnRefreshTaskResponse, int, error)
- func (p *Vod) CreateSha1HlsDrmAuthToken(expireSeconds int64) (auth string, err error)
- func (p *Vod) CreateSpace(req *request.VodCreateSpaceRequest) (*response.VodCreateSpaceResponse, int, error)
- func (p *Vod) CreateVideoClassification(req *request.VodCreateVideoClassificationRequest) (*response.VodCreateVideoClassificationResponse, int, error)
- func (p *Vod) DeleteMedia(req *request.VodDeleteMediaRequest) (*response.VodDeleteMediaResponse, int, error)
- func (p *Vod) DeleteTranscodes(req *request.VodDeleteTranscodesRequest) (*response.VodDeleteTranscodesResponse, int, error)
- func (p *Vod) DeleteVideoClassification(req *request.VodDeleteVideoClassificationRequest) (*response.VodDeleteVideoClassificationResponse, int, error)
- func (p *Vod) DescribeIpInfo(req *request.VodDescribeIPInfoRequest) (*response.VodDescribeIPInfoResponse, int, error)
- func (p *Vod) DescribeVodDomainBandwidthData(req *request.VodDescribeVodDomainBandwidthDataRequest) (*response.VodDescribeVodDomainBandwidthDataResponse, int, error)
- func (p *Vod) DescribeVodDomainTrafficData(req *request.VodDescribeVodDomainTrafficDataRequest) (*response.VodDescribeVodDomainTrafficDataResponse, int, error)
- func (p *Vod) DescribeVodPlayFileLogByDomain(req *request.DescribeVodPlayFileLogByDomainRequest) (*response.DescribeVodPlayFileLogByDomainResponse, int, error)
- func (p *Vod) DescribeVodSnapshotData(req *request.DescribeVodSnapshotDataRequest) (*response.DescribeVodSnapshotDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceAIStatisData(req *request.DescribeVodSpaceAIStatisDataRequest) (*response.DescribeVodSpaceAIStatisDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceDetectStatisData(req *request.DescribeVodSpaceDetectStatisDataRequest) (*response.DescribeVodSpaceDetectStatisDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceEditDetailData(req *request.DescribeVodSpaceEditDetailDataRequest) (*response.DescribeVodSpaceEditDetailDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceStorageData(req *request.VodDescribeVodSpaceStorageDataRequest) (*response.VodDescribeVodSpaceStorageDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceSubtitleStatisData(req *request.DescribeVodSpaceSubtitleStatisDataRequest) (*response.DescribeVodSpaceSubtitleStatisDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceTranscodeData(req *request.DescribeVodSpaceTranscodeDataRequest) (*response.DescribeVodSpaceTranscodeDataResponse, int, error)
- func (p *Vod) DescribeVodSpaceWorkflowDetailData(req *request.DescribeVodSpaceWorkflowDetailDataRequest) (*response.DescribeVodSpaceWorkflowDetailDataResponse, int, error)
- func (p *Vod) ExtractMediaMetaTask(req *request.VodExtractMediaMetaTaskRequest) (*response.VodExtractMediaMetaTaskResponse, int, error)
- func (p *Vod) GetAllPlayInfo(req *request.VodGetAllPlayInfoRequest) (*response.VodGetAllPlayInfoResponse, int, error)
- func (p *Vod) GetAppInfo(req *request.VodGetAppInfoRequest) (*response.VodGetAppInfoResponse, int, error)
- func (p *Vod) GetAudioEventDetectionForAudit(req *request.VodGetAudioEventDetectionForAuditRequest) (*response.VodGetAudioEventDetectionForAuditResponse, int, error)
- func (p *Vod) GetAudioInfoForAudit(req *request.VodGetAudioInfoForAuditRequest) (*response.VodGetAudioInfoForAuditResponse, int, error)
- func (p *Vod) GetAuditFramesForAudit(req *request.VodGetAuditFramesForAuditRequest) (*response.VodGetAuditFramesForAuditResponse, int, error)
- func (p *Vod) GetAutomaticSpeechRecognitionForAudit(req *request.VodGetAutomaticSpeechRecognitionForAuditRequest) (*response.VodGetAutomaticSpeechRecognitionForAuditResponse, int, error)
- func (p *Vod) GetBetterFramesForAudit(req *request.VodGetBetterFramesForAuditRequest) (*response.VodGetBetterFramesForAuditResponse, int, error)
- func (p *Vod) GetContentBlockTasks(req *request.VodGetContentBlockTasksRequest) (*response.VodGetContentBlockTasksResponse, int, error)
- func (p *Vod) GetDirectEditProgress(req *request.VodGetDirectEditProgressRequest) (*response.VodGetDirectEditProgressResponse, int, error)
- func (p *Vod) GetDirectEditResult(req *request.VodGetDirectEditResultRequest) (*response.VodGetDirectEditResultResponse, int, error)
- func (p *Vod) GetHlsDecryptionKey(req *request.VodGetHlsDecryptionKeyRequest) (*response.VodGetHlsDecryptionKeyResponse, int, error)
- func (p *Vod) GetMLFramesForAudit(req *request.VodGetMLFramesForAuditRequest) (*response.VodGetMLFramesForAuditResponse, int, error)
- func (p *Vod) GetMediaInfos(req *request.VodGetMediaInfosRequest) (*response.VodGetMediaInfosResponse, int, error)
- func (p *Vod) GetMediaList(req *request.VodGetMediaListRequest) (*response.VodGetMediaListResponse, int, error)
- func (p *Vod) GetPlayAuthToken(req *request.VodGetPlayInfoRequest, tokenExpireTime int) (string, error)
- func (p *Vod) GetPlayInfo(req *request.VodGetPlayInfoRequest) (*response.VodGetPlayInfoResponse, int, error)
- func (p *Vod) GetPlayInfoWithLiveTimeShiftScene(req *request.VodGetPlayInfoWithLiveTimeShiftSceneRequest) (*response.VodGetPlayInfoWithLiveTimeShiftSceneResponse, int, error)
- func (p *Vod) GetPrivateDrmAuthToken(req *request.VodGetPrivateDrmPlayAuthRequest, tokenExpireTime int) (string, error)
- func (p *Vod) GetPrivateDrmPlayAuth(req *request.VodGetPrivateDrmPlayAuthRequest) (*response.VodGetPrivateDrmPlayAuthResponse, int, error)
- func (p *Vod) GetRecommendedPoster(req *request.VodGetRecommendedPosterRequest) (*response.VodGetRecommendedPosterResponse, int, error)
- func (p *Vod) GetSmartStrategyLitePlayInfo(req *request.VodGetSmartStrategyLitePlayInfoRequest) (*response.VodGetSmartStrategyLitePlayInfoResponse, int, error)
- func (p *Vod) GetSpaceDetail(req *request.VodGetSpaceDetailRequest) (*response.VodGetSpaceDetailResponse, int, error)
- func (p *Vod) GetSubtitleAuthToken(req *request.VodGetSubtitleInfoListRequest, tokenExpireTime int) (string, error)
- func (p *Vod) GetSubtitleInfoList(req *request.VodGetSubtitleInfoListRequest) (*response.VodGetSubtitleInfoListResponse, int, error)
- func (p *Vod) GetUploadAuth() (*base.SecurityToken2, error)
- func (p *Vod) GetUploadAuthWithExpiredTime(expiredTime time.Duration) (*base.SecurityToken2, error)
- func (p *Vod) GetWorkflowExecution(req *request.VodGetWorkflowExecutionStatusRequest) (*response.VodGetWorkflowExecutionStatusResponse, int, error)
- func (p *Vod) GetWorkflowExecutionResult(req *request.VodGetWorkflowResultRequest) (*response.VodGetWorkflowResultResponse, int, error)
- func (p *Vod) ListCdnAccessLog(req *request.VodListCdnAccessLogRequest) (*response.VodListCdnAccessLogResponse, int, error)
- func (p *Vod) ListCdnHitrateData(req *request.VodListCdnHitrateDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
- func (p *Vod) ListCdnPvData(req *request.VodListCdnPvDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
- func (p *Vod) ListCdnStatusData(req *request.VodListCdnStatusDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
- func (p *Vod) ListCdnTasks(req *request.VodListCdnTasksRequest) (*response.VodListCdnTasksResponse, int, error)
- func (p *Vod) ListCdnTopAccessUrl(req *request.VodListCdnTopAccessUrlRequest) (*response.VodListCdnTopAccessUrlResponse, int, error)
- func (p *Vod) ListCdnUsageData(req *request.VodListCdnUsageDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
- func (p *Vod) ListDomain(req *request.VodListDomainRequest) (*response.VodListDomainResponse, int, error)
- func (p *Vod) ListSnapshots(req *request.VodListSnapshotsRequest) (*response.VodListSnapshotsResponse, int, error)
- func (p *Vod) ListSpace(req *request.VodListSpaceRequest) (*response.VodListSpaceResponse, int, error)
- func (p *Vod) ListVideoClassifications(req *request.VodListVideoClassificationsRequest) (*response.VodListVideoClassificationsResponse, int, error)
- func (p *Vod) QueryMediaBlockStatus(req *request.VodQueryMediaBlockStatusRequest) (*response.VodQueryMediaBlockStatusResponse, int, error)
- func (p *Vod) QueryUploadTaskInfo(req *request.VodQueryUploadTaskInfoRequest) (*response.VodQueryUploadTaskInfoResponse, int, error)
- func (p *Vod) RetrieveTranscodeResult(req *request.VodRetrieveTranscodeResultRequest) (*response.VodRetrieveTranscodeResultResponse, int, error)
- func (p *Vod) SetCallbackEvent(req *request.VodSetCallbackEventRequest) (*response.VodSetCallbackEventResponse, int, error)
- func (p *Vod) StartWorkflow(req *request.VodStartWorkflowRequest) (*response.VodStartWorkflowResponse, int, error)
- func (p *Vod) SubmitBlockMediaTask(req *request.VodSubmitBlockMediaTaskRequest) (*response.VodSubmitBlockMediaTaskResponse, int, error)
- func (p *Vod) SubmitBlockTasks(req *request.VodSubmitBlockTasksRequest) (*response.VodSubmitBlockTasksResponse, int, error)
- func (p *Vod) SubmitDirectEditTaskAsync(req *request.VodSubmitDirectEditTaskAsyncRequest) (*response.VodSubmitDirectEditTaskAsyncResponse, int, error)
- func (p *Vod) SubmitUnblockMediaTask(req *request.VodSubmitUnblockMediaTaskRequest) (*response.VodSubmitUnblockMediaTaskResponse, int, error)
- func (p *Vod) UpdateMediaInfo(req *request.VodUpdateMediaInfoRequest) (*response.VodUpdateMediaInfoResponse, int, error)
- func (p *Vod) UpdateMediaPublishStatus(req *request.VodUpdateMediaPublishStatusRequest) (*response.VodUpdateMediaPublishStatusResponse, int, error)
- func (p *Vod) UpdateMediaStorageClass(req *request.VodUpdateMediaStorageClassRequest) (*response.VodUpdateMediaStorageClassResponse, int, error)
- func (p *Vod) UpdateSpace(req *request.VodUpdateSpaceRequest) (*response.VodUpdateSpaceResponse, int, error)
- func (p *Vod) UpdateSpaceUploadConfig(req *request.VodUpdateSpaceUploadConfigRequest) (*response.VodUpdateSpaceUploadConfigResponse, int, error)
- func (p *Vod) UpdateSubtitleInfo(req *request.VodUpdateSubtitleInfoRequest) (*response.VodUpdateSubtitleInfoResponse, int, error)
- func (p *Vod) UpdateSubtitleStatus(req *request.VodUpdateSubtitleStatusRequest) (*response.VodUpdateSubtitleStatusResponse, int, error)
- func (p *Vod) UpdateVideoClassification(req *request.VodUpdateVideoClassificationRequest) (*response.VodUpdateVideoClassificationResponse, int, error)
- func (p *Vod) Upload(rd io.Reader, size int64, spaceName string, fileType string, ...) (string, string, error, int)
- func (p *Vod) UploadMaterialWithCallback(materialRequest *request.VodUploadMaterialRequest) (*response.VodCommitUploadInfoResponse, int, error)
- func (p *Vod) UploadMediaByUrl(req *request.VodUrlUploadRequest) (*response.VodUrlUploadResponse, int, error)
- func (p *Vod) UploadMediaInner(rd io.Reader, size int64, spaceName string, fileType, callbackArgs string, ...) (*response.VodCommitUploadInfoResponse, int, error)
- func (p *Vod) UploadMediaWithCallback(mediaRequset *request.VodUploadMediaRequest) (*response.VodCommitUploadInfoResponse, int, error)
- func (p *Vod) UploadObjectWithCallback(filePath string, spaceName string, callbackArgs string, ...) (*response.VodCommitUploadInfoResponse, int, error)
- type WorkflowInput
Constants ¶
const ( DSAHmacSha1 = "HMAC-SHA1" Version2 = "2.0" SprAuth = ":" SprSign = "&" DateYYYYMMDDTHHmmss = "20060102T150405Z" )
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 ¶
var ( ServiceVOD = []byte("vod") ErrAccessKeyInvalid = errors.New("access key invalid") ErrSecretKeyInvalid = errors.New("secret key invalid") )
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{"2020-08-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{"2020-08-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"}, }, }, "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-01-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"}, }, }, "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"}, }, }, } )
var (
ErrKvSig = errors.New("Input kv already has sig query")
)
Functions ¶
Types ¶
type AdvanceOption ¶
type ApplyUploadParam ¶
type ApplyUploadResp ¶
type ApplyUploadResp struct { base.CommonResponse Result ApplyUploadResult }
type ApplyUploadResult ¶
type ApplyUploadResult struct { RequestID string UploadAddress UploadAddress }
type CommitUploadBody ¶
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 Encryption ¶
type EntryptionInput ¶
type GetWeightsResp ¶
type GetWeightsResp struct { ResponseMetadata *base.ResponseMetadata Result map[string]map[string]int `json:",omitempty"` }
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 OptionFun ¶
type OptionFun func(*option)
func WithFormat ¶
func WithVodNoop ¶
func WithVodNoop() OptionFun
func WithVodTplCenterCrop ¶
func WithVodTplObj ¶
func WithVodTplObj() OptionFun
func WithVodTplResize ¶
func WithVodTplSmartCrop ¶
type OptionInfo ¶
type PublicErrorCode ¶
type PublicErrorCode string
type SetVideoPublishStatusResp ¶
type SetVideoPublishStatusResp struct {
ResponseMetadata *base.ResponseMetadata
}
SetVideoPublishStatus
type SnapshotInput ¶
type SnapshotInput struct {
SnapshotTime float64
}
type StartWorkflowRequest ¶
type StartWorkflowResp ¶
type StartWorkflowResp struct { ResponseMetadata *base.ResponseMetadata Result *StartWorkflowResult `json:",omitempty"` }
type StartWorkflowResult ¶
type StartWorkflowResult struct {
RunId string
}
type TagControl ¶
type UploadAddress ¶
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 UploadResult ¶
type UploadResult struct { Vid string VideoMeta VideoMeta ImageMeta ImageMeta ObjectMeta ObjectMeta Encryption Encryption SnapshotUri string }
type UserMetaInfo ¶
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 Vod ¶
func NewInstance ¶
func NewInstance() *Vod
func NewInstanceWithRegion ¶
func (*Vod) AddCallbackSubscription ¶
func (p *Vod) AddCallbackSubscription(req *request.VodAddCallbackSubscriptionRequest) (*response.VodAddCallbackSubscriptionResponse, int, error)
AddCallbackSubscription
- @param *request.VodAddCallbackSubscriptionRequest
- @return *response.VodAddCallbackSubscriptionResponse, int, error
func (*Vod) ApplyUploadInfo ¶
func (p *Vod) ApplyUploadInfo(req *request.VodApplyUploadInfoRequest) (*response.VodApplyUploadInfoResponse, int, error)
ApplyUploadInfo
- @param *request.VodApplyUploadInfoRequest
- @return *response.VodApplyUploadInfoResponse, int, error
func (*Vod) CommitUploadInfo ¶
func (p *Vod) CommitUploadInfo(req *request.VodCommitUploadInfoRequest) (*response.VodCommitUploadInfoResponse, int, error)
CommitUploadInfo
- @param *request.VodCommitUploadInfoRequest
- @return *response.VodCommitUploadInfoResponse, int, error
func (*Vod) CreateCdnPreloadTask ¶
func (p *Vod) CreateCdnPreloadTask(req *request.VodCreateCdnPreloadTaskRequest) (*response.VodCreateCdnPreloadTaskResponse, int, error)
CreateCdnPreloadTask
- @param *request.VodCreateCdnPreloadTaskRequest
- @return *response.VodCreateCdnPreloadTaskResponse, int, error
func (*Vod) CreateCdnRefreshTask ¶
func (p *Vod) CreateCdnRefreshTask(req *request.VodCreateCdnRefreshTaskRequest) (*response.VodCreateCdnRefreshTaskResponse, int, error)
CreateCdnRefreshTask
- @param *request.VodCreateCdnRefreshTaskRequest
- @return *response.VodCreateCdnRefreshTaskResponse, int, error
func (*Vod) CreateSha1HlsDrmAuthToken ¶
func (*Vod) CreateSpace ¶
func (p *Vod) CreateSpace(req *request.VodCreateSpaceRequest) (*response.VodCreateSpaceResponse, int, error)
CreateSpace
- @param *request.VodCreateSpaceRequest
- @return *response.VodCreateSpaceResponse, int, error
func (*Vod) CreateVideoClassification ¶
func (p *Vod) CreateVideoClassification(req *request.VodCreateVideoClassificationRequest) (*response.VodCreateVideoClassificationResponse, int, error)
CreateVideoClassification
- @param *request.VodCreateVideoClassificationRequest
- @return *response.VodCreateVideoClassificationResponse, int, error
func (*Vod) DeleteMedia ¶
func (p *Vod) DeleteMedia(req *request.VodDeleteMediaRequest) (*response.VodDeleteMediaResponse, int, error)
DeleteMedia
- @param *request.VodDeleteMediaRequest
- @return *response.VodDeleteMediaResponse, int, error
func (*Vod) DeleteTranscodes ¶
func (p *Vod) DeleteTranscodes(req *request.VodDeleteTranscodesRequest) (*response.VodDeleteTranscodesResponse, int, error)
DeleteTranscodes
- @param *request.VodDeleteTranscodesRequest
- @return *response.VodDeleteTranscodesResponse, int, error
func (*Vod) DeleteVideoClassification ¶
func (p *Vod) DeleteVideoClassification(req *request.VodDeleteVideoClassificationRequest) (*response.VodDeleteVideoClassificationResponse, int, error)
DeleteVideoClassification
- @param *request.VodDeleteVideoClassificationRequest
- @return *response.VodDeleteVideoClassificationResponse, int, error
func (*Vod) DescribeIpInfo ¶
func (p *Vod) DescribeIpInfo(req *request.VodDescribeIPInfoRequest) (*response.VodDescribeIPInfoResponse, int, error)
DescribeIpInfo
- @param *request.VodDescribeIPInfoRequest
- @return *response.VodDescribeIPInfoResponse, int, error
func (*Vod) DescribeVodDomainBandwidthData ¶
func (p *Vod) DescribeVodDomainBandwidthData(req *request.VodDescribeVodDomainBandwidthDataRequest) (*response.VodDescribeVodDomainBandwidthDataResponse, int, error)
DescribeVodDomainBandwidthData
- @param *request.VodDescribeVodDomainBandwidthDataRequest
- @return *response.VodDescribeVodDomainBandwidthDataResponse, int, error
func (*Vod) DescribeVodDomainTrafficData ¶
func (p *Vod) DescribeVodDomainTrafficData(req *request.VodDescribeVodDomainTrafficDataRequest) (*response.VodDescribeVodDomainTrafficDataResponse, int, error)
DescribeVodDomainTrafficData
- @param *request.VodDescribeVodDomainTrafficDataRequest
- @return *response.VodDescribeVodDomainTrafficDataResponse, int, error
func (*Vod) DescribeVodPlayFileLogByDomain ¶ added in v1.0.99
func (p *Vod) DescribeVodPlayFileLogByDomain(req *request.DescribeVodPlayFileLogByDomainRequest) (*response.DescribeVodPlayFileLogByDomainResponse, int, error)
DescribeVodPlayFileLogByDomain
- @param *request.DescribeVodPlayFileLogByDomainRequest
- @return *response.DescribeVodPlayFileLogByDomainResponse, int, error
func (*Vod) DescribeVodSnapshotData ¶
func (p *Vod) DescribeVodSnapshotData(req *request.DescribeVodSnapshotDataRequest) (*response.DescribeVodSnapshotDataResponse, int, error)
DescribeVodSnapshotData
- @param *request.DescribeVodSnapshotDataRequest
- @return *response.DescribeVodSnapshotDataResponse, int, error
func (*Vod) DescribeVodSpaceAIStatisData ¶
func (p *Vod) DescribeVodSpaceAIStatisData(req *request.DescribeVodSpaceAIStatisDataRequest) (*response.DescribeVodSpaceAIStatisDataResponse, int, error)
DescribeVodSpaceAIStatisData
- @param *request.DescribeVodSpaceAIStatisDataRequest
- @return *response.DescribeVodSpaceAIStatisDataResponse, int, error
func (*Vod) DescribeVodSpaceDetectStatisData ¶
func (p *Vod) DescribeVodSpaceDetectStatisData(req *request.DescribeVodSpaceDetectStatisDataRequest) (*response.DescribeVodSpaceDetectStatisDataResponse, int, error)
DescribeVodSpaceDetectStatisData
- @param *request.DescribeVodSpaceDetectStatisDataRequest
- @return *response.DescribeVodSpaceDetectStatisDataResponse, int, error
func (*Vod) DescribeVodSpaceEditDetailData ¶
func (p *Vod) DescribeVodSpaceEditDetailData(req *request.DescribeVodSpaceEditDetailDataRequest) (*response.DescribeVodSpaceEditDetailDataResponse, int, error)
DescribeVodSpaceEditDetailData
- @param *request.DescribeVodSpaceEditDetailDataRequest
- @return *response.DescribeVodSpaceEditDetailDataResponse, int, error
func (*Vod) DescribeVodSpaceStorageData ¶
func (p *Vod) DescribeVodSpaceStorageData(req *request.VodDescribeVodSpaceStorageDataRequest) (*response.VodDescribeVodSpaceStorageDataResponse, int, error)
DescribeVodSpaceStorageData
- @param *request.VodDescribeVodSpaceStorageDataRequest
- @return *response.VodDescribeVodSpaceStorageDataResponse, int, error
func (*Vod) DescribeVodSpaceSubtitleStatisData ¶
func (p *Vod) DescribeVodSpaceSubtitleStatisData(req *request.DescribeVodSpaceSubtitleStatisDataRequest) (*response.DescribeVodSpaceSubtitleStatisDataResponse, int, error)
DescribeVodSpaceSubtitleStatisData
- @param *request.DescribeVodSpaceSubtitleStatisDataRequest
- @return *response.DescribeVodSpaceSubtitleStatisDataResponse, int, error
func (*Vod) DescribeVodSpaceTranscodeData ¶
func (p *Vod) DescribeVodSpaceTranscodeData(req *request.DescribeVodSpaceTranscodeDataRequest) (*response.DescribeVodSpaceTranscodeDataResponse, int, error)
DescribeVodSpaceTranscodeData
- @param *request.DescribeVodSpaceTranscodeDataRequest
- @return *response.DescribeVodSpaceTranscodeDataResponse, int, error
func (*Vod) DescribeVodSpaceWorkflowDetailData ¶
func (p *Vod) DescribeVodSpaceWorkflowDetailData(req *request.DescribeVodSpaceWorkflowDetailDataRequest) (*response.DescribeVodSpaceWorkflowDetailDataResponse, int, error)
DescribeVodSpaceWorkflowDetailData
- @param *request.DescribeVodSpaceWorkflowDetailDataRequest
- @return *response.DescribeVodSpaceWorkflowDetailDataResponse, int, error
func (*Vod) ExtractMediaMetaTask ¶
func (p *Vod) ExtractMediaMetaTask(req *request.VodExtractMediaMetaTaskRequest) (*response.VodExtractMediaMetaTaskResponse, int, error)
ExtractMediaMetaTask
- @param *request.VodExtractMediaMetaTaskRequest
- @return *response.VodExtractMediaMetaTaskResponse, int, error
func (*Vod) GetAllPlayInfo ¶
func (p *Vod) GetAllPlayInfo(req *request.VodGetAllPlayInfoRequest) (*response.VodGetAllPlayInfoResponse, int, error)
GetAllPlayInfo
- @param *request.VodGetAllPlayInfoRequest
- @return *response.VodGetAllPlayInfoResponse, int, error
func (*Vod) GetAppInfo ¶
func (p *Vod) GetAppInfo(req *request.VodGetAppInfoRequest) (*response.VodGetAppInfoResponse, int, error)
GetAppInfo
- @param *request.VodGetAppInfoRequest
- @return *response.VodGetAppInfoResponse, int, error
func (*Vod) GetAudioEventDetectionForAudit ¶
func (p *Vod) GetAudioEventDetectionForAudit(req *request.VodGetAudioEventDetectionForAuditRequest) (*response.VodGetAudioEventDetectionForAuditResponse, int, error)
GetAudioEventDetectionForAudit
- @param *request.VodGetAudioEventDetectionForAuditRequest
- @return *response.VodGetAudioEventDetectionForAuditResponse, int, error
func (*Vod) GetAudioInfoForAudit ¶
func (p *Vod) GetAudioInfoForAudit(req *request.VodGetAudioInfoForAuditRequest) (*response.VodGetAudioInfoForAuditResponse, int, error)
GetAudioInfoForAudit
- @param *request.VodGetAudioInfoForAuditRequest
- @return *response.VodGetAudioInfoForAuditResponse, int, error
func (*Vod) GetAuditFramesForAudit ¶
func (p *Vod) GetAuditFramesForAudit(req *request.VodGetAuditFramesForAuditRequest) (*response.VodGetAuditFramesForAuditResponse, int, error)
GetAuditFramesForAudit
- @param *request.VodGetAuditFramesForAuditRequest
- @return *response.VodGetAuditFramesForAuditResponse, int, error
func (*Vod) GetAutomaticSpeechRecognitionForAudit ¶
func (p *Vod) GetAutomaticSpeechRecognitionForAudit(req *request.VodGetAutomaticSpeechRecognitionForAuditRequest) (*response.VodGetAutomaticSpeechRecognitionForAuditResponse, int, error)
GetAutomaticSpeechRecognitionForAudit
- @param *request.VodGetAutomaticSpeechRecognitionForAuditRequest
- @return *response.VodGetAutomaticSpeechRecognitionForAuditResponse, int, error
func (*Vod) GetBetterFramesForAudit ¶
func (p *Vod) GetBetterFramesForAudit(req *request.VodGetBetterFramesForAuditRequest) (*response.VodGetBetterFramesForAuditResponse, int, error)
GetBetterFramesForAudit
- @param *request.VodGetBetterFramesForAuditRequest
- @return *response.VodGetBetterFramesForAuditResponse, int, error
func (*Vod) GetContentBlockTasks ¶
func (p *Vod) GetContentBlockTasks(req *request.VodGetContentBlockTasksRequest) (*response.VodGetContentBlockTasksResponse, int, error)
GetContentBlockTasks
- @param *request.VodGetContentBlockTasksRequest
- @return *response.VodGetContentBlockTasksResponse, int, error
func (*Vod) GetDirectEditProgress ¶
func (p *Vod) GetDirectEditProgress(req *request.VodGetDirectEditProgressRequest) (*response.VodGetDirectEditProgressResponse, int, error)
GetDirectEditProgress
- @param *request.VodGetDirectEditProgressRequest
- @return *response.VodGetDirectEditProgressResponse, int, error
func (*Vod) GetDirectEditResult ¶
func (p *Vod) GetDirectEditResult(req *request.VodGetDirectEditResultRequest) (*response.VodGetDirectEditResultResponse, int, error)
GetDirectEditResult
- @param *request.VodGetDirectEditResultRequest
- @return *response.VodGetDirectEditResultResponse, int, error
func (*Vod) GetHlsDecryptionKey ¶
func (p *Vod) GetHlsDecryptionKey(req *request.VodGetHlsDecryptionKeyRequest) (*response.VodGetHlsDecryptionKeyResponse, int, error)
GetHlsDecryptionKey
- @param *request.VodGetHlsDecryptionKeyRequest
- @return *response.VodGetHlsDecryptionKeyResponse, int, error
func (*Vod) GetMLFramesForAudit ¶
func (p *Vod) GetMLFramesForAudit(req *request.VodGetMLFramesForAuditRequest) (*response.VodGetMLFramesForAuditResponse, int, error)
GetMLFramesForAudit
- @param *request.VodGetMLFramesForAuditRequest
- @return *response.VodGetMLFramesForAuditResponse, int, error
func (*Vod) GetMediaInfos ¶
func (p *Vod) GetMediaInfos(req *request.VodGetMediaInfosRequest) (*response.VodGetMediaInfosResponse, int, error)
GetMediaInfos
- @param *request.VodGetMediaInfosRequest
- @return *response.VodGetMediaInfosResponse, int, error
func (*Vod) GetMediaList ¶
func (p *Vod) GetMediaList(req *request.VodGetMediaListRequest) (*response.VodGetMediaListResponse, int, error)
GetMediaList
- @param *request.VodGetMediaListRequest
- @return *response.VodGetMediaListResponse, int, error
func (*Vod) GetPlayAuthToken ¶
func (*Vod) GetPlayInfo ¶
func (p *Vod) GetPlayInfo(req *request.VodGetPlayInfoRequest) (*response.VodGetPlayInfoResponse, int, error)
GetPlayInfo
- @param *request.VodGetPlayInfoRequest
- @return *response.VodGetPlayInfoResponse, int, error
func (*Vod) GetPlayInfoWithLiveTimeShiftScene ¶
func (p *Vod) GetPlayInfoWithLiveTimeShiftScene(req *request.VodGetPlayInfoWithLiveTimeShiftSceneRequest) (*response.VodGetPlayInfoWithLiveTimeShiftSceneResponse, int, error)
GetPlayInfoWithLiveTimeShiftScene
- @param *request.VodGetPlayInfoWithLiveTimeShiftSceneRequest
- @return *response.VodGetPlayInfoWithLiveTimeShiftSceneResponse, int, error
func (*Vod) GetPrivateDrmAuthToken ¶
func (*Vod) GetPrivateDrmPlayAuth ¶
func (p *Vod) GetPrivateDrmPlayAuth(req *request.VodGetPrivateDrmPlayAuthRequest) (*response.VodGetPrivateDrmPlayAuthResponse, int, error)
GetPrivateDrmPlayAuth
- @param *request.VodGetPrivateDrmPlayAuthRequest
- @return *response.VodGetPrivateDrmPlayAuthResponse, int, error
func (*Vod) GetRecommendedPoster ¶
func (p *Vod) GetRecommendedPoster(req *request.VodGetRecommendedPosterRequest) (*response.VodGetRecommendedPosterResponse, int, error)
GetRecommendedPoster
- @param *request.VodGetRecommendedPosterRequest
- @return *response.VodGetRecommendedPosterResponse, int, error
func (*Vod) GetSmartStrategyLitePlayInfo ¶
func (p *Vod) GetSmartStrategyLitePlayInfo(req *request.VodGetSmartStrategyLitePlayInfoRequest) (*response.VodGetSmartStrategyLitePlayInfoResponse, int, error)
GetSmartStrategyLitePlayInfo
- @param *request.VodGetSmartStrategyLitePlayInfoRequest
- @return *response.VodGetSmartStrategyLitePlayInfoResponse, int, error
func (*Vod) GetSpaceDetail ¶
func (p *Vod) GetSpaceDetail(req *request.VodGetSpaceDetailRequest) (*response.VodGetSpaceDetailResponse, int, error)
GetSpaceDetail
- @param *request.VodGetSpaceDetailRequest
- @return *response.VodGetSpaceDetailResponse, int, error
func (*Vod) GetSubtitleAuthToken ¶
func (*Vod) GetSubtitleInfoList ¶
func (p *Vod) GetSubtitleInfoList(req *request.VodGetSubtitleInfoListRequest) (*response.VodGetSubtitleInfoListResponse, int, error)
GetSubtitleInfoList
- @param *request.VodGetSubtitleInfoListRequest
- @return *response.VodGetSubtitleInfoListResponse, int, error
func (*Vod) GetUploadAuth ¶
func (p *Vod) GetUploadAuth() (*base.SecurityToken2, error)
func (*Vod) GetUploadAuthWithExpiredTime ¶
func (*Vod) GetWorkflowExecution ¶
func (p *Vod) GetWorkflowExecution(req *request.VodGetWorkflowExecutionStatusRequest) (*response.VodGetWorkflowExecutionStatusResponse, int, error)
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) ListCdnAccessLog ¶
func (p *Vod) ListCdnAccessLog(req *request.VodListCdnAccessLogRequest) (*response.VodListCdnAccessLogResponse, int, error)
ListCdnAccessLog
- @param *request.VodListCdnAccessLogRequest
- @return *response.VodListCdnAccessLogResponse, int, error
func (*Vod) ListCdnHitrateData ¶ added in v1.0.98
func (p *Vod) ListCdnHitrateData(req *request.VodListCdnHitrateDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
ListCdnHitrateData
- @param *request.VodListCdnHitrateDataRequest
- @return *response.VodCdnStatisticsCommonResponse, int, error
func (*Vod) ListCdnPvData ¶
func (p *Vod) ListCdnPvData(req *request.VodListCdnPvDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
ListCdnPvData
- @param *request.VodListCdnPvDataRequest
- @return *response.VodCdnStatisticsCommonResponse, int, error
func (*Vod) ListCdnStatusData ¶
func (p *Vod) ListCdnStatusData(req *request.VodListCdnStatusDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
ListCdnStatusData
- @param *request.VodListCdnStatusDataRequest
- @return *response.VodCdnStatisticsCommonResponse, int, error
func (*Vod) ListCdnTasks ¶
func (p *Vod) ListCdnTasks(req *request.VodListCdnTasksRequest) (*response.VodListCdnTasksResponse, int, error)
ListCdnTasks
- @param *request.VodListCdnTasksRequest
- @return *response.VodListCdnTasksResponse, int, error
func (*Vod) ListCdnTopAccessUrl ¶
func (p *Vod) ListCdnTopAccessUrl(req *request.VodListCdnTopAccessUrlRequest) (*response.VodListCdnTopAccessUrlResponse, int, error)
ListCdnTopAccessUrl
- @param *request.VodListCdnTopAccessUrlRequest
- @return *response.VodListCdnTopAccessUrlResponse, int, error
func (*Vod) ListCdnUsageData ¶
func (p *Vod) ListCdnUsageData(req *request.VodListCdnUsageDataRequest) (*response.VodCdnStatisticsCommonResponse, int, error)
ListCdnUsageData
- @param *request.VodListCdnUsageDataRequest
- @return *response.VodCdnStatisticsCommonResponse, int, error
func (*Vod) ListDomain ¶
func (p *Vod) ListDomain(req *request.VodListDomainRequest) (*response.VodListDomainResponse, int, error)
ListDomain
- @param *request.VodListDomainRequest
- @return *response.VodListDomainResponse, int, error
func (*Vod) ListSnapshots ¶
func (p *Vod) ListSnapshots(req *request.VodListSnapshotsRequest) (*response.VodListSnapshotsResponse, int, error)
ListSnapshots
- @param *request.VodListSnapshotsRequest
- @return *response.VodListSnapshotsResponse, int, error
func (*Vod) ListSpace ¶
func (p *Vod) ListSpace(req *request.VodListSpaceRequest) (*response.VodListSpaceResponse, int, error)
ListSpace
- @param *request.VodListSpaceRequest
- @return *response.VodListSpaceResponse, int, error
func (*Vod) ListVideoClassifications ¶
func (p *Vod) ListVideoClassifications(req *request.VodListVideoClassificationsRequest) (*response.VodListVideoClassificationsResponse, int, error)
ListVideoClassifications
- @param *request.VodListVideoClassificationsRequest
- @return *response.VodListVideoClassificationsResponse, int, error
func (*Vod) QueryMediaBlockStatus ¶
func (p *Vod) QueryMediaBlockStatus(req *request.VodQueryMediaBlockStatusRequest) (*response.VodQueryMediaBlockStatusResponse, int, error)
QueryMediaBlockStatus
- @param *request.VodQueryMediaBlockStatusRequest
- @return *response.VodQueryMediaBlockStatusResponse, int, error
func (*Vod) QueryUploadTaskInfo ¶
func (p *Vod) QueryUploadTaskInfo(req *request.VodQueryUploadTaskInfoRequest) (*response.VodQueryUploadTaskInfoResponse, int, error)
QueryUploadTaskInfo
- @param *request.VodQueryUploadTaskInfoRequest
- @return *response.VodQueryUploadTaskInfoResponse, int, error
func (*Vod) RetrieveTranscodeResult ¶
func (p *Vod) RetrieveTranscodeResult(req *request.VodRetrieveTranscodeResultRequest) (*response.VodRetrieveTranscodeResultResponse, int, error)
RetrieveTranscodeResult
- @param *request.VodRetrieveTranscodeResultRequest
- @return *response.VodRetrieveTranscodeResultResponse, int, error
func (*Vod) SetCallbackEvent ¶
func (p *Vod) SetCallbackEvent(req *request.VodSetCallbackEventRequest) (*response.VodSetCallbackEventResponse, int, error)
SetCallbackEvent
- @param *request.VodSetCallbackEventRequest
- @return *response.VodSetCallbackEventResponse, int, error
func (*Vod) StartWorkflow ¶
func (p *Vod) StartWorkflow(req *request.VodStartWorkflowRequest) (*response.VodStartWorkflowResponse, int, error)
StartWorkflow
- @param *request.VodStartWorkflowRequest
- @return *response.VodStartWorkflowResponse, int, error
func (*Vod) SubmitBlockMediaTask ¶
func (p *Vod) SubmitBlockMediaTask(req *request.VodSubmitBlockMediaTaskRequest) (*response.VodSubmitBlockMediaTaskResponse, int, error)
SubmitBlockMediaTask
- @param *request.VodSubmitBlockMediaTaskRequest
- @return *response.VodSubmitBlockMediaTaskResponse, int, error
func (*Vod) SubmitBlockTasks ¶
func (p *Vod) SubmitBlockTasks(req *request.VodSubmitBlockTasksRequest) (*response.VodSubmitBlockTasksResponse, int, error)
SubmitBlockTasks
- @param *request.VodSubmitBlockTasksRequest
- @return *response.VodSubmitBlockTasksResponse, int, error
func (*Vod) SubmitDirectEditTaskAsync ¶
func (p *Vod) SubmitDirectEditTaskAsync(req *request.VodSubmitDirectEditTaskAsyncRequest) (*response.VodSubmitDirectEditTaskAsyncResponse, int, error)
SubmitDirectEditTaskAsync
- @param *request.VodSubmitDirectEditTaskAsyncRequest
- @return *response.VodSubmitDirectEditTaskAsyncResponse, int, error
func (*Vod) SubmitUnblockMediaTask ¶
func (p *Vod) SubmitUnblockMediaTask(req *request.VodSubmitUnblockMediaTaskRequest) (*response.VodSubmitUnblockMediaTaskResponse, int, error)
SubmitUnblockMediaTask
- @param *request.VodSubmitUnblockMediaTaskRequest
- @return *response.VodSubmitUnblockMediaTaskResponse, int, error
func (*Vod) UpdateMediaInfo ¶
func (p *Vod) UpdateMediaInfo(req *request.VodUpdateMediaInfoRequest) (*response.VodUpdateMediaInfoResponse, int, error)
UpdateMediaInfo
- @param *request.VodUpdateMediaInfoRequest
- @return *response.VodUpdateMediaInfoResponse, int, error
func (*Vod) UpdateMediaPublishStatus ¶
func (p *Vod) UpdateMediaPublishStatus(req *request.VodUpdateMediaPublishStatusRequest) (*response.VodUpdateMediaPublishStatusResponse, int, error)
UpdateMediaPublishStatus
- @param *request.VodUpdateMediaPublishStatusRequest
- @return *response.VodUpdateMediaPublishStatusResponse, int, error
func (*Vod) UpdateMediaStorageClass ¶
func (p *Vod) UpdateMediaStorageClass(req *request.VodUpdateMediaStorageClassRequest) (*response.VodUpdateMediaStorageClassResponse, int, error)
UpdateMediaStorageClass
- @param *request.VodUpdateMediaStorageClassRequest
- @return *response.VodUpdateMediaStorageClassResponse, int, error
func (*Vod) UpdateSpace ¶
func (p *Vod) UpdateSpace(req *request.VodUpdateSpaceRequest) (*response.VodUpdateSpaceResponse, int, error)
UpdateSpace
- @param *request.VodUpdateSpaceRequest
- @return *response.VodUpdateSpaceResponse, int, error
func (*Vod) UpdateSpaceUploadConfig ¶
func (p *Vod) UpdateSpaceUploadConfig(req *request.VodUpdateSpaceUploadConfigRequest) (*response.VodUpdateSpaceUploadConfigResponse, int, error)
UpdateSpaceUploadConfig
- @param *request.VodUpdateSpaceUploadConfigRequest
- @return *response.VodUpdateSpaceUploadConfigResponse, int, error
func (*Vod) UpdateSubtitleInfo ¶
func (p *Vod) UpdateSubtitleInfo(req *request.VodUpdateSubtitleInfoRequest) (*response.VodUpdateSubtitleInfoResponse, int, error)
UpdateSubtitleInfo
- @param *request.VodUpdateSubtitleInfoRequest
- @return *response.VodUpdateSubtitleInfoResponse, int, error
func (*Vod) UpdateSubtitleStatus ¶
func (p *Vod) UpdateSubtitleStatus(req *request.VodUpdateSubtitleStatusRequest) (*response.VodUpdateSubtitleStatusResponse, int, error)
UpdateSubtitleStatus
- @param *request.VodUpdateSubtitleStatusRequest
- @return *response.VodUpdateSubtitleStatusResponse, int, error
func (*Vod) UpdateVideoClassification ¶
func (p *Vod) UpdateVideoClassification(req *request.VodUpdateVideoClassificationRequest) (*response.VodUpdateVideoClassificationResponse, int, error)
UpdateVideoClassification
- @param *request.VodUpdateVideoClassificationRequest
- @return *response.VodUpdateVideoClassificationResponse, int, error
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 (*Vod) UploadMediaWithCallback ¶
func (p *Vod) UploadMediaWithCallback(mediaRequset *request.VodUploadMediaRequest) (*response.VodCommitUploadInfoResponse, int, error)
type WorkflowInput ¶
type WorkflowInput struct {
TemplateId string
}
Source Files ¶
- auth.go
- base_service.go
- config.go
- errors.go
- model.go
- option.go
- vod_apps_manage_service.go
- vod_callback_service.go
- vod_cdn_service.go
- vod_edit_service.go
- vod_measure_service.go
- vod_media_service.go
- vod_play_service.go
- vod_smart_strategy_lite_service.go
- vod_space_service.go
- vod_upload_service.go
- vod_workflow_service.go