Documentation ¶
Overview ¶
Package generator contains the code for DeploymentConfig regeneration as well as REST support to help expose the generator from an API.
Index ¶
- func NewREST(generator *DeploymentConfigGenerator, codec runtime.Codec) apiserver.RESTStorage
- type Client
- type DeploymentConfigGenerator
- type GeneratorClient
- type REST
- func (s *REST) Create(ctx api.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
- func (s *REST) Delete(ctx api.Context, id string) (<-chan apiserver.RESTResult, error)
- func (s *REST) Get(ctx api.Context, id string) (runtime.Object, error)
- func (s *REST) List(ctx api.Context, labels, fields labels.Selector) (runtime.Object, error)
- func (s *REST) New() runtime.Object
- func (s *REST) Update(ctx api.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(generator *DeploymentConfigGenerator, codec runtime.Codec) apiserver.RESTStorage
Types ¶
type Client ¶ added in v0.2.1
type Client struct { DCFn func(ctx kapi.Context, name string) (*deployapi.DeploymentConfig, error) IRFn func(ctx kapi.Context, name string) (*imageapi.ImageRepository, error) LIRFn func(ctx kapi.Context) (*imageapi.ImageRepositoryList, error) LIRFn2 func(ctx kapi.Context, label labels.Selector) (*imageapi.ImageRepositoryList, error) }
func (Client) GetDeploymentConfig ¶ added in v0.2.1
func (Client) GetImageRepository ¶ added in v0.2.1
func (Client) ListImageRepositories ¶ added in v0.2.1
type DeploymentConfigGenerator ¶
type DeploymentConfigGenerator struct { Client GeneratorClient Codec runtime.Codec }
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, name string) (*deployapi.DeploymentConfig, error)
Generate returns a potential future DeploymentConfig based on the DeploymentConfig specified by namespace and name
type GeneratorClient ¶ added in v0.2.1
type GeneratorClient interface { GetDeploymentConfig(ctx kapi.Context, name string) (*deployapi.DeploymentConfig, error) GetImageRepository(ctx kapi.Context, name string) (*imageapi.ImageRepository, error) // LEGACY: used, to scan all repositories for a DockerImageReference. Will be removed // when we drop support for reference by DockerImageReference. ListImageRepositories(ctx kapi.Context) (*imageapi.ImageRepositoryList, error) }
Click to show internal directories.
Click to hide internal directories.