Documentation ¶
Overview ¶
Package generator contains the code for DeploymentConfig regeneration as well as REST support to help expose the generator from an API.
Index ¶
- type Client
- func (c Client) GetDeploymentConfig(ctx apirequest.Context, name string, options *metav1.GetOptions) (*deployapi.DeploymentConfig, error)
- func (c Client) GetImageStream(ctx apirequest.Context, name string, options *metav1.GetOptions) (*imageapi.ImageStream, error)
- func (c Client) ListImageStreams(ctx apirequest.Context) (*imageapi.ImageStreamList, error)
- type DeploymentConfigGenerator
- type GeneratorClient
- type REST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { DCFn func(ctx apirequest.Context, name string, options *metav1.GetOptions) (*deployapi.DeploymentConfig, error) ISFn func(ctx apirequest.Context, name string, options *metav1.GetOptions) (*imageapi.ImageStream, error) LISFn func(ctx apirequest.Context) (*imageapi.ImageStreamList, error) LISFn2 func(ctx apirequest.Context, options *metainternal.ListOptions) (*imageapi.ImageStreamList, error) }
func (Client) GetDeploymentConfig ¶
func (c Client) GetDeploymentConfig(ctx apirequest.Context, name string, options *metav1.GetOptions) (*deployapi.DeploymentConfig, error)
func (Client) GetImageStream ¶
func (c Client) GetImageStream(ctx apirequest.Context, name string, options *metav1.GetOptions) (*imageapi.ImageStream, error)
func (Client) ListImageStreams ¶
func (c Client) ListImageStreams(ctx apirequest.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 ¶
func (g *DeploymentConfigGenerator) Generate(ctx apirequest.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 apirequest.Context, name string, options *metav1.GetOptions) (*deployapi.DeploymentConfig, error) GetImageStream(ctx apirequest.Context, name string, options *metav1.GetOptions) (*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 apirequest.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).