handler

package
v0.0.0-...-ddc8f8a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = struct {
	Services struct {
		// Pubsub     pubsub.Publisher
		Queue queue.Queue
		Logs  logging.Log
	}
	Storage struct {
		// Users  model.UserStore
		// Repos  model.RepoStore
		// Builds model.BuildStore
		// Logs   model.LogStore
		Config model.ConfigStore
	}
	Pipeline struct {
		Limits     model.ResourceLimit
		Volumes    []string
		Networks   []string
		Privileged []string
	}
}{}

Functions

func GetAllRepo

func GetAllRepo(c echo.Context) error

func GetBuildProcLog

func GetBuildProcLog(c echo.Context) error

func GetBuildProcs

func GetBuildProcs(c echo.Context) error

func GetBuilds

func GetBuilds(c echo.Context) error

func GetConfig

func GetConfig(c echo.Context) error

func GetQueueInfo

func GetQueueInfo(c echo.Context) error

func GetRemoteRepos

func GetRemoteRepos(c echo.Context) error

func GetRepos

func GetRepos(c echo.Context) error

func GetRoot

func GetRoot(c echo.Context) error

func GetScmAccount

func GetScmAccount(c echo.Context) error

func GetScmAccounts

func GetScmAccounts(c echo.Context) error

func NewEchoServer

func NewEchoServer() *echo.Echo

func PostBuild

func PostBuild(c echo.Context) error

func PostConfig

func PostConfig(c echo.Context) error

func PostHook

func PostHook(c echo.Context) error

func PostRepo

func PostRepo(c echo.Context) error

func PostScmAccount

func PostScmAccount(c echo.Context) error

func PostSecret

func PostSecret(c echo.Context) error

func RPCHandler

func RPCHandler(c echo.Context) error

Types

type CircleContext

type CircleContext struct {
	echo.Context
}

func (CircleContext) DefaultQueryParam

func (c CircleContext) DefaultQueryParam(name string, defaultVal string) string

type RPC

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

func (*RPC) Done

func (s *RPC) Done(c context.Context, id string, state rpc.State) error

Done implements the rpc.Done function

func (*RPC) Extend

func (s *RPC) Extend(c context.Context, id string) error

Extend implements the rpc.Extend function

func (*RPC) Init

func (s *RPC) Init(c context.Context, id string, state rpc.State) error

Init implements the rpc.Init function Init Build and Proc status and create_time

func (*RPC) Log

func (s *RPC) Log(c context.Context, id string, line *rpc.Line) error

Log implements the rpc.Log function

func (*RPC) Next

func (s *RPC) Next(c context.Context, filter rpc.Filter) (*rpc.Pipeline, error)

Next implements the rpc.Next function

func (*RPC) Update

func (s *RPC) Update(c context.Context, id string, state rpc.State) error

Update implements the rpc.Update function

func (*RPC) Upload

func (s *RPC) Upload(c context.Context, id string, file *rpc.File) error

Upload implements the rpc.Upload function

func (*RPC) Wait

func (s *RPC) Wait(c context.Context, id string) error

Wait implements the rpc.Wait function

Jump to

Keyboard shortcuts

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