api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Healthz

func Healthz(c *gin.Context)

Healthz is the gin handler for the GET /healthz endpoint

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API represents the rest api handlers.

func New

func New(s storage.Store) API

New creates a new api handler.

func (API) Build

func (api API) Build() Build

Build returns a handler for builds.

func (API) Job

func (api API) Job() Job

Job returns a handler for jobs.

func (API) Project

func (api API) Project() Project

Project returns a handler for projects.

type Build

type Build struct {
	// contains filtered or unexported fields
}

Build represents the build api handlers.

func (Build) Get

func (api Build) Get(c *gin.Context)

Get creates a new gin handler for the GET /build/:id endpoint

func (Build) Jobs

func (api Build) Jobs(c *gin.Context)

Jobs creates a new gin handler for the GET /build/:id/jobs endpoint

type Job

type Job struct {
	// contains filtered or unexported fields
}

Job represents the job api handlers.

func (Job) Get

func (api Job) Get(c *gin.Context)

Get creates a new gin handler for the GET /job/:id endpoint

func (Job) Logs

func (api Job) Logs(c *gin.Context)

Logs creates a new gin handler for the GET /job/:id/logs endpoint

type Project

type Project struct {
	// contains filtered or unexported fields
}

Project represents the project api handlers.

func (Project) Builds

func (api Project) Builds(c *gin.Context)

Builds creates a new gin handler for the GET /project/:id/builds endpoint

func (Project) Get

func (api Project) Get(c *gin.Context)

Get creates a new gin handler for the GET /project/:id endpoint

func (Project) List

func (api Project) List(c *gin.Context)

List creates a new gin handler for the GET /projects endpoint

Jump to

Keyboard shortcuts

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