Documentation ¶
Overview ¶
Package etcd provides etcd backend implementation for storing Deployment and DeploymentConfig objects
Index ¶
- Constants
- type Etcd
- func (r *Etcd) CreateDeployment(ctx kapi.Context, deployment *api.Deployment) error
- func (r *Etcd) CreateDeploymentConfig(ctx kapi.Context, deploymentConfig *api.DeploymentConfig) error
- func (r *Etcd) DeleteDeployment(ctx kapi.Context, id string) error
- func (r *Etcd) DeleteDeploymentConfig(ctx kapi.Context, id string) error
- func (r *Etcd) GetDeployment(ctx kapi.Context, id string) (*api.Deployment, error)
- func (r *Etcd) GetDeploymentConfig(ctx kapi.Context, id string) (*api.DeploymentConfig, error)
- func (r *Etcd) ListDeploymentConfigs(ctx kapi.Context, label, field labels.Selector) (*api.DeploymentConfigList, error)
- func (r *Etcd) ListDeployments(ctx kapi.Context, label, field labels.Selector) (*api.DeploymentList, error)
- func (r *Etcd) UpdateDeployment(ctx kapi.Context, deployment *api.Deployment) error
- func (r *Etcd) UpdateDeploymentConfig(ctx kapi.Context, deploymentConfig *api.DeploymentConfig) error
- func (r *Etcd) WatchDeploymentConfigs(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- func (r *Etcd) WatchDeployments(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
Constants ¶
const ( // DeploymentPath is the path to deployment resources in etcd DeploymentPath string = "/deployments" // DeploymentConfigPath is the path to deploymentConfig resources in etcd DeploymentConfigPath string = "/deploymentConfigs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct {
tools.EtcdHelper
}
Etcd implements deployment.Registry and deploymentconfig.Registry interfaces.
func (*Etcd) CreateDeployment ¶
CreateDeployment creates a new Deployment.
func (*Etcd) CreateDeploymentConfig ¶
func (r *Etcd) CreateDeploymentConfig(ctx kapi.Context, deploymentConfig *api.DeploymentConfig) error
CreateDeploymentConfig creates a new DeploymentConfig.
func (*Etcd) DeleteDeployment ¶
DeleteDeployment deletes a Deployment specified by its ID.
func (*Etcd) DeleteDeploymentConfig ¶
DeleteDeploymentConfig deletes a DeploymentConfig specified by its ID.
func (*Etcd) GetDeployment ¶
GetDeployment gets a specific Deployment specified by its ID.
func (*Etcd) GetDeploymentConfig ¶
GetDeploymentConfig gets a specific DeploymentConfig specified by its ID.
func (*Etcd) ListDeploymentConfigs ¶
func (r *Etcd) ListDeploymentConfigs(ctx kapi.Context, label, field labels.Selector) (*api.DeploymentConfigList, error)
ListDeploymentConfigs obtains a list of DeploymentConfigs.
func (*Etcd) ListDeployments ¶
func (r *Etcd) ListDeployments(ctx kapi.Context, label, field labels.Selector) (*api.DeploymentList, error)
ListDeployments obtains a list of Deployments.
func (*Etcd) UpdateDeployment ¶
UpdateDeployment replaces an existing Deployment.
func (*Etcd) UpdateDeploymentConfig ¶
func (r *Etcd) UpdateDeploymentConfig(ctx kapi.Context, deploymentConfig *api.DeploymentConfig) error
UpdateDeploymentConfig replaces an existing DeploymentConfig.