containerd/leases
Wei Fu 8a388d6238 leases: support resource management
Add three methods for lease service so that the client can use it to
manage the resource by lease, not just gc.root label. With the following
methods, it is easy for client to maintain their own cache system.

```
 - AddResource(context.Context, Lease, Resource) error
 - RemoveResource(context.Context, Lease, Resource) error
 - ListResources(context.Context, Lease) ([]Resource, error)
```

And the resource is to be

```golang
type Resource {
  ID   string
  Type string
}
```

For the snapshots, the Type field will be formatted by
snapshots/%{type}, like snapshots/overlayfs.

fix: #3295

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-05-29 11:00:32 +08:00
..
proxy leases: support resource management 2019-05-29 11:00:32 +08:00
context.go Add leases manager interface 2018-07-18 10:43:37 -07:00
grpc.go Switch from x/net/context to context 2018-04-24 14:33:34 -07:00
id.go Add leases manager interface 2018-07-18 10:43:37 -07:00
lease.go leases: support resource management 2019-05-29 11:00:32 +08:00