api

package
v0.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package api provides the handlers for the Vela API.

Usage:

import "github.com/go-vela/worker/api"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuild added in v0.2.0

func GetBuild(c *gin.Context)

GetBuild represents the API handler to capture the build currently running on an executor.

func GetExecutor added in v0.2.0

func GetExecutor(c *gin.Context)

GetExecutor represents the API handler to capture the executor currently running on a worker.

func GetExecutors added in v0.2.0

func GetExecutors(c *gin.Context)

GetExecutors represents the API handler to capture the executors currently running on a worker.

func GetPipeline added in v0.2.0

func GetPipeline(c *gin.Context)

GetPipeline represents the API handler to capture the pipeline currently running on an executor.

func GetRepo added in v0.2.0

func GetRepo(c *gin.Context)

GetRepo represents the API handler to capture the repo currently running on an executor.

func Health

func Health(c *gin.Context)

Health check the status of the application

func KillBuild added in v0.2.0

func KillBuild(c *gin.Context)

KillBuild represents the API handler to kill a build currently running on an executor.

This function performs a hard cancellation of a build on worker. Any build running during this time will immediately be stopped.

func Metrics

func Metrics() http.Handler

Metrics returns a Prometheus handler for serving go metrics

func Shutdown added in v0.2.0

func Shutdown(c *gin.Context)

Shutdown represents the API handler to shutdown a executors currently running on an worker.

This function performs a soft shut down of a worker. Any build running during this time will safely complete, then the worker will safely shut itself down.

Types

This section is empty.

Jump to

Keyboard shortcuts

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