Documentation ¶
Overview ¶
Package job provides the /jobs APIs
Index ¶
- Constants
- func Cancel(ctx context.Context, jobId string) (*trimmer.Job, error)
- func Get(ctx context.Context, jobId string, params *trimmer.JobParams) (*trimmer.Job, error)
- func ParseJobState(s string) trimmer.JobState
- func ParseJobType(s string) trimmer.JobType
- func Update(ctx context.Context, jobId string, params *trimmer.JobParams) (*trimmer.Job, error)
- type Client
- type Iter
Constants ¶
View Source
const ( JobStateUndefined trimmer.JobState = "" JobStateAll trimmer.JobState = "all" // used for listing states only JobStateActive trimmer.JobState = "active" // used for listing states only JobStateDone trimmer.JobState = "done" // used for listing states only JobStateCreated trimmer.JobState = "created" JobStateQueued trimmer.JobState = "queued" JobStateRunning trimmer.JobState = "running" JobStateComplete trimmer.JobState = "complete" JobStateFailed trimmer.JobState = "failed" JobStateAborted trimmer.JobState = "aborted" )
View Source
const ( JobTypeUndefined trimmer.JobType = "" JobTypeUpload trimmer.JobType = "upload" // client-side upload JobTypeCopy trimmer.JobType = "copy" // copy media bewteen volumes JobTypeScan trimmer.JobType = "scan" // volume scan JobTypeWipe trimmer.JobType = "wipe" // volume wipe JobTypeWatch trimmer.JobType = "watch" // volume watch JobTypeUnwatch trimmer.JobType = "unwatch" // volume unwatch JobTypeAnalyze trimmer.JobType = "analyze" // transcoder analyze media JobTypeTranscode trimmer.JobType = "transcode" // transcode media JobTypeRender trimmer.JobType = "render" // render editlist into media JobTypeEMail trimmer.JobType = "email" // send email(s) JobTypeInvoice trimmer.JobType = "invoice" // create invoice PDF JobTypeReceipt trimmer.JobType = "receipt" // create receipt PDF JobTypePublish trimmer.JobType = "publish" // publishing job )
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.