actions

package
v0.0.0-...-1665488 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = envy.Get("GO_ENV", "development")

ENV is used to help switch settings based on where the application is being run. Default is "development".

Functions

func AboutHandler

func AboutHandler(c buffalo.Context) error

AboutHandler is a default handler to serve up memory of 18.20.

func App

func App() *buffalo.App

App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.

func PullHandler

func PullHandler(c buffalo.Context) error

PullHandler pulls the latest version of required images.

func RunnersHandler

func RunnersHandler(c buffalo.Context) error

RunnersHandler sends request to specific ElRunner

Types

type ProjectsResource

type ProjectsResource struct {
	buffalo.Resource
}

ProjectsResource manages existing projects

func (ProjectsResource) Create

func (v ProjectsResource) Create(c buffalo.Context) error

Create adds a project to the DB and creates its docker. This function is mapped to the path POST /projects

func (ProjectsResource) Destroy

func (v ProjectsResource) Destroy(c buffalo.Context) error

Destroy deletes a project from the DB and its docker. This function is mapped to the path DELETE /projects/{project_id}

func (ProjectsResource) List

List gets all projects. This function is mapped to the path GET /projects

func (ProjectsResource) Logs

Logs returns project execution logs and errors. This function is mapped to the path GET /projects/{project_id}/logs

func (ProjectsResource) Recreate

func (v ProjectsResource) Recreate(c buffalo.Context) error

Recreate creates project docker and stores their information. This function is mapped to the path GET /projects/{project_id}/recreate

func (ProjectsResource) Show

Show gets the data for one project. This function is mapped to the path GET /projects/{project_id}

func (ProjectsResource) Update

func (v ProjectsResource) Update(c buffalo.Context) error

Update updates the name of the project. The project owner is passed as an environment variable to project docker so it cannot be changed. This function is mapped to the path PUT /projects/{project_id}

Jump to

Keyboard shortcuts

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