web

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 19 Imported by: ? 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 RequestLoggingMiddleware

func RequestLoggingMiddleware(h http.Handler) http.Handler

Types

type Push

type Push interface {
	ContainsFile(file string) bool
	Files() []string
	Repo() string
	Org() string
	Branch() string
	IsMaster() bool
	SetCommitStatus(s git.Status)
	Name() string
}

Push represents a push notification from a git service.

type WebAPI

type WebAPI struct {
	Config      *settings.Settings
	Client      util.PlankClient
	Cache       dinghyfile.DependencyManager
	EventClient *events.Client
	Logger      log.FieldLogger
	Ums         []dinghyfile.Unmarshaller
	Notifiers   []notifiers.Notifier
	Parser      dinghyfile.Parser
}

func (*WebAPI) AddDinghyfileUnmarshaller

func (wa *WebAPI) AddDinghyfileUnmarshaller(u dinghyfile.Unmarshaller)

func (*WebAPI) AddNotifier

func (wa *WebAPI) AddNotifier(n notifiers.Notifier)

AddNotifier adds a Notifier type instance that will be triggered when a Dinghyfile processing phase completes (success/fail). It only gets triggered if there is work to do on a push (ie. a pipeline is intended to be updated)

func (*WebAPI) ProcessPush

func (wa *WebAPI) ProcessPush(p Push, b *dinghyfile.PipelineBuilder) error

ProcessPush processes a push using a pipeline builder

func (*WebAPI) Router

func (wa *WebAPI) Router() *mux.Router

Router defines the routes for the application.

func (*WebAPI) SetDinghyfileParser

func (wa *WebAPI) SetDinghyfileParser(p dinghyfile.Parser)

Jump to

Keyboard shortcuts

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