api

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 14 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) LayersHandler

func (a *API) LayersHandler(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"`
	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