factory

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package factory contains code used to create deployment controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDeploymentConfigInterface added in v0.2.1

type ClientDeploymentConfigInterface struct {
	Client osclient.Interface
}

ClientDeploymentConfigInterface is a changeStrategy which delegates to the OpenShift client interfaces

func (ClientDeploymentConfigInterface) GenerateDeploymentConfig added in v0.2.1

func (c ClientDeploymentConfigInterface) GenerateDeploymentConfig(namespace, name string) (*deployapi.DeploymentConfig, error)

GenerateDeploymentConfig generates deploymentConfig using OpenShift client.

func (ClientDeploymentConfigInterface) UpdateDeploymentConfig added in v0.2.1

func (c ClientDeploymentConfigInterface) UpdateDeploymentConfig(namespace string, config *deployapi.DeploymentConfig) (*deployapi.DeploymentConfig, error)

UpdateDeploymentConfig creates deploymentConfig using OpenShift client.

type ClientDeploymentInterface added in v0.2.1

type ClientDeploymentInterface struct {
	Client kclient.Interface
}

ClientDeploymentInterface is a dccDeploymentInterface and dcDeploymentInterface which delegates to the OpenShift client interfaces

func (ClientDeploymentInterface) CreateDeployment added in v0.2.1

func (c ClientDeploymentInterface) CreateDeployment(namespace string, deployment *kapi.ReplicationController) (*kapi.ReplicationController, error)

CreateDeployment creates deployment using OpenShift client.

func (ClientDeploymentInterface) GetDeployment added in v0.2.1

func (c ClientDeploymentInterface) GetDeployment(namespace, name string) (*kapi.ReplicationController, error)

GetDeployment returns deployment using OpenShift client.

func (ClientDeploymentInterface) UpdateDeployment added in v0.2.1

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

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

type DeploymentControllerFactory added in v0.2.1

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 added in v0.2.1

func (*DeploymentControllerFactory) CreateContainer added in v0.2.1

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 added in v0.2.1

type DeploymentControllerPodInterface struct {
	KubeClient kclient.Interface
}

func (DeploymentControllerPodInterface) CreatePod added in v0.2.1

func (i DeploymentControllerPodInterface) CreatePod(namespace string, pod *kapi.Pod) (*kapi.Pod, error)

func (DeploymentControllerPodInterface) DeletePod added in v0.2.1

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

Jump to

Keyboard shortcuts

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