client

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VodClient

type VodClient struct {
	core.JDCloudClient
}

func NewVodClient

func NewVodClient(credential *core.Credential) *VodClient

func (*VodClient) BatchDeleteVideos

func (c *VodClient) BatchDeleteVideos(request *vod.BatchDeleteVideosRequest) (*vod.BatchDeleteVideosResponse, error)

批量删除视频,调用该接口会同时删除与指定视频相关的所有信息,包括转码任务信息、转码流数据等,同时清除云存储中相关文件资源。

func (*VodClient) BatchSubmitTranscodeJobs

func (c *VodClient) BatchSubmitTranscodeJobs(request *vod.BatchSubmitTranscodeJobsRequest) (*vod.BatchSubmitTranscodeJobsResponse, error)

批量提交转码作业

func (*VodClient) BatchUpdateVideos

func (c *VodClient) BatchUpdateVideos(request *vod.BatchUpdateVideosRequest) (*vod.BatchUpdateVideosResponse, error)

批量修改视频信息

func (*VodClient) CreateCategory

func (c *VodClient) CreateCategory(request *vod.CreateCategoryRequest) (*vod.CreateCategoryResponse, error)

添加分类

func (*VodClient) CreateDomain

func (c *VodClient) CreateDomain(request *vod.CreateDomainRequest) (*vod.CreateDomainResponse, error)

添加域名

func (*VodClient) CreateImageUploadTask added in v1.10.0

func (c *VodClient) CreateImageUploadTask(request *vod.CreateImageUploadTaskRequest) (*vod.CreateImageUploadTaskResponse, error)

获取图片上传地址和凭证

func (*VodClient) CreateTranscodeTemplate

func (c *VodClient) CreateTranscodeTemplate(request *vod.CreateTranscodeTemplateRequest) (*vod.CreateTranscodeTemplateResponse, error)

创建转码模板

func (*VodClient) CreateVideoUploadTask added in v1.10.0

func (c *VodClient) CreateVideoUploadTask(request *vod.CreateVideoUploadTaskRequest) (*vod.CreateVideoUploadTaskResponse, error)

获取视频上传地址和凭证

func (*VodClient) CreateWatermark

func (c *VodClient) CreateWatermark(request *vod.CreateWatermarkRequest) (*vod.CreateWatermarkResponse, error)

添加水印

func (*VodClient) DeleteCategory

func (c *VodClient) DeleteCategory(request *vod.DeleteCategoryRequest) (*vod.DeleteCategoryResponse, error)

删除分类

func (*VodClient) DeleteDomain

func (c *VodClient) DeleteDomain(request *vod.DeleteDomainRequest) (*vod.DeleteDomainResponse, error)

删除域名

func (*VodClient) DeleteHeader

func (c *VodClient) DeleteHeader(request *vod.DeleteHeaderRequest) (*vod.DeleteHeaderResponse, error)

删除域名访问头参数

func (*VodClient) DeleteTranscodeTemplate

func (c *VodClient) DeleteTranscodeTemplate(request *vod.DeleteTranscodeTemplateRequest) (*vod.DeleteTranscodeTemplateResponse, error)

删除转码模板

func (*VodClient) DeleteVideo

func (c *VodClient) DeleteVideo(request *vod.DeleteVideoRequest) (*vod.DeleteVideoResponse, error)

删除视频,调用该接口会同时删除与指定视频相关的所有信息,包括转码任务信息、转码流数据等,同时清除云存储中相关文件资源。

func (*VodClient) DeleteVideoStreams

func (c *VodClient) DeleteVideoStreams(request *vod.DeleteVideoStreamsRequest) (*vod.DeleteVideoStreamsResponse, error)

删除视频转码流

func (*VodClient) DeleteWatermark

func (c *VodClient) DeleteWatermark(request *vod.DeleteWatermarkRequest) (*vod.DeleteWatermarkResponse, error)

删除水印

func (*VodClient) DisableDomain

func (c *VodClient) DisableDomain(request *vod.DisableDomainRequest) (*vod.DisableDomainResponse, error)

停用域名

func (*VodClient) EnableDomain

func (c *VodClient) EnableDomain(request *vod.EnableDomainRequest) (*vod.EnableDomainResponse, error)

启用域名

func (*VodClient) GetCategory

func (c *VodClient) GetCategory(request *vod.GetCategoryRequest) (*vod.GetCategoryResponse, error)

查询分类

func (*VodClient) GetCategoryWithChildren

func (c *VodClient) GetCategoryWithChildren(request *vod.GetCategoryWithChildrenRequest) (*vod.GetCategoryWithChildrenResponse, error)

查询分类及其子分类,若指定的分类ID为0,则返回一个根分类及其子分类(即一级分类).

func (*VodClient) GetDomain

func (c *VodClient) GetDomain(request *vod.GetDomainRequest) (*vod.GetDomainResponse, error)

查询域名

func (*VodClient) GetIPRule

func (c *VodClient) GetIPRule(request *vod.GetIPRuleRequest) (*vod.GetIPRuleResponse, error)

查询CDN域名IP黑名单规则配置

func (*VodClient) GetRefererRule

