Documentation ¶
Overview ¶
Package api defines all APIs supported by the VCR service of BCE.
Package api defines all APIs supported by the VCR service of BCE.
Package api defines all APIs supported by the VCR service of BCE.
Index ¶
Constants ¶
View Source
const ( URI_PREFIX = bce.URI_PREFIX + "v1" MEDIA_URI = "/media" TEXT_URI = "/text" IMAGE_URI = "/image" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckError ¶
type CheckResult ¶
type CheckResult struct { Type string `json:"type"` Items []ResultItem `json:"items"` }
type GetMediaResult ¶
type GetMediaResult struct { Source string `json:"source"` MediaId string `json:"mediaId"` Description string `json:"description"` Preset string `json:"preset"` Status string `json:"status"` Percent int `json:"percent"` Notification string `json:"notification"` CreateTime string `json:"createTime"` FinishTime string `json:"finishTime"` Label string `json:"label"` Results []CheckResult `json:"results"` Error CheckError `json:"error"` }
type PutImageSyncArgs ¶
type PutImageSyncResult ¶
type PutImageSyncResult struct { Source string `json:"source"` Label string `json:"label"` Preset string `json:"preset"` Status string `json:"status"` Results []CheckResult `json:"results"` }
func PutImageSync ¶
func PutImageSync(cli bce.Client, args *PutImageSyncArgs) (*PutImageSyncResult, error)
type PutMediaArgs ¶
type PutTextArgs ¶
type PutTextResult ¶
type PutTextResult struct { Text string `json:"text"` Preset string `json:"preset"` Results []CheckResult `json:"results"` }
func PutText ¶
func PutText(cli bce.Client, args *PutTextArgs) (*PutTextResult, error)
Click to show internal directories.
Click to hide internal directories.