Documentation ¶
Overview ¶
Package etcd provides etcd backend implementation for storing PodRegistry, ControllerRegistry and ServiceRegistry api objects.
Index ¶
- type BasicManifestFactory
- type ManifestFactory
- type Registry
- func (r *Registry) ApplyBinding(binding *api.Binding) error
- func (r *Registry) CreateController(controller *api.ReplicationController) error
- func (r *Registry) CreatePod(pod *api.Pod) error
- func (r *Registry) CreateService(svc *api.Service) error
- func (r *Registry) DeleteController(controllerID string) error
- func (r *Registry) DeletePod(podID string) error
- func (r *Registry) DeleteService(name string) error
- func (r *Registry) GetController(controllerID string) (*api.ReplicationController, error)
- func (r *Registry) GetEndpoints(name string) (*api.Endpoints, error)
- func (r *Registry) GetPod(podID string) (*api.Pod, error)
- func (r *Registry) GetService(name string) (*api.Service, error)
- func (r *Registry) ListControllers() (*api.ReplicationControllerList, error)
- func (r *Registry) ListEndpoints() (*api.EndpointsList, error)
- func (r *Registry) ListPods(selector labels.Selector) (*api.PodList, error)
- func (r *Registry) ListServices() (*api.ServiceList, error)
- func (r *Registry) UpdateController(controller *api.ReplicationController) error
- func (r *Registry) UpdateEndpoints(e *api.Endpoints) error
- func (r *Registry) UpdatePod(pod *api.Pod) error
- func (r *Registry) UpdateService(svc *api.Service) error
- func (r *Registry) WatchControllers(resourceVersion uint64) (watch.Interface, error)
- func (r *Registry) WatchEndpoints(label, field labels.Selector, resourceVersion uint64) (watch.Interface, error)
- func (r *Registry) WatchPods(resourceVersion uint64, filter func(*api.Pod) bool) (watch.Interface, error)
- func (r *Registry) WatchServices(label, field labels.Selector, resourceVersion uint64) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicManifestFactory ¶
type BasicManifestFactory struct {
// contains filtered or unexported fields
}
func (*BasicManifestFactory) MakeManifest ¶
func (b *BasicManifestFactory) MakeManifest(machine string, pod api.Pod) (api.ContainerManifest, error)
type ManifestFactory ¶
type Registry ¶
type Registry struct { tools.EtcdHelper // contains filtered or unexported fields }
Registry implements PodRegistry, ControllerRegistry and ServiceRegistry with backed by etcd.
func NewRegistry ¶
func NewRegistry(client tools.EtcdClient) *Registry
NewRegistry creates an etcd registry.
func (*Registry) ApplyBinding ¶
ApplyBinding implements binding's registry
func (*Registry) CreateController ¶
func (r *Registry) CreateController(controller *api.ReplicationController) error
CreateController creates a new ReplicationController.
func (*Registry) CreateService ¶
CreateService creates a new Service.
func (*Registry) DeleteController ¶
DeleteController deletes a ReplicationController specified by its ID.
func (*Registry) DeleteService ¶
DeleteService deletes a Service specified by its name.
func (*Registry) GetController ¶
func (r *Registry) GetController(controllerID string) (*api.ReplicationController, error)
GetController gets a specific ReplicationController specified by its ID.
func (*Registry) GetEndpoints ¶
GetEndpoints obtains the endpoints for the service identified by 'name'.
func (*Registry) GetService ¶
GetService obtains a Service specified by its name.
func (*Registry) ListControllers ¶
func (r *Registry) ListControllers() (*api.ReplicationControllerList, error)
ListControllers obtains a list of ReplicationControllers.
func (*Registry) ListEndpoints ¶
func (r *Registry) ListEndpoints() (*api.EndpointsList, error)
ListEndpoints obtains a list of Services.
func (*Registry) ListServices ¶
func (r *Registry) ListServices() (*api.ServiceList, error)
ListServices obtains a list of Services.
func (*Registry) UpdateController ¶
func (r *Registry) UpdateController(controller *api.ReplicationController) error
UpdateController replaces an existing ReplicationController.
func (*Registry) UpdateEndpoints ¶
UpdateEndpoints update Endpoints of a Service.
func (*Registry) UpdateService ¶
UpdateService replaces an existing Service.
func (*Registry) WatchControllers ¶
WatchControllers begins watching for new, changed, or deleted controllers.
func (*Registry) WatchEndpoints ¶
func (r *Registry) WatchEndpoints(label, field labels.Selector, resourceVersion uint64) (watch.Interface, error)
WatchEndpoints begins watching for new, changed, or deleted endpoint configurations.