Documentation ¶
Index ¶
- type Client
- func (c *Client) CARExport(ctx context.Context) (*car.CarReader, func() error, error)
- func (c *Client) Close() error
- func (c *Client) Complete(ctx context.Context, worker string) error
- func (c *Client) CreateRetrievalTask(ctx context.Context, retrievalTask tasks.RetrievalTask) (tasks.Task, error)
- func (c *Client) CreateStorageTask(ctx context.Context, storageTask tasks.StorageTask) (tasks.Task, error)
- func (c *Client) DeleteTask(ctx context.Context, uuid string) error
- func (c *Client) Drain(ctx context.Context, worker string) error
- func (c *Client) GetTask(ctx context.Context, uuid string) (tasks.Task, error)
- func (c *Client) ListTasks(ctx context.Context) ([]tasks.Task, error)
- func (c *Client) PopTask(ctx context.Context, r tasks.PopTask) (tasks.Task, error)
- func (c *Client) ResetWorker(ctx context.Context, worker string) error
- func (c *Client) UpdateTask(ctx context.Context, uuid string, r tasks.UpdateTask) (tasks.Task, error)
- type ErrRequestFailed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the API client that performs all operations against the dealbot controller.
func NewFromEndpoint ¶
NewFromEndpoint returns an API client at the given endpoint
func (*Client) CreateRetrievalTask ¶
func (*Client) CreateStorageTask ¶
func (*Client) DeleteTask ¶ added in v0.0.21
func (*Client) PopTask ¶
PopTask requests a Task from the controller.
The PopTask request specifies the initial status to set the task to, the identity of client requesting and assigned the task, and any tagged tasks that are begin requested.
If the request specifies no tags, then this selects any task. If the request specifies tags, then this selects any task with a tag matching one of the tags in the request, or any untagged task.
func (*Client) ResetWorker ¶ added in v0.0.14
type ErrRequestFailed ¶
type ErrRequestFailed struct {
Code int
}
func (ErrRequestFailed) Error ¶
func (e ErrRequestFailed) Error() string
Click to show internal directories.
Click to hide internal directories.