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 ¶
This section is empty.
Types ¶
type Client ¶
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, label labels.Selector) (*imageapi.ImageStreamList, error) }
func (Client) GetDeploymentConfig ¶
func (Client) GetImageStream ¶ added in v0.4.3
func (Client) ListImageStreams ¶ added in v0.4.3
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 ¶
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. Returns a RESTful error.
type GeneratorClient ¶
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) }
Click to show internal directories.
Click to hide internal directories.