Version: v1.1.6 Latest Latest

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 11 Imported by: 0



Package generator contains the code for DeploymentConfig regeneration as well as REST support to help expose the generator from an API.



This section is empty.


This section is empty.


This section is empty.


type BasicDeploymentConfigController added in v1.0.5

type BasicDeploymentConfigController struct{}

func (BasicDeploymentConfigController) Generate added in v1.0.5

func (BasicDeploymentConfigController) Generate(genericParams map[string]interface{}) (runtime.Object, error)

func (BasicDeploymentConfigController) ParamNames added in v1.0.5

type Client added in v0.2.1

type Client struct {
	DCFn   func(ctx kapi.Context, name string) (*deployapi.DeploymentConfig, error)
	ISFn   func(ctx kapi.Context, name string) (*imageapi.ImageStream, error)
	LISFn  func(ctx kapi.Context) (*imageapi.ImageStreamList, error)
	LISFn2 func(ctx kapi.Context, options *kapi.ListOptions) (*imageapi.ImageStreamList, error)

func (Client) GetDeploymentConfig added in v0.2.1

func (c Client) GetDeploymentConfig(ctx kapi.Context, name string) (*deployapi.DeploymentConfig, error)

func (Client) GetImageStream added in v0.4.3

func (c Client) GetImageStream(ctx kapi.Context, name string) (*imageapi.ImageStream, error)

func (Client) ListImageStreams added in v0.4.3

func (c Client) ListImageStreams(ctx kapi.Context) (*imageapi.ImageStreamList, error)

type DeploymentConfigGenerator

type DeploymentConfigGenerator struct {
	Client GeneratorClient

DeploymentConfigGenerator reconciles a DeploymentConfig with other pieces of deployment-related state and produces a DeploymentConfig which represents a potential future DeploymentConfig. If the generated state differs from the input state, the LatestVersion field of the output is incremented.

func (*DeploymentConfigGenerator) Generate

Generate returns a potential future DeploymentConfig based on the DeploymentConfig specified by namespace and name. Returns a RESTful error.

type GeneratorClient added in v0.2.1

type GeneratorClient interface {
	GetDeploymentConfig(ctx kapi.Context, name string) (*deployapi.DeploymentConfig, error)
	GetImageStream(ctx kapi.Context, name string) (*imageapi.ImageStream, error)
	// LEGACY: used, to scan all repositories for a DockerImageReference.  Will be removed
	// when we drop support for reference by DockerImageReference.
	ListImageStreams(ctx kapi.Context) (*imageapi.ImageStreamList, error)

type REST

type REST struct {
	// contains filtered or unexported fields

REST is a RESTStorage implementation for a DeploymentConfigGenerator which supports only the Get operation (as the generator has no underlying storage object).

func NewREST

func NewREST(generator *DeploymentConfigGenerator, codec runtime.Codec) *REST

func (*REST) Get

func (s *REST) Get(ctx api.Context, id string) (runtime.Object, error)

func (*REST) New

func (s *REST) New() runtime.Object

Jump to

Keyboard shortcuts

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