videoseg

package
v1.61.1827 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) GetAsyncJobResult

func (client *Client) GetAsyncJobResult(request *GetAsyncJobResultRequest) (response *GetAsyncJobResultResponse, err error)

GetAsyncJobResult invokes the videoseg.GetAsyncJobResult API synchronously

func (*Client) GetAsyncJobResultWithCallback

func (client *Client) GetAsyncJobResultWithCallback(request *GetAsyncJobResultRequest, callback func(response *GetAsyncJobResultResponse, err error)) <-chan int

GetAsyncJobResultWithCallback invokes the videoseg.GetAsyncJobResult API asynchronously

func (*Client) GetAsyncJobResultWithChan

func (client *Client) GetAsyncJobResultWithChan(request *GetAsyncJobResultRequest) (<-chan *GetAsyncJobResultResponse, <-chan error)

GetAsyncJobResultWithChan invokes the videoseg.GetAsyncJobResult API asynchronously

func (*Client) SegmentGreenScreenVideo added in v1.61.892

func (client *Client) SegmentGreenScreenVideo(request *SegmentGreenScreenVideoRequest) (response *SegmentGreenScreenVideoResponse, err error)

SegmentGreenScreenVideo invokes the videoseg.SegmentGreenScreenVideo API synchronously

func (*Client) SegmentGreenScreenVideoWithCallback added in v1.61.892

func (client *Client) SegmentGreenScreenVideoWithCallback(request *SegmentGreenScreenVideoRequest, callback func(response *SegmentGreenScreenVideoResponse, err error)) <-chan int

SegmentGreenScreenVideoWithCallback invokes the videoseg.SegmentGreenScreenVideo API asynchronously

func (*Client) SegmentGreenScreenVideoWithChan added in v1.61.892

func (client *Client) SegmentGreenScreenVideoWithChan(request *SegmentGreenScreenVideoRequest) (<-chan *SegmentGreenScreenVideoResponse, <-chan error)

SegmentGreenScreenVideoWithChan invokes the videoseg.SegmentGreenScreenVideo API asynchronously

func (*Client) SegmentHalfBody

func (client *Client) SegmentHalfBody(request *SegmentHalfBodyRequest) (response *SegmentHalfBodyResponse, err error)

SegmentHalfBody invokes the videoseg.SegmentHalfBody API synchronously

func (*Client) SegmentHalfBodyWithCallback

func (client *Client) SegmentHalfBodyWithCallback(request *SegmentHalfBodyRequest, callback func(response *SegmentHalfBodyResponse, err error)) <-chan int

SegmentHalfBodyWithCallback invokes the videoseg.SegmentHalfBody API asynchronously

func (*Client) SegmentHalfBodyWithChan

func (client *Client) SegmentHalfBodyWithChan(request *SegmentHalfBodyRequest) (<-chan *SegmentHalfBodyResponse, <-chan error)

SegmentHalfBodyWithChan invokes the videoseg.SegmentHalfBody API asynchronously

func (*Client) SegmentVideoBody

func (client *Client) SegmentVideoBody(request *SegmentVideoBodyRequest) (response *SegmentVideoBodyResponse, err error)

SegmentVideoBody invokes the videoseg.SegmentVideoBody API synchronously

func (*Client) SegmentVideoBodyWithCallback

func (client *Client) SegmentVideoBodyWithCallback(request *SegmentVideoBodyRequest, callback func(response *SegmentVideoBodyResponse, err error)) <-chan int

SegmentVideoBodyWithCallback invokes the videoseg.SegmentVideoBody API asynchronously

func (*Client) SegmentVideoBodyWithChan

func (client *Client) SegmentVideoBodyWithChan(request *SegmentVideoBodyRequest) (<-chan *SegmentVideoBodyResponse, <-chan error)

SegmentVideoBodyWithChan invokes the videoseg.SegmentVideoBody API asynchronously

type Data

