Documentation ¶
Index ¶
- type BuildControllerFactory
- type ControllerClient
- func (c ControllerClient) CreateBuild(config *buildapi.BuildConfig, imageSubstitutions map[string]string) error
- func (c ControllerClient) CreatePod(namespace string, pod *kapi.Pod) (*kapi.Pod, error)
- func (c ControllerClient) DeletePod(namespace string, pod *kapi.Pod) error
- func (c ControllerClient) GetImageRepository(namespace, name string) (*imageapi.ImageRepository, error)
- func (c ControllerClient) UpdateBuild(namespace string, build *buildapi.Build) (*buildapi.Build, error)
- func (c ControllerClient) UpdateBuildConfig(buildConfig *buildapi.BuildConfig) error
- type ImageChangeControllerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildControllerFactory ¶
type BuildControllerFactory struct { Client *osclient.Client KubeClient *kclient.Client 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{} // contains filtered or unexported fields }
func (*BuildControllerFactory) Create ¶
func (factory *BuildControllerFactory) Create() *controller.BuildController
type ControllerClient ¶ added in v0.2.1
ControllerClient implements the common interfaces needed for build controllers
func (ControllerClient) CreateBuild ¶ added in v0.2.1
func (c ControllerClient) CreateBuild(config *buildapi.BuildConfig, imageSubstitutions map[string]string) error
CreateBuild updates build using the OpenShift client.
func (ControllerClient) CreatePod ¶ added in v0.2.1
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
func (ControllerClient) UpdateBuild ¶ added in v0.2.1
func (c ControllerClient) UpdateBuild(namespace string, build *buildapi.Build) (*buildapi.Build, error)
UpdateBuild updates build using the OpenShift client.
func (ControllerClient) UpdateBuildConfig ¶ added in v0.2.1
func (c ControllerClient) UpdateBuildConfig(buildConfig *buildapi.BuildConfig) error
UpdateBuildConfig updates buildConfig using the OpenShift client.
type ImageChangeControllerFactory ¶ added in v0.2.1
type ImageChangeControllerFactory struct { Client *osclient.Client // 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
func (factory *ImageChangeControllerFactory) Create() *controller.ImageChangeController
Create creates a new ImageChangeController which is used to trigger builds when a new image is available