Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() 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) 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 *UpdateTaskRequest) (*tasks.Task, error)
- func (c *Client) UpdateTask(ctx context.Context, uuid string, r *UpdateTaskRequest) (*tasks.Task, error)
- type ErrRequestFailed
- type UpdateTaskRequest
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) UpdateTask ¶
type ErrRequestFailed ¶
type ErrRequestFailed struct {
Code int
}
func (ErrRequestFailed) Error ¶
func (e ErrRequestFailed) Error() string
type UpdateTaskRequest ¶
Click to show internal directories.
Click to hide internal directories.