Documentation
¶
Overview ¶
Package factory contains code used to create deployment controllers.
Index ¶
- type ClientDeploymentConfigInterface
- type ClientDeploymentInterface
- func (c ClientDeploymentInterface) CreateDeployment(namespace string, deployment *kapi.ReplicationController) (*kapi.ReplicationController, error)
- func (c ClientDeploymentInterface) GetDeployment(namespace, name string) (*kapi.ReplicationController, error)
- func (c ClientDeploymentInterface) UpdateDeployment(namespace string, deployment *kapi.ReplicationController) (*kapi.ReplicationController, error)
- type DeploymentConfigChangeControllerFactory
- type DeploymentConfigControllerFactory
- type DeploymentControllerFactory
- type DeploymentControllerPodInterface
- type ImageChangeControllerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientDeploymentConfigInterface ¶
ClientDeploymentConfigInterface is a changeStrategy which delegates to the OpenShift client interfaces
func (ClientDeploymentConfigInterface) GenerateDeploymentConfig ¶
func (c ClientDeploymentConfigInterface) GenerateDeploymentConfig(namespace, name string) (*deployapi.DeploymentConfig, error)
GenerateDeploymentConfig generates deploymentConfig using OpenShift client.
func (ClientDeploymentConfigInterface) UpdateDeploymentConfig ¶
func (c ClientDeploymentConfigInterface) UpdateDeploymentConfig(namespace string, config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)
UpdateDeploymentConfig creates deploymentConfig using OpenShift client.
type ClientDeploymentInterface ¶
ClientDeploymentInterface is a dccDeploymentInterface and dcDeploymentInterface which delegates to the OpenShift client interfaces
func (ClientDeploymentInterface) CreateDeployment ¶
func (c ClientDeploymentInterface) CreateDeployment(namespace string, deployment *kapi.ReplicationController) (*kapi.ReplicationController, error)
CreateDeployment creates deployment using OpenShift client.
func (ClientDeploymentInterface) GetDeployment ¶
func (c ClientDeploymentInterface) GetDeployment(namespace, name string) (*kapi.ReplicationController, error)
GetDeployment returns deployment using OpenShift client.
func (ClientDeploymentInterface) UpdateDeployment ¶
func (c ClientDeploymentInterface) UpdateDeployment(namespace string, deployment *kapi.ReplicationController) (*kapi.ReplicationController, error)
UpdateDeployment creates deployment using OpenShift client.
type DeploymentConfigChangeControllerFactory ¶
type DeploymentConfigChangeControllerFactory struct {
Client osclient.Interface
KubeClient kclient.Interface
Codec runtime.Codec
// Stop may be set to allow controllers created by this factory to be terminated.
Stop <-chan struct{}
}
DeploymentConfigChangeControllerFactory can create a DeploymentConfigChangeController which obtains DeploymentConfigs from a queue populated from a watch of all DeploymentConfigs.
func (*DeploymentConfigChangeControllerFactory) Create ¶
func (factory *DeploymentConfigChangeControllerFactory) Create() *controller.DeploymentConfigChangeController
type DeploymentConfigControllerFactory ¶
type DeploymentConfigControllerFactory struct {
Client *osclient.Client
KubeClient kclient.Interface
Codec runtime.Codec
Stop <-chan struct{}
}
DeploymentConfigControllerFactory can create a DeploymentConfigController which obtains DeploymentConfigs from a queue populated from a watch of all DeploymentConfigs.
func (*DeploymentConfigControllerFactory) Create ¶
func (factory *DeploymentConfigControllerFactory) Create() *controller.DeploymentConfigController
type DeploymentControllerFactory ¶
type DeploymentControllerFactory struct {
// Client satisfies DeploymentInterface.
Client *osclient.Client
// KubeClient satisfies PodInterface.
KubeClient *kclient.Client
// Environment is a set of environment which should be injected into all deployment pod containers.
Environment []kapi.EnvVar
// UseLocalImages configures the ImagePullPolicy for containers deployment pods.
UseLocalImages bool
// RecreateStrategyImage specifies which Docker image which should implement the Recreate strategy.
RecreateStrategyImage string
// Codec is used to decode DeploymentConfigs.
Codec runtime.Codec
// Stop may be set to allow controllers created by this factory to be terminated.
Stop <-chan struct{}
// contains filtered or unexported fields
}
DeploymentControllerFactory can create a DeploymentController which obtains Deployments from a queue populated from a watch of Deployments. Pods are obtained from a queue populated from a watch of all pods.
func (*DeploymentControllerFactory) Create ¶
func (factory *DeploymentControllerFactory) Create() *controller.DeploymentController
func (*DeploymentControllerFactory) CreateContainer ¶
func (factory *DeploymentControllerFactory) CreateContainer(strategy *deployapi.DeploymentStrategy) *kapi.Container
CreateContainer lets DeploymentControllerFactory satisfy the DeploymentContainerCreator interface and makes a container using the configuration of the factory.
type DeploymentControllerPodInterface ¶
func (DeploymentControllerPodInterface) DeletePod ¶
func (i DeploymentControllerPodInterface) DeletePod(namespace, id string) error
type ImageChangeControllerFactory ¶
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 ¶
func (factory *ImageChangeControllerFactory) Create() *controller.ImageChangeController