generator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

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

Types

type DeploymentConfigGenerator

type DeploymentConfigGenerator struct {
	DeploymentInterface       deploymentInterface
	DeploymentConfigInterface deploymentConfigInterface
	ImageRepositoryInterface  imageRepositoryInterface
}

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

func (g *DeploymentConfigGenerator) Generate(ctx kapi.Context, deploymentConfigID string) (*deployapi.DeploymentConfig, error)

Generate returns a potential future DeploymentConfig based on the DeploymentConfig specified by deploymentConfigID.

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 (*REST) Create

func (s *REST) Create(ctx api.Context, obj runtime.Object) (<-chan runtime.Object, error)

func (*REST) Delete

func (s *REST) Delete(ctx api.Context, id string) (<-chan runtime.Object, error)

func (*REST) Get

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

func (*REST) List

func (s *REST) List(ctx api.Context, labels, fields labels.Selector) (runtime.Object, error)

func (*REST) New

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

func (*REST) Update

func (s *REST) Update(ctx api.Context, obj runtime.Object) (<-chan runtime.Object, error)

Jump to

Keyboard shortcuts

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