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
}
Handler serves the read-only task run API.
func NewHandler ¶
NewHandler builds an API handler bound to a persistence store.
func (*Handler) RegisterRoutes ¶
RegisterRoutes registers the task run API routes on the provided mux.
type Store ¶
type Store interface {
ListTaskRuns(ctx context.Context) ([]persistence.TaskRunSummary, error)
GetTaskRunEvents(ctx context.Context, runID string) ([]persistence.TaskRunEvent, error)
}
Store provides the persistence-backed projections required by the API.
Click to show internal directories.
Click to hide internal directories.