type Data struct {
	JobId        string `json:"JobId" xml:"JobId"`
	Result       string `json:"Result" xml:"Result"`
	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
	Status       string `json:"Status" xml:"Status"`
	VideoURL     string `json:"VideoURL" xml:"VideoURL"`
	VideoUrl     string `json:"VideoUrl" xml:"VideoUrl"`
	ErrorCode    string `json:"ErrorCode" xml:"ErrorCode"`
}

Data is a nested struct in videoseg response

type GetAsyncJobResultRequest

type GetAsyncJobResultRequest struct {
	*requests.RpcRequest
	JobId string           `position:"Body" name:"JobId"`
	Async requests.Boolean `position:"Body" name:"Async"`
}

GetAsyncJobResultRequest is the request struct for api GetAsyncJobResult

func CreateGetAsyncJobResultRequest

func CreateGetAsyncJobResultRequest() (request *GetAsyncJobResultRequest)

CreateGetAsyncJobResultRequest creates a request to invoke GetAsyncJobResult API

type GetAsyncJobResultResponse

type GetAsyncJobResultResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetAsyncJobResultResponse is the response struct for api GetAsyncJobResult

func CreateGetAsyncJobResultResponse

func CreateGetAsyncJobResultResponse() (response *GetAsyncJobResultResponse)

CreateGetAsyncJobResultResponse creates a response to parse from GetAsyncJobResult response

type SegmentGreenScreenVideoRequest added in v1.61.892

type SegmentGreenScreenVideoRequest struct {
	*requests.RpcRequest
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoURL string           `position:"Body" name:"VideoURL"`
}

SegmentGreenScreenVideoRequest is the request struct for api SegmentGreenScreenVideo

func CreateSegmentGreenScreenVideoRequest added in v1.61.892

func CreateSegmentGreenScreenVideoRequest() (request *SegmentGreenScreenVideoRequest)

CreateSegmentGreenScreenVideoRequest creates a request to invoke SegmentGreenScreenVideo API

type SegmentGreenScreenVideoResponse added in v1.61.892

type SegmentGreenScreenVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

SegmentGreenScreenVideoResponse is the response struct for api SegmentGreenScreenVideo

func CreateSegmentGreenScreenVideoResponse added in v1.61.892

func CreateSegmentGreenScreenVideoResponse() (response *SegmentGreenScreenVideoResponse)

CreateSegmentGreenScreenVideoResponse creates a response to parse from SegmentGreenScreenVideo response

type SegmentHalfBodyRequest

type SegmentHalfBodyRequest struct {
	*requests.RpcRequest
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoUrl string           `position:"Body" name:"VideoUrl"`
}

SegmentHalfBodyRequest is the request struct for api SegmentHalfBody

func CreateSegmentHalfBodyRequest

func CreateSegmentHalfBodyRequest() (request *SegmentHalfBodyRequest)

CreateSegmentHalfBodyRequest creates a request to invoke SegmentHalfBody API

type SegmentHalfBodyResponse

type SegmentHalfBodyResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

SegmentHalfBodyResponse is the response struct for api SegmentHalfBody

func CreateSegmentHalfBodyResponse

func CreateSegmentHalfBodyResponse() (response *SegmentHalfBodyResponse)

CreateSegmentHalfBodyResponse creates a response to parse from SegmentHalfBody response

type SegmentVideoBodyRequest

type SegmentVideoBodyRequest struct {
	*requests.RpcRequest
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoUrl string           `position:"Body" name:"VideoUrl"`
}

SegmentVideoBodyRequest is the request struct for api SegmentVideoBody

func CreateSegmentVideoBodyRequest

func CreateSegmentVideoBodyRequest() (request *SegmentVideoBodyRequest)

CreateSegmentVideoBodyRequest creates a request to invoke SegmentVideoBody API

type SegmentVideoBodyResponse

type SegmentVideoBodyResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

SegmentVideoBodyResponse is the response struct for api SegmentVideoBody

func CreateSegmentVideoBodyResponse

func CreateSegmentVideoBodyResponse() (response *SegmentVideoBodyResponse)

CreateSegmentVideoBodyResponse creates a response to parse from SegmentVideoBody response

Jump to

Keyboard shortcuts

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