api

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Client    client.Client
	Datastore datastore.Client
	// contains filtered or unexported fields
}

func New

func New(c *config.Config) *API

func (*API) DownloadLogsHandler added in v0.4.0

func (a *API) DownloadLogsHandler(c echo.Context) error

func (*API) GetAttemptsHandler added in v0.4.0

func (a *API) GetAttemptsHandler(c echo.Context) error

func (*API) GetLogsHandler added in v0.4.0

func (a *API) GetLogsHandler(c echo.Context) error

logs/${namespace}/${layer}/${runId}/${attemptId}

func (*API) GetPlanHandler added in v0.15.0

func (a *API) GetPlanHandler(c echo.Context) error

plans/${namespace}/${layer}/${run}/${attempt}?format=<format>

func (*API) GetStateGraphHandler added in v0.15.0

func (a *API) GetStateGraphHandler(c echo.Context) error

stategraph/${namespace}/${layer}

func (*API) LayerHandler added in v0.15.0

func (a *API) LayerHandler(c echo.Context) error

func (*API) LayersHandler

func (a *API) LayersHandler(c echo.Context) error

func (*API) PullRequestsHandler added in v0.15.0

func (a *API) PullRequestsHandler(c echo.Context) error

func (*API) RepositoriesHandler

func (a *API) RepositoriesHandler(c echo.Context) error

func (*API) SyncLayerHandler added in v0.5.0

func (a *API) SyncLayerHandler(c echo.Context) error

type GetAttemptsResponse added in v0.4.0

type GetAttemptsResponse struct {
	Count int `json:"count"`
}

type GetLogsResponse added in v0.4.0

type GetLogsResponse struct {
	Results []string `json:"results"`
}

type Run added in v0.4.0

type Run struct {
	Name    string `json:"id"`
	Commit  string `json:"commit"`
	Author  string `json:"author"`
	Message string `json:"message"`
	Date    string `json:"date"`
	Action  string `json:"action"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL