Documentation ¶
Overview ¶
Package udi include resources of ucloud udi product
See also
for detail.
Index ¶
- type CreateFunctionTemplateRequest
- type CreateFunctionTemplateResponse
- type CreateMediaTaskRequest
- type CreateMediaTaskResponse
- type DeleteFunctionTemplateRequest
- type DeleteFunctionTemplateResponse
- type DescribeFunctionTemplateRequest
- type DescribeFunctionTemplateResponse
- type DescribeMediaFunctionsRequest
- type DescribeMediaFunctionsResponse
- type DescribeMediaTaskRequest
- type DescribeMediaTaskResponse
- type Function
- type FunctionTemplate
- type MediaTask
- type ParamCustom
- type ParamOption
- type UDIClient
- func (c *UDIClient) CreateFunctionTemplate(req *CreateFunctionTemplateRequest) (*CreateFunctionTemplateResponse, error)
- func (c *UDIClient) CreateMediaTask(req *CreateMediaTaskRequest) (*CreateMediaTaskResponse, error)
- func (c *UDIClient) DeleteFunctionTemplate(req *DeleteFunctionTemplateRequest) (*DeleteFunctionTemplateResponse, error)
- func (c *UDIClient) DescribeFunctionTemplate(req *DescribeFunctionTemplateRequest) (*DescribeFunctionTemplateResponse, error)
- func (c *UDIClient) DescribeMediaFunctions(req *DescribeMediaFunctionsRequest) (*DescribeMediaFunctionsResponse, error)
- func (c *UDIClient) DescribeMediaTask(req *DescribeMediaTaskRequest) (*DescribeMediaTaskResponse, error)
- func (c *UDIClient) NewCreateFunctionTemplateRequest() *CreateFunctionTemplateRequest
- func (c *UDIClient) NewCreateMediaTaskRequest() *CreateMediaTaskRequest
- func (c *UDIClient) NewDeleteFunctionTemplateRequest() *DeleteFunctionTemplateRequest
- func (c *UDIClient) NewDescribeFunctionTemplateRequest() *DescribeFunctionTemplateRequest
- func (c *UDIClient) NewDescribeMediaFunctionsRequest() *DescribeMediaFunctionsRequest
- func (c *UDIClient) NewDescribeMediaTaskRequest() *DescribeMediaTaskRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFunctionTemplateRequest ¶
type CreateFunctionTemplateRequest struct { request.CommonBase // 音频比特率 AudioBitRate *string `required:"false"` // 自定义音频比特率 AudioBitRateCustom *string `required:"false"` // 音频声道 AudioChannel *string `required:"false"` // 音频采样率 AudioSampleRate *string `required:"false"` // CRF压缩率 CRF *string `required:"false"` // 自定义CRF压缩率 CRFCustom *string `required:"false"` // 文件输出格式 ContainerFormat *string `required:"true"` // 编码格式 EncodeFormat *string `required:"true"` // 帧率 FrameRate *string `required:"false"` // 自定义帧率 FrameRateCustom *string `required:"false"` // 功能名称 Function *string `required:"true"` // 项目名称 ProjectName *string `required:"true"` // 分辨率 Resolution *string `required:"false"` // 分辨率高 ResolutionHeight *string `required:"false"` // 分辨率宽 ResolutionWidth *string `required:"false"` // 模板名称 TemplateName *string `required:"true"` // 视频比特率 VideoBitRate *string `required:"false"` // 自定义视频比特率 VideoBitRateCustom *string `required:"false"` }
CreateFunctionTemplateRequest is request schema for CreateFunctionTemplate action
type CreateFunctionTemplateResponse ¶
type CreateFunctionTemplateResponse struct { response.CommonBase // 创建的模板ID TemplateId string }
CreateFunctionTemplateResponse is response schema for CreateFunctionTemplate action
type CreateMediaTaskRequest ¶
type CreateMediaTaskRequest struct { request.CommonBase // Bucket名称 Bucket *string `required:"true"` // 目标生成文件 DstKey *string `required:"true"` // 功能名称:例VideoTranscode Function *string `required:"true"` // 功能的参数模板ID,需要事先创建模板才可用,也可以使用预设模板,详细可通过DescribeFunctionTemplate接口查询 FunctionParamTemplateId *string `required:"true"` // 源文件 SrcKey *string `required:"true"` // 存储源 StorageBackend *string `required:"true"` }
CreateMediaTaskRequest is request schema for CreateMediaTask action
type CreateMediaTaskResponse ¶
type CreateMediaTaskResponse struct { response.CommonBase // 任务ID TaskId string }
CreateMediaTaskResponse is response schema for CreateMediaTask action
type DeleteFunctionTemplateRequest ¶
type DeleteFunctionTemplateRequest struct { request.CommonBase // 要删除的模板ID TemplateId *string `required:"true"` }
DeleteFunctionTemplateRequest is request schema for DeleteFunctionTemplate action
type DeleteFunctionTemplateResponse ¶
type DeleteFunctionTemplateResponse struct {
response.CommonBase
}
DeleteFunctionTemplateResponse is response schema for DeleteFunctionTemplate action
type DescribeFunctionTemplateRequest ¶
type DescribeFunctionTemplateRequest struct { request.CommonBase // 功能模板类型:预设(preset)自定义(custom),为空则获取两种类型 Type *string `required:"false"` }
DescribeFunctionTemplateRequest is request schema for DescribeFunctionTemplate action
type DescribeFunctionTemplateResponse ¶
type DescribeFunctionTemplateResponse struct { response.CommonBase // 功能模板 Templates []FunctionTemplate }
DescribeFunctionTemplateResponse is response schema for DescribeFunctionTemplate action
type DescribeMediaFunctionsRequest ¶
type DescribeMediaFunctionsRequest struct { request.CommonBase // 要查询的Function名称,为空则返回所有支持的Function Function *string `required:"false"` }
DescribeMediaFunctionsRequest is request schema for DescribeMediaFunctions action
type DescribeMediaFunctionsResponse ¶
type DescribeMediaFunctionsResponse struct { response.CommonBase // 功能列表 Functions []Function }
DescribeMediaFunctionsResponse is response schema for DescribeMediaFunctions action
type DescribeMediaTaskRequest ¶
type DescribeMediaTaskRequest struct { request.CommonBase // 要查询的任务ID,为空则查询所有 TaskId *string `required:"false"` }
DescribeMediaTaskRequest is request schema for DescribeMediaTask action
type DescribeMediaTaskResponse ¶
type DescribeMediaTaskResponse struct { response.CommonBase // 任务 Tasks []MediaTask }
DescribeMediaTaskResponse is response schema for DescribeMediaTask action
type Function ¶
type Function struct { // DisplayName string // FunctionName string // InputType string // OutputType string // SupportParams []ParamOption }
Function -
type FunctionTemplate ¶
FunctionTemplate -
type ParamCustom ¶
ParamCustom -
type ParamOption ¶
type ParamOption struct { // DisplayName string // OptionalValues []string // ParamName string // Required bool // WhenValueCustom []ParamCustom }
ParamOption -
type UDIClient ¶
UDIClient is the client of UDI
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UDIClient
NewClient will return a instance of UDIClient
func (*UDIClient) CreateFunctionTemplate ¶
func (c *UDIClient) CreateFunctionTemplate(req *CreateFunctionTemplateRequest) (*CreateFunctionTemplateResponse, error)
API: CreateFunctionTemplate
创建功能参数模板
func (*UDIClient) CreateMediaTask ¶
func (c *UDIClient) CreateMediaTask(req *CreateMediaTaskRequest) (*CreateMediaTaskResponse, error)
API: CreateMediaTask
创建一个多媒体任务
func (*UDIClient) DeleteFunctionTemplate ¶
func (c *UDIClient) DeleteFunctionTemplate(req *DeleteFunctionTemplateRequest) (*DeleteFunctionTemplateResponse, error)
API: DeleteFunctionTemplate
删除功能模板
func (*UDIClient) DescribeFunctionTemplate ¶
func (c *UDIClient) DescribeFunctionTemplate(req *DescribeFunctionTemplateRequest) (*DescribeFunctionTemplateResponse, error)
API: DescribeFunctionTemplate
获取功能模板
func (*UDIClient) DescribeMediaFunctions ¶
func (c *UDIClient) DescribeMediaFunctions(req *DescribeMediaFunctionsRequest) (*DescribeMediaFunctionsResponse, error)
API: DescribeMediaFunctions
描述当前支持的多媒体功能以及对应功能需要的参数信息
func (*UDIClient) DescribeMediaTask ¶
func (c *UDIClient) DescribeMediaTask(req *DescribeMediaTaskRequest) (*DescribeMediaTaskResponse, error)
API: DescribeMediaTask
查询任务状态
func (*UDIClient) NewCreateFunctionTemplateRequest ¶
func (c *UDIClient) NewCreateFunctionTemplateRequest() *CreateFunctionTemplateRequest
NewCreateFunctionTemplateRequest will create request of CreateFunctionTemplate action.
func (*UDIClient) NewCreateMediaTaskRequest ¶
func (c *UDIClient) NewCreateMediaTaskRequest() *CreateMediaTaskRequest
NewCreateMediaTaskRequest will create request of CreateMediaTask action.
func (*UDIClient) NewDeleteFunctionTemplateRequest ¶
func (c *UDIClient) NewDeleteFunctionTemplateRequest() *DeleteFunctionTemplateRequest
NewDeleteFunctionTemplateRequest will create request of DeleteFunctionTemplate action.
func (*UDIClient) NewDescribeFunctionTemplateRequest ¶
func (c *UDIClient) NewDescribeFunctionTemplateRequest() *DescribeFunctionTemplateRequest
NewDescribeFunctionTemplateRequest will create request of DescribeFunctionTemplate action.
func (*UDIClient) NewDescribeMediaFunctionsRequest ¶
func (c *UDIClient) NewDescribeMediaFunctionsRequest() *DescribeMediaFunctionsRequest
NewDescribeMediaFunctionsRequest will create request of DescribeMediaFunctions action.
func (*UDIClient) NewDescribeMediaTaskRequest ¶
func (c *UDIClient) NewDescribeMediaTaskRequest() *DescribeMediaTaskRequest
NewDescribeMediaTaskRequest will create request of DescribeMediaTask action.