Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(authorizer authorization.Authorizer, taskLister distributedtask.TasksLister) *Handler
func (*Handler) ListTasks ¶
func (h *Handler) ListTasks(ctx context.Context, principal *models.Principal) (models.DistributedTasks, error)
ListTasks converts internal distributedtask.Task structs into the REST API model. The raw task payload (opaque bytes internally) is unmarshaled into a generic JSON map — if we ever add sensitive fields to payloads, the distributedtask.Provider interface should grow a method to redact them before they reach this layer.
Click to show internal directories.
Click to hide internal directories.