strategy

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var STITempDirectoryCreator = &tempDirectoryCreator{}

Functions

This section is empty.

Types

type DockerBuildStrategy

type DockerBuildStrategy struct {
	BuilderImage   string
	UseLocalImages bool
}

DockerBuildStrategy creates a Docker build using a Docker builder image.

func (*DockerBuildStrategy) CreateBuildPod

func (bs *DockerBuildStrategy) CreateBuildPod(build *buildapi.Build) (*kapi.Pod, error)

CreateBuildPod creates the pod to be used for the Docker build TODO: Make the Pod definition configurable

type STIBuildStrategy

type STIBuildStrategy struct {
	BuilderImage         string
	TempDirectoryCreator TempDirectoryCreator
	UseLocalImages       bool
}

STIBuildStrategy creates STI(source to image) builds

func (*STIBuildStrategy) CreateBuildPod

func (bs *STIBuildStrategy) CreateBuildPod(build *buildapi.Build) (*kapi.Pod, error)

CreateBuildPod creates a pod that will execute the STI build TODO: Make the Pod definition configurable

type TempDirectoryCreator

type TempDirectoryCreator interface {
	CreateTempDirectory() (string, error)
}

Jump to

Keyboard shortcuts

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