Help us shape the future of Go! Take the 2026 Go Developer Survey

controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildController

type BuildController struct {
	BuildStore    cache.Store
	NextBuild     func() *buildapi.Build
	NextPod       func() *kapi.Pod
	BuildUpdater  buildUpdater
	PodCreator    podCreator
	BuildStrategy BuildStrategy
}

BuildController watches build resources and manages their state

func (*BuildController) HandleBuild

func (bc *BuildController) HandleBuild(build *buildapi.Build)

func (*BuildController) HandlePod

func (bc *BuildController) HandlePod(pod *kapi.Pod)

func (*BuildController) Run

func (bc *BuildController) Run()

Run begins watching and syncing build jobs onto the cluster.

type BuildStrategy

type BuildStrategy interface {
	CreateBuildPod(build *buildapi.Build) (*kapi.Pod, error)
}

BuildStrategy knows how to create a pod spec for a pod which can execute a build.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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