Documentation ¶
Index ¶
- func HealthzHandler(c echo.Context) error
- type MockedManager
- func (m *MockedManager) New(_ context.Context, name string, _ []runner.Env) (runner.Runner, error)
- func (m *MockedManager) Pull(context.Context) ([2]string, error)
- func (m *MockedManager) Remove(_ context.Context, r runner.Runner) error
- func (m *MockedManager) Restart(context.Context, runner.Runner) error
- type Projects
- func (v Projects) Create(c echo.Context) error
- func (v Projects) Destroy(c echo.Context) error
- func (v Projects) List(c echo.Context) error
- func (v Projects) Logs(c echo.Context) error
- func (v Projects) Recreate(c echo.Context) error
- func (v Projects) Register(g *echo.Group)
- func (v Projects) Show(c echo.Context) error
- func (v Projects) Update(c echo.Context) error
- type Queries
- type Runner
- type Things
- func (v Things) Activation(c echo.Context) error
- func (v Things) Create(c echo.Context) error
- func (v Things) Destroy(c echo.Context) error
- func (v Things) List(c echo.Context) error
- func (v Things) Register(g *echo.Group)
- func (v Things) Show(c echo.Context) error
- func (v Things) Update(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthzHandler ¶
func HealthzHandler(c echo.Context) error
HealthzHandler shows server is up and running.
Types ¶
type MockedManager ¶
type MockedManager struct {
// contains filtered or unexported fields
}
type Projects ¶
Projects manages existing projects.
func (Projects) Create ¶
Create adds a project to the DB and creates its docker. This function is mapped to the path POST /projects nolint: funlen
func (Projects) Destroy ¶
Destroy deletes a project from the DB and its docker. This function is mapped to the path DELETE /projects/{project_id}.
func (Projects) Logs ¶
Logs returns project execution logs and errors. This function is mapped to the path GET /projects/{project_id}/logs.
func (Projects) Recreate ¶
Recreate creates project docker and stores their information. This function is mapped to the path GET /projects/{project_id}/recreate.
func (Projects) Register ¶
func (v Projects) Register(g *echo.Group)
Register registers the routes of projects handler on given echo group.
type Queries ¶
Queries handles useful queries on database.
func (Queries) Fetch ¶
Fetch fetches given things data in given time range from database. please consider that this function returns data in ascending time order. This function is mapped to the path POST /queries/fetch.
func (Queries) FetchSingle ¶
FetchSingle fetches the given thing data in given time range from database. please consider that this function returns data in ascending time order. This function is mapped to the path GET /queries/things/thing_id/fetch.
type Runner ¶
func (Runner) PassThrough ¶
PassThrough sends request to specific Runner.
type Things ¶
Things handles existing things.
func (Things) Activation ¶
Activation activates/deactivates thing. This function is mapped to the path GET /things/{thing_id}/{t:(?:activate|deactivate)}.
func (Things) Create ¶
Create adds a thing to the DB and its project. This function is mapped to the path POST /projects/{project_id}/things.
func (Things) Destroy ¶
Destroy deletes a thing from the DB and its project. This function is mapped to the path DELETE /things/{thing_id}.
func (Things) List ¶
List gets all things. This function is mapped to the path GET /projects/{project_id}/things.
func (Things) Register ¶
func (v Things) Register(g *echo.Group)
Register registers the routes of things handler on given echo group.