Documentation
¶
Index ¶
- func IsCancellable(status *client.JobStatus) bool
- type CreateJobInput
- type ListItem
- type ListJobsInput
- type Repo
- func (r *Repo) CancelJob(ctx context.Context, serviceID, jobID string) (*clientjob.Job, error)
- func (r *Repo) CreateJob(ctx context.Context, input CreateJobInput) (*clientjob.Job, error)
- func (r *Repo) GetJob(ctx context.Context, serviceID, jobID string) (*clientjob.Job, error)
- func (r *Repo) ListJobs(ctx context.Context, input ListJobsInput, cur client.Cursor) (client.Cursor, []*clientjob.Job, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCancellable ¶
IsCancellable returns true if the job is cancellable. JobStatus only contains terminal values, so a nil value indicates that the job is cancellable.
Types ¶
type CreateJobInput ¶
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
func NewListItem ¶
func (ListItem) Description ¶
func (ListItem) FilterValue ¶
type ListJobsInput ¶
Click to show internal directories.
Click to hide internal directories.