Documentation ¶
Index ¶
- Constants
- type Client
- func (cli *Client) CreateDigitalWmImagePreset(digitalWmId string, description string, bucket string, key string) (*api.CreateDigitalWmPresetResponse, error)
- func (cli *Client) CreateDigitalWmPreset(preset *api.DigitalWmPreset) (*api.CreateDigitalWmPresetResponse, error)
- func (cli *Client) CreateDigitalWmTextPreset(digitalWmId string, description string, textContent string) (*api.CreateDigitalWmPresetResponse, error)
- func (cli *Client) CreateDwmDetectJob(dwmdetect *api.Dwmdetect) (*api.CreateJobResponse, error)
- func (cli *Client) CreateDwmSecretkeyPreset(preset *api.DwmSecretkeyPreset) (*api.CreateDwmSecretkeyPresetResponse, error)
- func (cli *Client) CreateImagedwmJob(digitalWm *api.Imagedwm) (*api.CreateJobResponse, error)
- func (cli *Client) CreateJob(pipelineName, sourceKey, targetKey, presetName string) (*api.CreateJobResponse, error)
- func (cli *Client) CreateJobCustomize(args *api.CreateJobArgs) (*api.CreateJobResponse, error)
- func (cli *Client) CreateNotification(name, endpoint string) error
- func (cli *Client) CreatePipeline(pipelineName, sourceBucket, targetBucket string, capacity int) error
- func (cli *Client) CreatePreset(presetName, description, container string) error
- func (cli *Client) CreatePrestCustomize(preset *api.Preset) error
- func (cli *Client) CreateThumbnailJob(pipelineName, sourceKey string, ops ...Option) (*api.CreateJobResponse, error)
- func (cli *Client) CreateWaterMark(watermarks *api.CreateWaterMarkArgs) (*api.CreateWaterMarkResponse, error)
- func (cli *Client) DeleteDigitalWmPreset(digitalWmId string) error
- func (cli *Client) DeleteDwmSecretkeyPreset(digitalWmSecretKeyId string) error
- func (cli *Client) DeleteNotification(name string) error
- func (cli *Client) DeletePipeline(pipelineName string) error
- func (cli *Client) DeleteWaterMark(watermarkId string) error
- func (cli *Client) GetDigitalWmPreset(digitalWmId string) (*api.GetDigitalWmPresetResponse, error)
- func (cli *Client) GetDwmSecretkeyPreset(digitalWmSecretKeyId string) (*api.GetDwmSecretkeyPresetResponse, error)
- func (cli *Client) GetDwmdetectResult(jobId string) (*api.GetDwmdetectResponse, error)
- func (cli *Client) GetImagedwmResult(jobId string) (*api.GetImagedwmResponse, error)
- func (cli *Client) GetMediaInfoOfFile(bucket, key string) (*api.GetMediaInfoOfFileResponse, error)
- func (cli *Client) GetNotification(name string) (*api.CreateNotificationArgs, error)
- func (cli *Client) GetPipeline(pipelineName string) (*api.PipelineStatus, error)
- func (cli *Client) GetPipelineUpdate(pipelineName string) (*api.UpdatePipelineArgs, error)
- func (cli *Client) GetPreset(presetName string) (*api.Preset, error)
- func (cli *Client) GetThumbanilJob(jobId string) (*api.GetThumbnailJobResponse, error)
- func (cli *Client) GetTranscodingJob(jobId string) (*api.GetTranscodingJobResponse, error)
- func (cli *Client) GetWaterMark(watermarkId string) (*api.GetWaterMarkResponse, error)
- func (cli *Client) ListDigitalWmPreset() (*api.ListDigitalWmPresetResponse, error)
- func (cli *Client) ListDwmSecretkeyPresets() (*api.ListDwmPresetSecretkeyResponse, error)
- func (cli *Client) ListNotification() (*api.ListNotificationsResponse, error)
- func (cli *Client) ListPipelines() (*api.ListPipelinesResponse, error)
- func (cli *Client) ListPresets() (*api.ListPresetsResponse, error)
- func (cli *Client) ListThumbnailJobs(pipelineName string) (*api.ListThumbnailJobsResponse, error)
- func (cli *Client) ListTranscodingJobs(pipelineName string) (*api.ListTranscodingJobsResponse, error)
- func (cli *Client) ListWaterMark() (*api.ListWaterMarkResponse, error)
- func (cli *Client) UpdatePipeline(pipelineName string, updatePipelineArgs *api.UpdatePipelineArgs) error
- func (cli *Client) UpdatePreset(preset *api.Preset) error
- type Option
Constants ¶
const DEFAULT_SERVICE_DOMAIN = "media.bj.baidubce.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
mcp(media) client extends BceClient
func NewClient ¶
NewClient make MCP(media) service client with defualt configuration endPoint value can chose bj and sz or gz defualt bj
func (*Client) CreateDigitalWmImagePreset ¶ added in v0.9.167
func (cli *Client) CreateDigitalWmImagePreset(digitalWmId string, description string, bucket string, key string, ) (*api.CreateDigitalWmPresetResponse, error)
create DigitalWaterMarke image Preset
func (*Client) CreateDigitalWmPreset ¶ added in v0.9.167
func (cli *Client) CreateDigitalWmPreset(preset *api.DigitalWmPreset) (*api.CreateDigitalWmPresetResponse, error)
create DigitalWaterMarke Preset with customize params
func (*Client) CreateDigitalWmTextPreset ¶ added in v0.9.167
func (cli *Client) CreateDigitalWmTextPreset(digitalWmId string, description string, textContent string) (*api.CreateDigitalWmPresetResponse, error)
create DigitalWaterMarke text Preset
func (*Client) CreateDwmDetectJob ¶ added in v0.9.167
create digital detect job
func (*Client) CreateDwmSecretkeyPreset ¶ added in v0.9.167
func (cli *Client) CreateDwmSecretkeyPreset(preset *api.DwmSecretkeyPreset) (*api.CreateDwmSecretkeyPresetResponse, error)
create digitalwatermark secretkey preset
func (*Client) CreateImagedwmJob ¶ added in v0.9.167
create image digitalwatermark job or image digitalwatermark detect job
func (*Client) CreateJob ¶
func (cli *Client) CreateJob(pipelineName, sourceKey, targetKey, presetName string) (*api.CreateJobResponse, error)
create transcoding job with pipelineName, sourceKey, targetKey, presetName
func (*Client) CreateJobCustomize ¶
func (cli *Client) CreateJobCustomize(args *api.CreateJobArgs) (*api.CreateJobResponse, error)
create trandcoding job with customize params
func (*Client) CreateNotification ¶
create notification with name and endpoint
func (*Client) CreatePipeline ¶
func (cli *Client) CreatePipeline(pipelineName, sourceBucket, targetBucket string, capacity int) error
create a simple pipeline with pipelieName,soureBucket,targetBucket,capacity
func (*Client) CreatePreset ¶
create preset at the same time perform container format conversion
func (*Client) CreatePrestCustomize ¶
create preset with user-defined configuration
func (*Client) CreateThumbnailJob ¶
func (cli *Client) CreateThumbnailJob(pipelineName, sourceKey string, ops ...Option) (*api.CreateJobResponse, error)
create thumbnail job. you can create a thumbnail job with pipelineName and sourceKey and ThumbnailCapture and ThumbnailTarget or other args
func (*Client) CreateWaterMark ¶
func (cli *Client) CreateWaterMark(watermarks *api.CreateWaterMarkArgs) (*api.CreateWaterMarkResponse, error)
create watermark job
func (*Client) DeleteDigitalWmPreset ¶ added in v0.9.167
delete DigitalWmPreset by digitalWmId
func (*Client) DeleteDwmSecretkeyPreset ¶ added in v0.9.167
delete digitalwatermark secretkey presets
func (*Client) DeleteNotification ¶
delete notification by name
func (*Client) DeletePipeline ¶
delete pipeline by pipelineName
func (*Client) DeleteWaterMark ¶
delete watermark by watermarkId
func (*Client) GetDigitalWmPreset ¶ added in v0.9.167
func (cli *Client) GetDigitalWmPreset(digitalWmId string) (*api.GetDigitalWmPresetResponse, error)
get DigitalWmPreset by digitalWmId
func (*Client) GetDwmSecretkeyPreset ¶ added in v0.9.167
func (cli *Client) GetDwmSecretkeyPreset(digitalWmSecretKeyId string) (*api.GetDwmSecretkeyPresetResponse, error)
get digitalwatermark preset
func (*Client) GetDwmdetectResult ¶ added in v0.9.167
func (cli *Client) GetDwmdetectResult(jobId string) (*api.GetDwmdetectResponse, error)
get digital detect job result
func (*Client) GetImagedwmResult ¶ added in v0.9.167
func (cli *Client) GetImagedwmResult(jobId string) (*api.GetImagedwmResponse, error)
get digitalwatermark job result or image digitalwatermark detect job result
func (*Client) GetMediaInfoOfFile ¶
func (cli *Client) GetMediaInfoOfFile(bucket, key string) (*api.GetMediaInfoOfFileResponse, error)
get media information with bucket and key
func (*Client) GetNotification ¶
func (cli *Client) GetNotification(name string) (*api.CreateNotificationArgs, error)
get notification by notification`name
func (*Client) GetPipeline ¶
func (cli *Client) GetPipeline(pipelineName string) (*api.PipelineStatus, error)
query pipeline by piplineName
func (*Client) GetPipelineUpdate ¶
func (cli *Client) GetPipelineUpdate(pipelineName string) (*api.UpdatePipelineArgs, error)
func (*Client) GetThumbanilJob ¶
func (cli *Client) GetThumbanilJob(jobId string) (*api.GetThumbnailJobResponse, error)
query thumbanil job by jobId
func (*Client) GetTranscodingJob ¶
func (cli *Client) GetTranscodingJob(jobId string) (*api.GetTranscodingJobResponse, error)
get transcoding job by jobId
func (*Client) GetWaterMark ¶
func (cli *Client) GetWaterMark(watermarkId string) (*api.GetWaterMarkResponse, error)
get watermark by watermarkId
func (*Client) ListDigitalWmPreset ¶ added in v0.9.167
func (cli *Client) ListDigitalWmPreset() (*api.ListDigitalWmPresetResponse, error)
list all DigitalWmPreset
func (*Client) ListDwmSecretkeyPresets ¶ added in v0.9.167
func (cli *Client) ListDwmSecretkeyPresets() (*api.ListDwmPresetSecretkeyResponse, error)
list digitalwatermark secretkey presets
func (*Client) ListNotification ¶
func (cli *Client) ListNotification() (*api.ListNotificationsResponse, error)
list all of user`s notification
func (*Client) ListPipelines ¶
func (cli *Client) ListPipelines() (*api.ListPipelinesResponse, error)
list all pipelines for user
func (*Client) ListPresets ¶
func (cli *Client) ListPresets() (*api.ListPresetsResponse, error)
list all presets
func (*Client) ListThumbnailJobs ¶
func (cli *Client) ListThumbnailJobs(pipelineName string) (*api.ListThumbnailJobsResponse, error)
get thumbanil job by pipelineName
func (*Client) ListTranscodingJobs ¶
func (cli *Client) ListTranscodingJobs(pipelineName string) (*api.ListTranscodingJobsResponse, error)
list all jobs with piplineName
func (*Client) ListWaterMark ¶
func (cli *Client) ListWaterMark() (*api.ListWaterMarkResponse, error)
list user`s watermark by watermarkId
func (*Client) UpdatePipeline ¶
func (cli *Client) UpdatePipeline(pipelineName string, updatePipelineArgs *api.UpdatePipelineArgs) error
update pipeline with UpdatePipelineArgs
type Option ¶
type Option func(thumbnailOptional *api.ThumbnailOptional)
this option implements create thumbnail job function overloading
func CaptureOp ¶
func CaptureOp(capture *api.ThumbnailCapture) Option
func DelogoAreaOp ¶
func PresetNameOp ¶
func SourceOp ¶
func SourceOp(source *api.ThumbnailSource) Option
func TargetOp ¶
func TargetOp(target *api.ThumbnailTarget) Option