werker

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWerkerServer

func NewWerkerServer(werkerCtx *WerkerContext) pb.BuildServer

func ServeMe

func ServeMe(transportChan chan *models.Transport, conf *models.WerkerFacts, store storage.OcelotStorage, killValet *valet.ContextValet)

ServeMe will start HTTP Server as needed for streaming build output by hash

Types

type WerkerContext

type WerkerContext struct {
	*models.WerkerFacts
	// contains filtered or unexported fields
}

type WerkerServer

type WerkerServer struct {
	*WerkerContext
	cleaner.Cleaner
}

WerkerServer embeds the werkerappcontext so we can stream + access active builds

func (*WerkerServer) BuildInfo

func (w *WerkerServer) BuildInfo(request *pb.Request, stream pb.Build_BuildInfoServer) error

BuildInfo streams logs for an active build

func (*WerkerServer) KillHash

func (w *WerkerServer) KillHash(request *pb.Request, stream pb.Build_KillHashServer) error

KillHash handles build kills

Jump to

Keyboard shortcuts

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