func (c Client) Tasks() ([]Task, error) {
	var tasks []Task
	err := c.get("/pools/default/tasks", &tasks)
	return tasks, errors.Wrap(err, "failed to get tasks")
}
Tasks returns the results of /pools/default/tasks
package client
import "github.com/pkg/errors"