Links v2: Migrate Links to Jobs, with supporting API.

This migrates almost all links operations to jobs. There were a couple of places I haven't been able to resolve cleanly in `daemon/daemon.go`, but these will need an independent evaluation.

This passes all tests, is exercised (hopefully) fully, and should be suitable for merge after review. PTAL, thanks.
Most recent commit removes links completely from daemon, via jobs.

Completely.

Be amazed. :P

On Sep 5, 2014, at 1:58 AM, Alexandr Morozov <notifications@github.com> wrote:

> In daemon/daemon.go:
> 
> > @@ -1053,8 +1094,8 @@ func (daemon *Daemon) Volumes() *graph.Graph {
> >  	return daemon.volumes
> >  }
> >  
> > -func (daemon *Daemon) ContainerGraph() *graphdb.Database {
> > -	return daemon.containerGraph
> > +func (daemon *Daemon) Links() *links.Links {
> I wonder why we can't just use daemon.Links as field
> 
> —
> Reply to this email directly or view it on GitHub.
>