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: 0

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