func (c *VodClient) GetRefererRule(request *vod.GetRefererRuleRequest) (*vod.GetRefererRuleResponse, error)

查询CDN域名Referer防盗链规则配置

func (*VodClient) GetTranscodeTemplate

func (c *VodClient) GetTranscodeTemplate(request *vod.GetTranscodeTemplateRequest) (*vod.GetTranscodeTemplateResponse, error)

查询转码模板

func (*VodClient) GetURLRule

func (c *VodClient) GetURLRule(request *vod.GetURLRuleRequest) (*vod.GetURLRuleResponse, error)

查询CDN域名URL鉴权规则配置

func (*VodClient) GetVideo

func (c *VodClient) GetVideo(request *vod.GetVideoRequest) (*vod.GetVideoResponse, error)

查询单个视频信息

func (*VodClient) GetVideoPlayInfo

func (c *VodClient) GetVideoPlayInfo(request *vod.GetVideoPlayInfoRequest) (*vod.GetVideoPlayInfoResponse, error)

获取视频播放信息

func (*VodClient) GetWatermark

func (c *VodClient) GetWatermark(request *vod.GetWatermarkRequest) (*vod.GetWatermarkResponse, error)

查询水印

func (*VodClient) ListCategories

func (c *VodClient) ListCategories(request *vod.ListCategoriesRequest) (*vod.ListCategoriesResponse, error)

查询分类列表,按照分页方式,返回分类列表信息

func (*VodClient) ListDomains

func (c *VodClient) ListDomains(request *vod.ListDomainsRequest) (*vod.ListDomainsResponse, error)

查询域名列表

func (*VodClient) ListHeaders

func (c *VodClient) ListHeaders(request *vod.ListHeadersRequest) (*vod.ListHeadersResponse, error)

查询域名访问头参数列表

func (*VodClient) ListTranscodeTemplates

func (c *VodClient) ListTranscodeTemplates(request *vod.ListTranscodeTemplatesRequest) (*vod.ListTranscodeTemplatesResponse, error)
查询转码模板列表。允许通过条件过滤查询,支持的过滤字段如下:

- source 模板来源。枚举值,取值范围为:

  • system 系统预置
  • custom 用户自建

- templateType 模板类型。枚举值,取值范围:

  • jdchd 京享超清
  • jdchs 极速转码

func (*VodClient) ListVideos

func (c *VodClient) ListVideos(request *vod.ListVideosRequest) (*vod.ListVideosResponse, error)

查询视频列表信息

func (*VodClient) ListWatermarks

func (c *VodClient) ListWatermarks(request *vod.ListWatermarksRequest) (*vod.ListWatermarksResponse, error)

查询水印列表

func (*VodClient) RefreshVideoUploadTask added in v1.10.0

func (c *VodClient) RefreshVideoUploadTask(request *vod.RefreshVideoUploadTaskRequest) (*vod.RefreshVideoUploadTaskResponse, error)

刷新视频上传地址和凭证

func (*VodClient) SetConfig

func (c *VodClient) SetConfig(config *core.Config)

func (*VodClient) SetDefaultDomain

func (c *VodClient) SetDefaultDomain(request *vod.SetDefaultDomainRequest) (*vod.SetDefaultDomainResponse, error)

设为默认域名

func (*VodClient) SetHeader

func (c *VodClient) SetHeader(request *vod.SetHeaderRequest) (*vod.SetHeaderResponse, error)

设置域名访问头参数

func (*VodClient) SetIPRule

func (c *VodClient) SetIPRule(request *vod.SetIPRuleRequest) (*vod.SetIPRuleResponse, error)

设置CDN域名IP黑名单规则

func (*VodClient) SetLogger

func (c *VodClient) SetLogger(logger core.Logger)

func (*VodClient) SetRefererRule

func (c *VodClient) SetRefererRule(request *vod.SetRefererRuleRequest) (*vod.SetRefererRuleResponse, error)

设置CDN域名Referer防盗链规则

func (*VodClient) SetURLRule

func (c *VodClient) SetURLRule(request *vod.SetURLRuleRequest) (*vod.SetURLRuleResponse, error)

设置CDN域名URL鉴权规则

func (*VodClient) SubmitTranscodeJob

func (c *VodClient) SubmitTranscodeJob(request *vod.SubmitTranscodeJobRequest) (*vod.SubmitTranscodeJobResponse, error)

提交转码作业

func (*VodClient) UpdateCategory

func (c *VodClient) UpdateCategory(request *vod.UpdateCategoryRequest) (*vod.UpdateCategoryResponse, error)

修改分类

func (*VodClient) UpdateTranscodeTemplate

func (c *VodClient) UpdateTranscodeTemplate(request *vod.UpdateTranscodeTemplateRequest) (*vod.UpdateTranscodeTemplateResponse, error)

修改转码模板

func (*VodClient) UpdateVideo

func (c *VodClient) UpdateVideo(request *vod.UpdateVideoRequest) (*vod.UpdateVideoResponse, error)

修改视频信息

func (*VodClient) UpdateWatermark

func (c *VodClient) UpdateWatermark(request *vod.UpdateWatermarkRequest) (*vod.UpdateWatermarkResponse, error)

修改水印

Jump to

Keyboard shortcuts

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