Documentation
¶
Index ¶
- type Client
- func (c *Client) AutoAssignMulti(params onfleet.TaskAutoAssignMultiParams) (onfleet.TaskAutoAssignMultiResponse, error)
- func (c *Client) BatchCreate(params onfleet.TaskBatchCreateParams) (onfleet.TaskBatchCreateResponse, error)
- func (c *Client) Clone(taskId string, params *onfleet.TaskCloneParams) (onfleet.Task, error)
- func (c *Client) Create(params onfleet.TaskParams) (onfleet.Task, error)
- func (c *Client) Delete(taskId string) error
- func (c *Client) ForceComplete(taskId string, params onfleet.TaskForceCompletionParams) error
- func (c *Client) Get(taskId string) (onfleet.Task, error)
- func (c *Client) GetByShortId(taskShortId string) (onfleet.Task, error)
- func (c *Client) ListTasks(teamId string)
- func (c *Client) ListWithMetadataQuery(metadata []onfleet.Metadata) ([]onfleet.Task, error)
- func (c *Client) Update(taskId string, params onfleet.TaskParams) (onfleet.Task, error)
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
}
func (*Client) AutoAssignMulti ¶
func (c *Client) AutoAssignMulti(params onfleet.TaskAutoAssignMultiParams) (onfleet.TaskAutoAssignMultiResponse, error)
Reference https://docs.onfleet.com/reference/automatically-assign-list-of-tasks
func (*Client) BatchCreate ¶
func (c *Client) BatchCreate(params onfleet.TaskBatchCreateParams) (onfleet.TaskBatchCreateResponse, error)
Reference https://docs.onfleet.com/reference/create-tasks-in-batch
func (*Client) ForceComplete ¶
func (*Client) Get ¶
Reference https://docs.onfleet.com/reference/get-single-task
func (*Client) GetByShortId ¶
Reference https://docs.onfleet.com/reference/get-single-task-by-shortid
func (*Client) ListWithMetadataQuery ¶
Reference https://docs.onfleet.com/reference/querying-by-metadata
Click to show internal directories.
Click to hide internal directories.