vod

package
v1.0.143 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 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"},
		},
		base.RegionApSouthEast1: {
			Timeout: 60 * time.Second,
			Scheme:  "https",
			Host:    "vod.ap-southeast-1.volcengineapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: base.Credentials{Region: base.RegionApSouthEast1, Service: "vod"},
		},
	}

	ApiInfoList = map[string]*base.ApiInfo{}/* 104 elements not displayed */

)
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) AddDomainToScheduler added in v1.0.136

AddDomainToScheduler

  • @param *request.VodAddDomainToSchedulerRequest
  • @return *response.VodAddDomainToSchedulerResponse, int, error

func (*Vod) AddOrUpdateCertificate added in v1.0.126

AddOrUpdateCertificate

  • @param *request.AddOrUpdateCertificateV2Request
  • @return *response.AddOrUpdateCertificateV2Response, 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) DeleteDomain added in v1.0.136

DeleteDomain

  • @param *request.VodDeleteDomainRequest
  • @return *response.VodDeleteDomainResponse, int, error

func (*Vod) DeleteMedia

DeleteMedia

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

func (*Vod) DeleteSpace added in v1.0.136

DeleteSpace

  • @param *request.VodDeleteSpaceRequest
  • @return *response.VodDeleteSpaceResponse, 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) DescribeDrmDataKey added in v1.0.136

DescribeDrmDataKey

  • @param *request.VodDescribeDrmDataKeyRequest
  • @return *response.VodDescribeDrmDataKeyResponse, 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) GetMediaInfos20230701 added in v1.0.136

func (p *Vod) GetMediaInfos20230701(req *request.VodGetMediaInfosRequest) (*response.VodGetMediaInfosResponse, int, error)

GetMediaInfos20230701

  • @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) ListCdnTopAccess added in v1.0.112

ListCdnTopAccess

  • @param *request.VodListCdnTopAccessRequest
  • @return *response.VodListCdnTopAccessResponse, 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) ListFileMetaInfosByFileNames added in v1.0.126

ListFileMetaInfosByFileNames

  • @param *request.VodListFileMetaInfosByFileNamesRequest
  • @return *response.VodListFileMetaInfosByFileNamesResponse, 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) RemoveDomainFromScheduler added in v1.0.136

RemoveDomainFromScheduler

  • @param *request.VodRemoveDomainFromSchedulerRequest
  • @return *response.VodRemoveDomainFromSchedulerResponse, 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) StartDomain added in v1.0.136

StartDomain

  • @param *request.VodStartDomainRequest
  • @return *response.VodStartDomainResponse, int, error

func (*Vod) StartWorkflow

StartWorkflow

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

func (*Vod) StopDomain added in v1.0.136

StopDomain

  • @param *request.VodStopDomainRequest
  • @return *response.VodStopDomainResponse, 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) UpdateDomainPlayRule added in v1.0.136

UpdateDomainPlayRule

  • @param *request.VodUpdateDomainPlayRuleRequest
  • @return *response.VodUpdateDomainPlayRuleResponse, int, error

func (*Vod) UpdateDomainUrlAuthConfig added in v1.0.137

UpdateDomainUrlAuthConfig

  • @param *request.VodUpdateDomainUrlAuthConfigV2Request
  • @return *response.VodUpdateDomainUrlAuthConfigV2Response, 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)

func (*Vod) UploadObjectWithCallbackV2 added in v1.0.131

func (p *Vod) UploadObjectWithCallbackV2(uploadReq *request.VodUploadObjectRequest) (*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