factory

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildControllerFactory

type BuildControllerFactory struct {
	OSClient            osclient.Interface
	KubeClient          kclient.Interface
	BuildUpdater        buildclient.BuildUpdater
	DockerBuildStrategy *strategy.DockerBuildStrategy
	STIBuildStrategy    *strategy.STIBuildStrategy
	CustomBuildStrategy *strategy.CustomBuildStrategy
	// Stop may be set to allow controllers created by this factory to be terminated.
	Stop <-chan struct{}
}

BuildControllerFactory constructs BuildController objects

func (*BuildControllerFactory) Create

Create constructs a BuildController

type BuildPodControllerFactory added in v0.4.1

type BuildPodControllerFactory struct {
	OSClient     osclient.Interface
	KubeClient   kclient.Interface
	BuildUpdater buildclient.BuildUpdater
	// Stop may be set to allow controllers created by this factory to be terminated.
	Stop <-chan struct{}
	// contains filtered or unexported fields
}

BuildPodControllerFactory construct BuildPodController objects

func (*BuildPodControllerFactory) Create added in v0.4.1

Create constructs a BuildPodController

type ControllerClient added in v0.2.1

type ControllerClient struct {
	KubeClient kclient.Interface
	Client     osclient.Interface
}

ControllerClient implements the common interfaces needed for build controllers

func (ControllerClient) CreatePod added in v0.2.1

func (c ControllerClient) CreatePod(namespace string, pod *kapi.Pod) (*kapi.Pod, error)

CreatePod creates a pod using the Kubernetes client.

func (ControllerClient) DeletePod added in v0.2.1

func (c ControllerClient) DeletePod(namespace string, pod *kapi.Pod) error

DeletePod destroys a pod using the Kubernetes client.

func (ControllerClient) GetImageRepository added in v0.2.1

func (c ControllerClient) GetImageRepository(namespace, name string) (*imageapi.ImageRepository, error)

GetImageRepository retrieves an image repository by namespace and name

type ImageChangeControllerFactory added in v0.2.1

type ImageChangeControllerFactory struct {
	Client                  osclient.Interface
	BuildConfigInstantiator buildclient.BuildConfigInstantiator
	BuildConfigUpdater      buildclient.BuildConfigUpdater
	// Stop may be set to allow controllers created by this factory to be terminated.
	Stop <-chan struct{}
}

ImageChangeControllerFactory can create an ImageChangeController which obtains ImageRepositories from a queue populated from a watch of all ImageRepositories.

func (*ImageChangeControllerFactory) Create added in v0.2.1

Create creates a new ImageChangeController which is used to trigger builds when a new image is available

Jump to

Keyboard shortcuts

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