handlers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePipeline

func CreatePipeline(c echo.Context) error

CreatePipeline accepts all data needed to create a pipeline. It then starts the create pipeline execution process async.

func CreatePipelineGetAll

func CreatePipelineGetAll(c echo.Context) error

CreatePipelineGetAll returns a json array of all pipelines which are about to get compiled and all pipelines which have been compiled.

func GetJobLogs

func GetJobLogs(c echo.Context) error

GetJobLogs returns jobs for a given job. If no jobID is given, a collection of all jobs logs will be returned.

Required parameters: pipelineid - Related pipeline id pipelinerunid - Related pipeline run id

Optional parameters: jobid - Job id

func InitHandlers

func InitHandlers(e *echo.Echo, store *store.Store, scheduler *scheduler.Scheduler) error

InitHandlers initializes(registers) all handlers

func PipelineGet

func PipelineGet(c echo.Context) error

PipelineGet accepts a pipeline id and returns the pipeline object.

func PipelineGetAll

func PipelineGetAll(c echo.Context) error

PipelineGetAll returns all registered pipelines.

func PipelineGetAllRuns

func PipelineGetAllRuns(c echo.Context) error

PipelineGetAllRuns returns all runs about the given pipeline.

func PipelineGetAllWithLatestRun

func PipelineGetAllWithLatestRun(c echo.Context) error

PipelineGetAllWithLatestRun returns the latest of all registered pipelines included with the latest run.

func PipelineGetLatestRun

func PipelineGetLatestRun(c echo.Context) error

PipelineGetLatestRun returns the latest run of a pipeline, given by id.

func PipelineGitLSRemote

func PipelineGitLSRemote(c echo.Context) error

PipelineGitLSRemote checks for available git remote branches. This is the perfect way to check if we have access to a given repo.

func PipelineNameAvailable

func PipelineNameAvailable(c echo.Context) error

PipelineNameAvailable looks up if the given pipeline name is available and valid.

func PipelineRunGet

func PipelineRunGet(c echo.Context) error

PipelineRunGet returns details about a specific pipeline run. Required parameters are pipelineid and runid.

func PipelineStart

func PipelineStart(c echo.Context) error

PipelineStart starts a pipeline by the given id. Afterwards it returns the created/scheduled pipeline run.

func UserAdd

func UserAdd(c echo.Context) error

UserAdd adds a new user to the store.

func UserChangePassword

func UserChangePassword(c echo.Context) error

UserChangePassword changes the password from a user.

func UserDelete

func UserDelete(c echo.Context) error

UserDelete deletes the given user

func UserGetAll

func UserGetAll(c echo.Context) error

UserGetAll returns all users stored in store.

func UserLogin

func UserLogin(c echo.Context) error

UserLogin authenticates the user with the given credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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