router

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Overview

Package router provides the routing engine for Vela to serve and process API requests.

Usage:

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

Package router Vela worker

API for a Vela worker

Version: 0.4.3
Schemes: http, https
BasePath: ""

Consumes:
- application/json

Produces:
- application/json

SecurityDefinitions:
  ApiKeyAuth:
    type: apiKey
    in: header
    name: Authorization

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHandlers added in v0.4.0

func BuildHandlers(base *gin.RouterGroup)

BuildHandlers extends the provided base router group by adding a collection of endpoints for handling build related requests.

GET /api/v1/executors/:executor/build DELETE /api/v1/executors/:executor/build/cancel

func ExecutorHandlers added in v0.4.0

func ExecutorHandlers(base *gin.RouterGroup)

ExecutorHandlers extends the provided base router group by adding a collection of endpoints for handling executor related requests.

GET /api/v1/executors GET /api/v1/executors/:executor GET /api/v1/executors/:executor/build DELETE /api/v1/executors/:executor/build/cancel GET /api/v1/executors/:executor/pipeline GET /api/v1/executors/:executor/repo

func Load

func Load(options ...gin.HandlerFunc) *gin.Engine

Load creates the gin.Engine with the provided options (middleware functions) for processing web and API requests for the worker.

func PipelineHandlers added in v0.4.0

func PipelineHandlers(base *gin.RouterGroup)

PipelineHandlers extends the provided base router group by adding a collection of endpoints for handling pipeline related requests.

GET /api/v1/executors/:executor/pipeline

func RepoHandlers added in v0.4.0

func RepoHandlers(base *gin.RouterGroup)

RepoHandlers extends the provided base router group by adding a collection of endpoints for handling repo related requests.

GET /api/v1/executors/:executor/repo

Types

This section is empty.

Directories

Path Synopsis
Package middleware provides the ability for injecting Vela resources into the middleware chain for the API.
Package middleware provides the ability for injecting Vela resources into the middleware chain for the API.

Jump to

Keyboard shortcuts

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