strategy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2015 License: Apache-2.0 Imports: 11 Imported by: 308

Documentation

Index

Constants

View Source
const (
	DockerPushSecretMountPath = "/var/run/secrets/openshift.io/push"
	DockerPullSecretMountPath = "/var/run/secrets/openshift.io/pull"
)

Variables

View Source
var STITempDirectoryCreator = &tempDirectoryCreator{}

Functions

This section is empty.

Types

type CustomBuildStrategy

type CustomBuildStrategy struct {
	// Codec is the codec to use for encoding the output pod.
	// IMPORTANT: This may break backwards compatibility when
	// it changes.
	Codec runtime.Codec
}

CustomBuildStrategy creates a build using a custom builder image.

func (*CustomBuildStrategy) CreateBuildPod

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

CreateBuildPod creates the pod to be used for the Custom build

type DockerBuildStrategy

type DockerBuildStrategy struct {
	Image string
	// Codec is the codec to use for encoding the output pod.
	// IMPORTANT: This may break backwards compatibility when
	// it changes.
	Codec runtime.Codec
}

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 SourceBuildStrategy

type SourceBuildStrategy struct {
	Image                string
	TempDirectoryCreator TempDirectoryCreator
	// Codec is the codec to use for encoding the output pod.
	// IMPORTANT: This may break backwards compatibility when
	// it changes.
	Codec runtime.Codec
}

SourceBuildStrategy creates STI(source to image) builds

func (*SourceBuildStrategy) CreateBuildPod

func (bs *SourceBuildStrategy) 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