Versions in this module Expand all Collapse all v0 v0.3.0 Jan 25, 2023 v0.2.0 Jan 25, 2023 v0.1.0 Jan 25, 2023 Changes in this version + var EndpointMap map[string]string + var EndpointType = "regional" + func GetEndpointMap() map[string]string + func GetEndpointType() string + func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) + func SetEndpointDataToClient(client *Client) + type ChangeImageSizeRequest struct + Height requests.Integer + Url string + Width requests.Integer + func CreateChangeImageSizeRequest() (request *ChangeImageSizeRequest) + type ChangeImageSizeResponse struct + Code string + Data Data + Message string + RequestId string + func CreateChangeImageSizeResponse() (response *ChangeImageSizeResponse) + type Client struct + func NewClient() (client *Client, err error) + func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) + func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) + func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) + func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) + func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) + func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error) + func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) + func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) + func (client *Client) ChangeImageSize(request *ChangeImageSizeRequest) (response *ChangeImageSizeResponse, err error) + func (client *Client) ChangeImageSizeWithCallback(request *ChangeImageSizeRequest, ...) <-chan int + func (client *Client) ChangeImageSizeWithChan(request *ChangeImageSizeRequest) (<-chan *ChangeImageSizeResponse, <-chan error) + func (client *Client) CreateSegmentBodyJob(request *CreateSegmentBodyJobRequest) (response *CreateSegmentBodyJobResponse, err error) + func (client *Client) CreateSegmentBodyJobWithCallback(request *CreateSegmentBodyJobRequest, ...) <-chan int + func (client *Client) CreateSegmentBodyJobWithChan(request *CreateSegmentBodyJobRequest) (<-chan *CreateSegmentBodyJobResponse, <-chan error) + func (client *Client) DetectImageElements(request *DetectImageElementsRequest) (response *DetectImageElementsResponse, err error) + func (client *Client) DetectImageElementsWithCallback(request *DetectImageElementsRequest, ...) <-chan int + func (client *Client) DetectImageElementsWithChan(request *DetectImageElementsRequest) (<-chan *DetectImageElementsResponse, <-chan error) + func (client *Client) EraseLogoInVideo(request *EraseLogoInVideoRequest) (response *EraseLogoInVideoResponse, err error) + func (client *Client) EraseLogoInVideoWithCallback(request *EraseLogoInVideoRequest, ...) <-chan int + func (client *Client) EraseLogoInVideoWithChan(request *EraseLogoInVideoRequest) (<-chan *EraseLogoInVideoResponse, <-chan error) + func (client *Client) ExtendImageStyle(request *ExtendImageStyleRequest) (response *ExtendImageStyleResponse, err error) + func (client *Client) ExtendImageStyleWithCallback(request *ExtendImageStyleRequest, ...) <-chan int + func (client *Client) ExtendImageStyleWithChan(request *ExtendImageStyleRequest) (<-chan *ExtendImageStyleResponse, <-chan error) + func (client *Client) GetAsyncJobResult(request *GetAsyncJobResultRequest) (response *GetAsyncJobResultResponse, err error) + func (client *Client) GetAsyncJobResultWithCallback(request *GetAsyncJobResultRequest, ...) <-chan int + func (client *Client) GetAsyncJobResultWithChan(request *GetAsyncJobResultRequest) (<-chan *GetAsyncJobResultResponse, <-chan error) + func (client *Client) GetAsyncResult(request *GetAsyncResultRequest) (response *GetAsyncResultResponse, err error) + func (client *Client) GetAsyncResultWithCallback(request *GetAsyncResultRequest, ...) <-chan int + func (client *Client) GetAsyncResultWithChan(request *GetAsyncResultRequest) (<-chan *GetAsyncResultResponse, <-chan error) + func (client *Client) GetJobResult(request *GetJobResultRequest) (response *GetJobResultResponse, err error) + func (client *Client) GetJobResultWithCallback(request *GetJobResultRequest, ...) <-chan int + func (client *Client) GetJobResultWithChan(request *GetJobResultRequest) (<-chan *GetJobResultResponse, <-chan error) + func (client *Client) GetJobStatus(request *GetJobStatusRequest) (response *GetJobStatusResponse, err error) + func (client *Client) GetJobStatusWithCallback(request *GetJobStatusRequest, ...) <-chan int + func (client *Client) GetJobStatusWithChan(request *GetJobStatusRequest) (<-chan *GetJobStatusResponse, <-chan error) + func (client *Client) GetRenderResult(request *GetRenderResultRequest) (response *GetRenderResultResponse, err error) + func (client *Client) GetRenderResultWithCallback(request *GetRenderResultRequest, ...) <-chan int + func (client *Client) GetRenderResultWithChan(request *GetRenderResultRequest) (<-chan *GetRenderResultResponse, <-chan error) + func (client *Client) GetUserBucketConfig(request *GetUserBucketConfigRequest) (response *GetUserBucketConfigResponse, err error) + func (client *Client) GetUserBucketConfigWithCallback(request *GetUserBucketConfigRequest, ...) <-chan int + func (client *Client) GetUserBucketConfigWithChan(request *GetUserBucketConfigRequest) (<-chan *GetUserBucketConfigResponse, <-chan error) + func (client *Client) HighlightGameVideo(request *HighlightGameVideoRequest) (response *HighlightGameVideoResponse, err error) + func (client *Client) HighlightGameVideoWithCallback(request *HighlightGameVideoRequest, ...) <-chan int + func (client *Client) HighlightGameVideoWithChan(request *HighlightGameVideoRequest) (<-chan *HighlightGameVideoResponse, <-chan error) + func (client *Client) ListPackageDesignModelTypes(request *ListPackageDesignModelTypesRequest) (response *ListPackageDesignModelTypesResponse, err error) + func (client *Client) ListPackageDesignModelTypesWithCallback(request *ListPackageDesignModelTypesRequest, ...) <-chan int + func (client *Client) ListPackageDesignModelTypesWithChan(request *ListPackageDesignModelTypesRequest) (<-chan *ListPackageDesignModelTypesResponse, <-chan error) + func (client *Client) ListUserBuckets(request *ListUserBucketsRequest) (response *ListUserBucketsResponse, err error) + func (client *Client) ListUserBucketsWithCallback(request *ListUserBucketsRequest, ...) <-chan int + func (client *Client) ListUserBucketsWithChan(request *ListUserBucketsRequest) (<-chan *ListUserBucketsResponse, <-chan error) + func (client *Client) MakeSuperResolutionImage(request *MakeSuperResolutionImageRequest) (response *MakeSuperResolutionImageResponse, err error) + func (client *Client) MakeSuperResolutionImageWithCallback(request *MakeSuperResolutionImageRequest, ...) <-chan int + func (client *Client) MakeSuperResolutionImageWithChan(request *MakeSuperResolutionImageRequest) (<-chan *MakeSuperResolutionImageResponse, <-chan error) + func (client *Client) PreviewModelForPackageDesign(request *PreviewModelForPackageDesignRequest) (response *PreviewModelForPackageDesignResponse, err error) + func (client *Client) PreviewModelForPackageDesignWithCallback(request *PreviewModelForPackageDesignRequest, ...) <-chan int + func (client *Client) PreviewModelForPackageDesignWithChan(request *PreviewModelForPackageDesignRequest) (<-chan *PreviewModelForPackageDesignResponse, <-chan error) + func (client *Client) RecognizeImageColor(request *RecognizeImageColorRequest) (response *RecognizeImageColorResponse, err error) + func (client *Client) RecognizeImageColorWithCallback(request *RecognizeImageColorRequest, ...) <-chan int + func (client *Client) RecognizeImageColorWithChan(request *RecognizeImageColorRequest) (<-chan *RecognizeImageColorResponse, <-chan error) + func (client *Client) RecognizeImageStyle(request *RecognizeImageStyleRequest) (response *RecognizeImageStyleResponse, err error) + func (client *Client) RecognizeImageStyleWithCallback(request *RecognizeImageStyleRequest, ...) <-chan int + func (client *Client) RecognizeImageStyleWithChan(request *RecognizeImageStyleRequest) (<-chan *RecognizeImageStyleResponse, <-chan error) + func (client *Client) RecolorImage(request *RecolorImageRequest) (response *RecolorImageResponse, err error) + func (client *Client) RecolorImageWithCallback(request *RecolorImageRequest, ...) <-chan int + func (client *Client) RecolorImageWithChan(request *RecolorImageRequest) (<-chan *RecolorImageResponse, <-chan error) + func (client *Client) RenderImageForPackageDesign(request *RenderImageForPackageDesignRequest) (response *RenderImageForPackageDesignResponse, err error) + func (client *Client) RenderImageForPackageDesignWithCallback(request *RenderImageForPackageDesignRequest, ...) <-chan int + func (client *Client) RenderImageForPackageDesignWithChan(request *RenderImageForPackageDesignRequest) (<-chan *RenderImageForPackageDesignResponse, <-chan error) + func (client *Client) SegmentBody(request *SegmentBodyRequest) (response *SegmentBodyResponse, err error) + func (client *Client) SegmentBodyWithCallback(request *SegmentBodyRequest, ...) <-chan int + func (client *Client) SegmentBodyWithChan(request *SegmentBodyRequest) (<-chan *SegmentBodyResponse, <-chan error) + func (client *Client) SegmentImage(request *SegmentImageRequest) (response *SegmentImageResponse, err error) + func (client *Client) SegmentImageWithCallback(request *SegmentImageRequest, ...) <-chan int + func (client *Client) SegmentImageWithChan(request *SegmentImageRequest) (<-chan *SegmentImageResponse, <-chan error) + func (client *Client) UpdateUserBucketConfig(request *UpdateUserBucketConfigRequest) (response *UpdateUserBucketConfigResponse, err error) + func (client *Client) UpdateUserBucketConfigWithCallback(request *UpdateUserBucketConfigRequest, ...) <-chan int + func (client *Client) UpdateUserBucketConfigWithChan(request *UpdateUserBucketConfigRequest) (<-chan *UpdateUserBucketConfigResponse, <-chan error) + type ColorTemplate struct + Color string + Label string + Percentage float64 + type ColorTemplateList struct + ColorTemplate []ColorTemplate + type CreateSegmentBodyJobDataList struct + DataId string + ImageUrl string + type CreateSegmentBodyJobRequest struct + Async requests.Boolean + DataList *[]CreateSegmentBodyJobDataList + JobId string + TimeToLive requests.Integer + func CreateCreateSegmentBodyJobRequest() (request *CreateSegmentBodyJobRequest) + type CreateSegmentBodyJobResponse struct + Code string + Data Data + Message string + RequestId string + func CreateCreateSegmentBodyJobResponse() (response *CreateSegmentBodyJobResponse) + type Data struct + BatchSize int + ColorTemplateList []ColorTemplate + Completed bool + Elements []Element + ErrorCode string + ErrorMessage string + GameList []GameListItem + HighlightList []HighlightListItem + ImageList []string + ImageUrl string + JobId string + MajorUrl string + ModelTypeList []ModelType + PreviewUrl string + Progress int + Result string + ResultList []Result + Status string + Styles []string + TotalUsedTime int64 + Url string + VideoUrl string + type DataInGetAsyncResult struct + BatchSize string + Code string + Completed bool + Finish bool + Message string + Progress float64 + Result map[string]interface{} + Status string + TotalUsedTime int64 + type DataInGetJobResult struct + BatchSize string + Completed bool + Finish bool + Message string + Progress float64 + ResultList []map[string]interface{} + Status string + TotalUsedTime int64 + type DataInGetJobStatus struct + BatchSize string + Completed bool + Finish bool + Message string + Progress float64 + Status string + TimeToLive int + TotalUsedTime int64 + type DataInGetRenderResult struct + Code string + Completed bool + Message string + Progress float64 + ResultData ResultData + type DataInGetUserBucketConfig struct + DataItem []DataItem + type DataInListUserBuckets struct + Data []string + type DataInUpdateUserBucketConfig struct + DataItem []DataItem + type DataItem struct + Bucket string + Region string + RegionName string + type DetectImageElementsRequest struct + Url string + func CreateDetectImageElementsRequest() (request *DetectImageElementsRequest) + type DetectImageElementsResponse struct + Code string + Data Data + Message string + RequestId string + func CreateDetectImageElementsResponse() (response *DetectImageElementsResponse) + type Element struct + Height int + Score float64 + SideName string + Type string + Width int + X int + Y int + type ElementsInDetectImageElements struct + Element []Element + type ElementsInListPackageDesignModelTypes struct + Element []Element + type EraseLogoInVideoBoxes struct + H string + W string + X string + Y string + type EraseLogoInVideoRequest struct + Async requests.Boolean + Boxes *[]EraseLogoInVideoBoxes + JobId string + VideoUrl string + func CreateEraseLogoInVideoRequest() (request *EraseLogoInVideoRequest) + type EraseLogoInVideoResponse struct + Code string + Data Data + Message string + RequestId string + func CreateEraseLogoInVideoResponse() (response *EraseLogoInVideoResponse) + type ExtendImageStyleRequest struct + MajorUrl string + StyleUrl string + func CreateExtendImageStyleRequest() (request *ExtendImageStyleRequest) + type ExtendImageStyleResponse struct + Code string + Data Data + Message string + RequestId string + func CreateExtendImageStyleResponse() (response *ExtendImageStyleResponse) + type GameList struct + GameListItem []GameListItem + type GameListItem struct + End float64 + GameInfo map[string]interface{} + Id string + Start float64 + type GetAsyncJobResultRequest struct + Async requests.Boolean + JobId string + func CreateGetAsyncJobResultRequest() (request *GetAsyncJobResultRequest) + type GetAsyncJobResultResponse struct + Data Data + RequestId string + func CreateGetAsyncJobResultResponse() (response *GetAsyncJobResultResponse) + type GetAsyncResultRequest struct + JobId string + func CreateGetAsyncResultRequest() (request *GetAsyncResultRequest) + type GetAsyncResultResponse struct + Code string + Data DataInGetAsyncResult + Message string + RequestId string + func CreateGetAsyncResultResponse() (response *GetAsyncResultResponse) + type GetJobResultRequest struct + JobId string + func CreateGetJobResultRequest() (request *GetJobResultRequest) + type GetJobResultResponse struct + Code string + Data DataInGetJobResult + Message string + RequestId string + func CreateGetJobResultResponse() (response *GetJobResultResponse) + type GetJobStatusRequest struct + JobId string + func CreateGetJobStatusRequest() (request *GetJobStatusRequest) + type GetJobStatusResponse struct + Code string + Data DataInGetJobStatus + Message string + RequestId string + func CreateGetJobStatusResponse() (response *GetJobStatusResponse) + type GetRenderResultRequest struct + JobId string + func CreateGetRenderResultRequest() (request *GetRenderResultRequest) + type GetRenderResultResponse struct + Code string + Data DataInGetRenderResult + Message string + RequestId string + func CreateGetRenderResultResponse() (response *GetRenderResultResponse) + type GetUserBucketConfigRequest struct + func CreateGetUserBucketConfigRequest() (request *GetUserBucketConfigRequest) + type GetUserBucketConfigResponse struct + Code string + Data []DataItem + Message string + RequestId string + func CreateGetUserBucketConfigResponse() (response *GetUserBucketConfigResponse) + type HighlightGameVideoRequest struct + Async requests.Boolean + VideoUrl string + func CreateHighlightGameVideoRequest() (request *HighlightGameVideoRequest) + type HighlightGameVideoResponse struct + Data Data + RequestId string + func CreateHighlightGameVideoResponse() (response *HighlightGameVideoResponse) + type HighlightList struct + HighlightListItem []HighlightListItem + type HighlightListItem struct + End float64 + Start float64 + type ImageList struct + ImageList []string + type ListPackageDesignModelTypesRequest struct + func CreateListPackageDesignModelTypesRequest() (request *ListPackageDesignModelTypesRequest) + type ListPackageDesignModelTypesResponse struct + Code string + Data Data + Message string + RequestId string + func CreateListPackageDesignModelTypesResponse() (response *ListPackageDesignModelTypesResponse) + type ListUserBucketsData struct + RegionId string + type ListUserBucketsRequest struct + Data *[]ListUserBucketsData + func CreateListUserBucketsRequest() (request *ListUserBucketsRequest) + type ListUserBucketsResponse struct + Code string + Data []string + Message string + RequestId string + func CreateListUserBucketsResponse() (response *ListUserBucketsResponse) + type MakeSuperResolutionImageRequest struct + Url string + func CreateMakeSuperResolutionImageRequest() (request *MakeSuperResolutionImageRequest) + type MakeSuperResolutionImageResponse struct + Code string + Data Data + Message string + RequestId string + func CreateMakeSuperResolutionImageResponse() (response *MakeSuperResolutionImageResponse) + type ModelType struct + Elements []Element + ModelType string + type ModelTypeList struct + ModelType []ModelType + type PreviewModelForPackageDesignElementList struct + ImageUrl string + SideName string + type PreviewModelForPackageDesignRequest struct + Category string + DataId string + ElementList *[]PreviewModelForPackageDesignElementList + MaterialName string + MaterialType string + ModelType string + func CreatePreviewModelForPackageDesignRequest() (request *PreviewModelForPackageDesignRequest) + type PreviewModelForPackageDesignResponse struct + Code string + Data Data + Message string + RequestId string + func CreatePreviewModelForPackageDesignResponse() (response *PreviewModelForPackageDesignResponse) + type RecognizeImageColorRequest struct + ColorCount string + Url string + func CreateRecognizeImageColorRequest() (request *RecognizeImageColorRequest) + type RecognizeImageColorResponse struct + Code string + Data Data + Message string + RequestId string + func CreateRecognizeImageColorResponse() (response *RecognizeImageColorResponse) + type RecognizeImageStyleRequest struct + Url string + func CreateRecognizeImageStyleRequest() (request *RecognizeImageStyleRequest) + type RecognizeImageStyleResponse struct + Code string + Data Data + Message string + RequestId string + func CreateRecognizeImageStyleResponse() (response *RecognizeImageStyleResponse) + type RecolorImageColorTemplate struct + Color string + type RecolorImageRequest struct + ColorCount requests.Integer + ColorTemplate *[]RecolorImageColorTemplate + Mode string + RefUrl string + Url string + func CreateRecolorImageRequest() (request *RecolorImageRequest) + type RecolorImageResponse struct + Code string + Data Data + Message string + RequestId string + func CreateRecolorImageResponse() (response *RecolorImageResponse) + type RenderImageForPackageDesignElementList struct + ImageUrl string + SideName string + type RenderImageForPackageDesignRequest struct + Category string + DisplayType string + ElementList *[]RenderImageForPackageDesignElementList + JobId string + MaterialName string + MaterialType string + ModelType string + TargetHeight requests.Integer + TargetWidth requests.Integer + func CreateRenderImageForPackageDesignRequest() (request *RenderImageForPackageDesignRequest) + type RenderImageForPackageDesignResponse struct + Code string + Data Data + Message string + RequestId string + func CreateRenderImageForPackageDesignResponse() (response *RenderImageForPackageDesignResponse) + type Result struct + Code string + DataId string + Message string + ResultData ResultData + Success bool + type ResultData struct + ImageUrl string + type ResultListInCreateSegmentBodyJob struct + Result []Result + type ResultListInGetJobResult struct + Result []map[string]interface{} + type SegmentBodyRequest struct + ImageUrl string + func CreateSegmentBodyRequest() (request *SegmentBodyRequest) + type SegmentBodyResponse struct + Code string + Data Data + Message string + RequestId string + func CreateSegmentBodyResponse() (response *SegmentBodyResponse) + type SegmentImageRequest struct + Url string + func CreateSegmentImageRequest() (request *SegmentImageRequest) + type SegmentImageResponse struct + Code string + Data Data + Message string + RequestId string + func CreateSegmentImageResponse() (response *SegmentImageResponse) + type Styles struct + Style []string + type UpdateUserBucketConfigData struct + Bucket string + Region string + type UpdateUserBucketConfigRequest struct + Data *[]UpdateUserBucketConfigData + func CreateUpdateUserBucketConfigRequest() (request *UpdateUserBucketConfigRequest) + type UpdateUserBucketConfigResponse struct + Code string + Data []DataItem + Message string + RequestId string + func CreateUpdateUserBucketConfigResponse() (response *UpdateUserBucketConfigResponse)