Package etcd provides etcd backend implementation for storing PodRegistry, ControllerRegistry and ServiceRegistry api objects.
MakeEtcdItemKey constructs etcd paths to a resource relative to prefix enforcing namespace rules. If no namespace is on context, it errors.
MakeEtcdListKey constructs etcd paths to resource directories enforcing namespace rules
Registry implements BindingRegistry, ControllerRegistry, EndpointRegistry, MinionRegistry, PodRegistry and ServiceRegistry, backed by etcd.
NewRegistry creates an etcd registry.
func (r *Registry) CreateController(ctx api.Context, controller *api.ReplicationController) (*api.ReplicationController, error)
CreateController creates a new ReplicationController.
CreateService creates a new Service.
DeleteController deletes a ReplicationController specified by its ID.
DeleteService deletes a Service specified by its name.
GetController gets a specific ReplicationController specified by its ID.
GetService obtains a Service specified by its name.
ListControllers obtains a list of ReplicationControllers.
ListServices obtains a list of Services.
func (r *Registry) UpdateController(ctx api.Context, controller *api.ReplicationController) (*api.ReplicationController, error)
UpdateController replaces an existing ReplicationController.
UpdateService replaces an existing Service.
WatchControllers begins watching for new, changed, or deleted controllers.
WatchServices begins watching for new, changed, or deleted service configurations.