server

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockHandler

func BlockHandler() gin.HandlerFunc

BlockHandler will pass the call from /debug/pprof/block to pprof

func Broker

func Broker(c *gin.Context)

Broker handles connections to the embedded message broker.

func ChownRepo

func ChownRepo(c *gin.Context)

func CmdlineHandler

func CmdlineHandler() gin.HandlerFunc

CmdlineHandler will pass the call from /debug/pprof/cmdline to pprof

func DeleteBuild

func DeleteBuild(c *gin.Context)

func DeleteGlobalSecret

func DeleteGlobalSecret(c *gin.Context)

func DeleteRepo

func DeleteRepo(c *gin.Context)

func DeleteSecret

func DeleteSecret(c *gin.Context)

func DeleteTeamSecret

func DeleteTeamSecret(c *gin.Context)

func DeleteToken

func DeleteToken(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func EventStream

func EventStream(c *gin.Context)

EventStream produces the User event stream, sending all repository, build and agent events to the client.

func GetAgents

func GetAgents(c *gin.Context)

func GetBadge

func GetBadge(c *gin.Context)

func GetBuild

func GetBuild(c *gin.Context)

func GetBuildLast

func GetBuildLast(c *gin.Context)

func GetBuildLogs

func GetBuildLogs(c *gin.Context)

func GetBuildQueue

func GetBuildQueue(c *gin.Context)

func GetBuilds

func GetBuilds(c *gin.Context)

func GetCC

func GetCC(c *gin.Context)

func GetCommit

func GetCommit(c *gin.Context)

func GetFeed

func GetFeed(c *gin.Context)

func GetGlobalSecrets

func GetGlobalSecrets(c *gin.Context)

func GetLogin

func GetLogin(c *gin.Context)

func GetLoginToken

func GetLoginToken(c *gin.Context)

func GetLogout

func GetLogout(c *gin.Context)

func GetPullRequest

func GetPullRequest(c *gin.Context)

func GetRemoteRepos

func GetRemoteRepos(c *gin.Context)

func GetRepo

func GetRepo(c *gin.Context)

func GetRepos

func GetRepos(c *gin.Context)

func GetSecrets

func GetSecrets(c *gin.Context)

func GetSelf

func GetSelf(c *gin.Context)

func GetTeamSecrets

func GetTeamSecrets(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func GetUsers

func GetUsers(c *gin.Context)

func GoroutineHandler

func GoroutineHandler() gin.HandlerFunc

GoroutineHandler will pass the call from /debug/pprof/goroutine to pprof

func HandleUpdate

func HandleUpdate(c context.Context, message *stomp.Message)

HandleUpdate handles build updates from the agent and persists to the database.

func HeapHandler

func HeapHandler() gin.HandlerFunc

HeapHandler will pass the call from /debug/pprof/heap to pprof

func IndexHandler

func IndexHandler() gin.HandlerFunc

IndexHandler will pass the call from /debug/pprof to pprof

func LogStream

func LogStream(c *gin.Context)

LogStream streams the build log output to the client.

func PatchRepo

func PatchRepo(c *gin.Context)

func PatchUser

func PatchUser(c *gin.Context)

func PostBuild

func PostBuild(c *gin.Context)

func PostGlobalSecret

func PostGlobalSecret(c *gin.Context)

func PostHook

func PostHook(c *gin.Context)

func PostRepo

func PostRepo(c *gin.Context)

func PostSecret

func PostSecret(c *gin.Context)

func PostTeamSecret

func PostTeamSecret(c *gin.Context)

func PostToken

func PostToken(c *gin.Context)

func PostUser

func PostUser(c *gin.Context)

func ProfileHandler

func ProfileHandler() gin.HandlerFunc

ProfileHandler will pass the call from /debug/pprof/profile to pprof

func RedirectPullRequest

func RedirectPullRequest(c *gin.Context)

func RedirectSha

func RedirectSha(c *gin.Context)

func ShowIndex

func ShowIndex(c *gin.Context)

ShowIndex serves the main Drone application page.

func ShowLogin

func ShowLogin(c *gin.Context)

ShowLogin is a legacy endpoint that now redirects to initiliaze the oauth flow

func ShowLoginForm

func ShowLoginForm(c *gin.Context)

ShowLoginForm displays a login form for systems like Gogs that do not yet support oauth workflows.

func Sign

func Sign(c *gin.Context)

func Slack

func Slack(c *gin.Context)

Slack is handler function that handles Slack slash commands.

func SymbolHandler

func SymbolHandler() gin.HandlerFunc

SymbolHandler will pass the call from /debug/pprof/symbol to pprof

func ThreadCreateHandler

func ThreadCreateHandler() gin.HandlerFunc

ThreadCreateHandler will pass the call from /debug/pprof/threadcreate to pprof

func ToConfig

func ToConfig(c *gin.Context) *model.Config

ToConfig returns the config from the Context

func TraceHandler

func TraceHandler() gin.HandlerFunc

TraceHandler will pass the call from /debug/pprof/trace to pprof

Types

This section is empty.

Directories

Path Synopsis
Package classification Drone API.
Package classification Drone API.

Jump to

Keyboard shortcuts

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