Documentation
¶
Index ¶
- type BuildControllerFactory
- type BuildPodControllerFactory
- type ControllerClient
- 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) GetImageStream(namespace, name string) (*imageapi.ImageStream, error)
- func (c ControllerClient) GetPod(namespace, name string) (*kapi.Pod, error)
- type ImageChangeControllerFactory
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
SourceBuildStrategy *strategy.SourceBuildStrategy
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 ¶
func (factory *BuildControllerFactory) Create() controller.RunnableController
Create constructs a BuildController
func (*BuildControllerFactory) CreateDeleteController ¶
func (factory *BuildControllerFactory) CreateDeleteController() controller.RunnableController
CreateDeleteController constructs a BuildDeleteController
type BuildPodControllerFactory ¶
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 ¶
func (factory *BuildPodControllerFactory) Create() controller.RunnableController
Create constructs a BuildPodController
func (*BuildPodControllerFactory) CreateDeleteController ¶
func (factory *BuildPodControllerFactory) CreateDeleteController() controller.RunnableController
CreateDeleteController constructs a BuildPodDeleteController
type ControllerClient ¶
ControllerClient implements the common interfaces needed for build controllers
func (ControllerClient) DeletePod ¶
func (c ControllerClient) DeletePod(namespace string, pod *kapi.Pod) error
DeletePod destroys a pod using the Kubernetes client.
func (ControllerClient) GetImageStream ¶
func (c ControllerClient) GetImageStream(namespace, name string) (*imageapi.ImageStream, error)
GetImageStream retrieves an image repository by namespace and name
type ImageChangeControllerFactory ¶
type ImageChangeControllerFactory struct {
Client osclient.Interface
BuildConfigInstantiator buildclient.BuildConfigInstantiator
// Stop may be set to allow controllers created by this factory to be terminated.
Stop <-chan struct{}
}
ImageChangeControllerFactory can create an ImageChangeController which obtains ImageStreams from a queue populated from a watch of all ImageStreams.
func (*ImageChangeControllerFactory) Create ¶
func (factory *ImageChangeControllerFactory) Create() controller.RunnableController
Create creates a new ImageChangeController which is used to trigger builds when a new image is available